Hi Ivan,

You'll need to write a custom node visitor to traversal through the scene and build you list of boxes and their transforms.  You may want to use a osg::Shape heirachy attached to a Drawable as this would allow you to use non axis aligned boxes.

Robert.

On 9/24/06, Ivan BolĨina <[EMAIL PROTECTED]> wrote:
Hi.

I have an object osg::Node.

I want to hierarhicaly break it down to the list of boxes (leafs) and corresponding matrices that represent this object.
So it a house has roof and main body, I would get two bounding boxes and correspodning matrices. (if root is under angle)

This would be used for collision detection, where I would detect on those bounding boxes.

Thx,ivan

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to