Hi Marc,

And in OpenSceneGraph-1.1 you'll find:

osg::Node::getWorldMatrices()

I believe this is exactly what you are looking for :-)

Robert.

On 7/26/06, Marc Bernatchez <[EMAIL PROTECTED]> wrote:
Hi all,

I am currently using OpenFlight files to load all of my scene graph content
and would like to perform some collision tests at specific nodes.

Ideally, what I would have liked to do is to backward traverse (up in the
node's parent direction) the scene graph from that specific node up to the
root node of the SG, while accumulating the transformations encountered. Is
this already support somewhere? If not, I think it would be a great addition
to the functionalities of OSG and makes it very easy to work with the
transforms in the SG. I am pretty new to the nodeVisitor idea so I am still
pretty much in a learning and figuring out mode.

I saw about the NodePath object and its getNodePath() function but am unsure
how that could be helpful here. Can this getNodePath() provide me a path
from a given child node to the root? What do you mean by: "Get the non const
NodePath from the top most node applied down to the current Node being
visited." What is the top most node and the current node being visited in a
specific scenario? How do I set these two points?

Does any kind soul could give me some hints / examples, even partial, as to
how this could be implemented in code?

Thanks all.

=====================================
Marc Bernatchez
Candidat au Ph.D.
Ecole Polytechnique de Montreal
Montreal, QC, CANADA
=====================================
Virtual Reality web site, VResources:
http://vresources.org
=====================================




_______________________________________________
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