[osg-users] Boundingsphere precision question
Ariasgore
ariasgore at gmx.de
Sun Jul 27 07:24:47 PDT 2008
Hello,
> The bounding spheres in OSG are used as loose bounds to be able to quickly
> do frustum culling. If you need tight bounds you should be able to use the
> getBoundingBox() method on the Geode's of interest. This method returns a
> bounding box that should tightly fit around the geometry data (I haven't
> checked this, merely assuming it is a tight fit based on the geometry's
> vertices).
I created a NodeVisitor and traversed the loaded node, the boundingbox I
received from the Geode is indeed smaller, but it confused me a little bit,
since it looks like the attached picture ->
http://img225.imageshack.us/img225/3594/tankspherexgk9.gif
So obviously there are several geode in the model, but is there a quick way
to get the "overall" geode? I tried to traverse all geodes and saving the
geode with the biggest boundingbox radius, but then I get the center of the
last goede's center, which is seldomly the center of the model.
Thanks
More information about the osg-users
mailing list