Anyway, here is basically the code I used to update the axis:

double offset = 80.0;
crosscamera->setProjectionMatrix(osg::Matrix::ortho2D(-offset, iWidth-offset, 
-offset, iHeight-offset));

where "offset" is hardcoded here and it depends on the length of the axis. 
iWidth and iHeight are the width and height of the viewer (I don't know haw to 
get them I implemented the code for a Qt window where I can easily get them).

HTH
Gianni

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





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

Reply via email to