Hi Jean-Sebastien,

a correct way for a world coordinate bounding box ist to set up the 8
corner vertices of the local bounding box using _min and _max. Transform
the 8 corners and make their min/max-bounding box.

regards Ralph

Jean-Sébastien Guay schrieb:
> Hi all,
> 
> I was wondering, what's the correct way to get the world space bounds of
> a node? I can do the following:
> 
>     osg::ComputeBoundsVisitor cbbv;
>     node->accept(cbbv);
>     osg::BoundingBox bb = cbbv.getBoundingBox();
> 
> I also have the localToWorld matrix of the node. But just transforming
> the _min and _max members by the matrix doesn't seem to give the right
> results... (note that I don't care if the resulting bounding box is
> axis-aligned - it could even be a bounding sphere)
> 
> So, what is the correct way to get the bounds?
> 
> Thanks,
> 
> J-S

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to