From the visitor, you can call:
osg::computeLocalToWorld( getNodePath() )
This will give you the absolute positioning matrix of the node you are
visiting.
Glenn Waldron / Pelican Mapping / @glennwaldron
On Mon, May 9, 2011 at 4:57 AM, issam boughanmi amigof...@gmail.com wrote:
Hi,
here the situation
i am using using blender to make my 3d scene
i represent the trees with green cubes : with names like : tree, tree.001,
tree.002, etc
the cessana airplanes are represented by white cubes
and so on for all the repetitive scene objects
next in my osg application i am using a find node callback visitor based
on the name to replace the cubes with real 3d objects and put them in a
pagedlod node
tha problem is how to get the position,orientaion of these various objects
during traversal to position the real 3d models correctelly
thanks and good day
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39186#39186
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org