Hi again,

Jus a doubt with my previous code: is my way of getting the center of the 
screen right?


Code:

osg::Viewport* vport = camera->getViewport();
osg::Vec3d vc = osg::Vec3d( vport->x() + vport->width()/2, vport->y() + 
vport->height()/2, 0.0 );




Or is there a better way?
... 

Thank you!

Cheers,
Andrés

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to