When you collecting/drawing your bounding volume Are you taking into account the bounding boxes are localized with respect to the geometry they contain
And NOT to the origin or any transforms __________________________________________________________ Gordon Tomlinson Email : [EMAIL PROTECTED] YIM/AIM : gordon3dBrit MSN IM : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __________________________________________________________ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ariasgore Sent: Sunday, July 27, 2008 12:21 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Boundingsphere precision question Hello, > You can combine bounding boxes into a single larger one, using > BoundingBox::expandBy(BoundingBox&) in your node visitor. That should > give you the overal bbox for all the Geode's in the graph. > A radius doesn't make much sense for a bounding box. I am getting closer and I spent all the time by checking where my last problem is. The boundingbox in red is drawn correctly, with its center at 0,0,0, so is the cow, but unfortunately the nose is too far to the right. The same happens with the tank. The second attached pic shows where the center of the cow lies. The axis are added to the picture, cows_center has the x axis facing the viewer and y axis poining to the right. The cessna model works perfectly but many others don't. Is this a transformation problem? Does the model itself has a transformation, which translates the model away from the idealized boundingbox position? I am looking at the cow.osg file and cannot spot a translation. Thanks for the help _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org