Hi J-S -- I recently wrote my own visitor to flatten transforms. To do this,
I use osg::computeLocalToWorld(osg::NodePath&) to get the local-to-world
matrix, and transform all vertices by that matrix. This works great for me,
and what you are doing sounds like an equivalent operation, so I'm not sure
why it's not working for you. Can you provide more details on the failure?
   -Paul


> 
> 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
> --
> ______________________________________________________
> Jean-Sebastien Guay    [EMAIL PROTECTED]
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/ 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org
> 

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

Reply via email to