Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Paul Martz
Gianluca Natale wrote: I cannot completely agree. I mean that I know that the real perfect bounding sphere is computationally expensive, but in many cases (solid objects) it should be computed just once But in many other cases (dynamic geometry) it must be computed each frame. So it really does

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Tomlinson, Gordon
esday, August 11, 2009 6:36 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] about the bounding sphere of a geode computed by OSG I cannot completely agree. I mean that I know that the real perfect bounding sphere is computationally expensive, but in many cases (solid object

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Tomlinson, Gordon
__ From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] 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

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Gianluca Natale
sers-boun...@lists.openscenegraph.org] On Behalf Of Simon Hammett Sent: martedì 11 agosto 2009 12.00 To: OpenSceneGraph Users Subject: Re: [osg-users] about the bounding sphere of a geode computed by OSG Calculating the perfect bounding sphere is an expensive operation. You need to calc the convex

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Simon Hammett
Calculating the perfect bounding sphere is an expensive operation. You need to calc the convex hull which is O(n log n). osg uses a fast approximation which is generally good enough. 2009/8/11 Gianluca Natale : > Hi All, > I’m having problem computing the global bounding sphere of my model. > I de

[osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Gianluca Natale
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? Sho