Merge pull request #570 from erwincoumans/master
re-quantize for before using the data in quantize method
This commit is contained in:
@@ -107,6 +107,8 @@ void btQuantizedBvh::setQuantizationValues(const btVector3& bvhAabbMin,const btV
|
|||||||
v = unQuantize(vecIn);
|
v = unQuantize(vecIn);
|
||||||
m_bvhAabbMin.setMin(v-clampValue);
|
m_bvhAabbMin.setMin(v-clampValue);
|
||||||
}
|
}
|
||||||
|
aabbSize = m_bvhAabbMax - m_bvhAabbMin;
|
||||||
|
m_bvhQuantization = btVector3(btScalar(65533.0),btScalar(65533.0),btScalar(65533.0)) / aabbSize;
|
||||||
{
|
{
|
||||||
quantize(vecIn,m_bvhAabbMax,true);
|
quantize(vecIn,m_bvhAabbMax,true);
|
||||||
v = unQuantize(vecIn);
|
v = unQuantize(vecIn);
|
||||||
|
|||||||
Reference in New Issue
Block a user