Is this the apropriate place to post bugs? (found no bug tracker)
So here is one:
Effect:
E.g. the whole world is culled if the only visible things contain the camera in their bounding spheres.
Details:
In BoundingSphere.java, in method
private BoundingVolume merge(float temp_radius, Vector3f temp_center, BoundingSphere rVal)
the sphere including both volumes was computed incorrectly:
if (fRDiffSqr >= lengthSquared) {
if (radiusDiff >= 0.0f) {
return this;
} else {
return rVal;
}
}
did not do anything if the temporary sphere included 'this'. It can be corrected like this:
if (fRDiffSqr >= lengthSquared) {
if (radiusDiff <= 0.0f) {
return this;
}
else
{
rVal.setCenter( temp_center );
rVal.setRadius( temp_radius );
return rVal;
}
}
/Irrisor