Hi,

but with Node::getWorldMatrices() you will get the position of a node in world 
coordinates and not in camera coordinates or isn't it.

Bernd

> -----Ursprüngliche Nachricht-----
> Von: osg users <osg-users@openscenegraph.net>
> Gesendet: 11.07.07 18:20:31
> An: "osg users" <osg-users@openscenegraph.net>
> Betreff: Re: [osg-users] Transform Matrix of Producer::Camera


> 
> On 7/11/07, Bernd Brot <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > thanks Robert for your reply.
> > With all that matrices I'm a little confused. I want to get the coordinates 
> > of a geode relative to the camera.
> > That's why I would like to know the following:
> > How do I get the position of a node in camera coordinates ?
> 
> You need to accumulate the matrices from the root of the scene graph
> to the node in question, you can do this via:
> 
>   Node::getWorldMatrices()
> 
> Note, that this passes back a list of matrices as the OSG allow nodes
> to have multiple parents, so each parent path can have its own matrix,
> such as when a the four wheels of car all share the same wheel
> geometry, but have different MatrixTransform that position them.
> 
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> 


_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to