Like ALL scene graphs out there the OSG uses an approximation ( for
Scenegraph performance reasons) to produce a bounding sphere that is
ensured to encompass all its children but not necessarily tightly, and
this is fine for 99% of bounding sphere usage in a scene graph
 
If you want a tight and much more accurate bound sphere and or bounding
box then you will need to calculate this your self
 

Gordon
Product Manager 3d
__________________________________________________________
Gordon Tomlinson
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________

 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
Gianluca Natale
Sent: Tuesday, August 11, 2009 4:32 AM
To: Osg Users
Subject: [osg-users] about the bounding sphere of a geode computed by
OSG



Hi All,
I'm having problem computing the global bounding sphere of my model.
I debugged OSG (2.8.0) and discovered that the bounding sphere of a
geode
(BoundingSphere Geode::computeBound()) is
computed as the bounding sphere of the bounding box that includes all
its drawables !?!

 

Why that?

Shouldn't it be the global bounding sphere of the drawables, merging the
single bounding spheres
of all the drawables?

 

So, a drawable that represents a sphere should have as bounding sphere
itself,
but this is not true with the computation OSG performs. It is larger
than strictly required.

 

Thanks,
Gianluca Natale

 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to