Hi,

I've been using the following snippet to get a final world position

Code:
n.getBound().center() * computeLocalToWorld(n.getParentalNodePaths()[0]));



This works correctly some of the time, e.g. for a shallow scene, or one that is 
freshly imported from an .obj loader, etc.

But things go awry when nesting Pats, and will returns 'doubly multiplicated' 
coordinates or otherwise just coords that make no sense to me.

Is there a real surefire way to get the absolute / world coordinates from a 
node / pat?

Alternatively, could I be doing something wrong? I have several pats and nodes 
inside of eachother, and maybe something is bad.

Thank you!

Cheers,
Johny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74967#74967





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to