While analyzing the TXNode class, I noticed that it makes a suttle assumption 
that the coordinate system is Z up. Almost everyhere else in OSG it make no 
such assumption (or it provides a CoordinateFrame class to convert from one 
coordinate system to another such as from Z up to Y up).

Here is a small code snipit of TxpNode:


Code:

void TXPNode::updateEye(osg::NodeVisitor& nv)
{
[...]
    //---- This code assumes Z up.
    trpg2dPoint loc;
    loc.x = nv.getEyePoint().x() - _originX;
    loc.y = nv.getEyePoint().y() - _originY;
[...]
}




Is there an easy to make this work with other coordinate systems (like Y up).

Cheers,
Guy

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





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

Reply via email to