Hi, My program create OpenGL context using Fox::GLCanvas, then I have a osgUtil::SceneView to handle rendering.

Here is my code for rendering

m_sceneVeiw->update();
m_sceneView->cull();
m_scaneView->draw();

The problem is I cannot get OpenGL projection and modelview matrix using glGetDoublev(...). All I got is identity matrix for both projection and modelview.

So the questions are:
1. does osg has any special process/locking about OpenGL projection and modelview matrix?
2. Is that safe to use camera projection and modelview matrix of osgUtil::SceneView when I need to use OpenGL projection and modelview matrix?

Yanling
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to