Hi Paul,

Tried that but it always gives the parent node of the first instance.

If that's the case, then you're probably using getParent(0) to go up in the graph, instead of using the intersection's node path.

Remember, the model can have a whole hierarchy inside too, and the intersection will give you the Geode that was intersected. So you might have to go up a few levels in the node path before getting to the root of the model, and at that point the parent of that (still in the node path) should be the unique transform for the instance that was intersected.

You can identify the root of your model in different ways, either with a name, a description, a piece of user data, ...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to