I took another look through the osgviewerQt source and found a solution, though 
I'm not sure I understand why my extra step is necessary:

Manually initializing the projection matrix for the camera using 
setProjectionMatrixAsPerspective fixes things.


Code:

camera->setProjectionMatrixAsPerspective(30.0f, 
static_cast<double>(traits->width)/static_cast<double>(traits->height), 1.0f, 
10000.0f );




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





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

Reply via email to