Hi J-S,

Thanks for the reply.

Well, im not using a camera manipulator. This is what im doing:


Code:

int main()
{

// code here

viewer.getCamera()->setProjectionMatrixAsFrustum(-640, 640, -480, 480, 1900, 
200000);

osg::Matrix t;
t.makeTranslate(osg::Vec3(0, 0, -1000)); //translate by 1000

while (!viewer.done()) {
                viewer.getCamera()->setViewMatrix( t );                         
                
                // Draw the next frame.
                viewer.frame();
}

return 0;
}



Now, i tried this:

Inside the while loop, i gave


Code:
viewer.getCamera()->setViewMatrix(osg::Matrix::identity());



Now, isn't this equivalent to 


Code:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();




And i drew a line from (-640, 0, -1800) to (640, 0, -1800).

But it is visible! Could you please comment?

Thanks,
Mukund

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





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

Reply via email to