I think the example osgkeyboardmouse would be helpful. For working with QT, sorry, but I can only repost what you've already heard: http://www.openscenegraph.org/osgwiki/pmwiki.php/Community/WindowingToolkits <http://www.openscenegraph.org/osgwiki/pmwiki.php/Community/WindowingToolkits> -joe
________________________________ From: [EMAIL PROTECTED] on behalf of xiaoshuxing Sent: Sun 9/24/2006 8:36 AM To: osg users Subject: RE: [osg-users] how to get the modelview matrix and the eye location Thanks for replying, Joe I'll check those examples you provided. By differently, I mean, some nodes of the scenegraph, I want to multiply whem with some extra matrix except the translation and rotation generated by the keyboard and mouse. Just like the billboard node of osg, you want those billboard node always face to the viewer, so, you have to give those billboard node some extra transformation matrix. Now, I want to get the get the modelview generated by the transformation of the mouse event, and make some change based on this default matrix to achieve some effect. And btw, I'm doing all of those on the QT4 windowing toolkit, where can I find some example source codes which is developed with OSG based on the QT toolkit? Shuxing Xiao ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sullivan, Joseph (CDR) Sent: Sunday, September 24, 2006 11:25 PM To: osg users Subject: RE: [osg-users] how to get the modelview matrix and the eye location Hello, Welcome! By 'some part of the scene rendered differently' do you mean from a different viewpoint? If so, this may be helpful... http://www.nps.navy.mil/cs/sullivan/osgtutorials/osgTwoCamera.htm <http://www.nps.navy.mil/cs/sullivan/osgtutorials/osgTwoCamera.htm> If you mean with a different OpenGL state, then maybe tutorials 4 and 4.1 would be helpful. http://www.nps.navy.mil/cs/sullivan/osgtutorials/ <http://www.nps.navy.mil/cs/sullivan/osgtutorials/> good luck! Joe ________________________________ From: [EMAIL PROTECTED] on behalf of xiaoshuxing Sent: Sun 9/24/2006 7:40 AM To: 'osg users' Subject: [osg-users] how to get the modelview matrix and the eye location Hi, everybody: I'm new to osg, here is the situation: I want to get the modelview matrix and the eye location when updating the scenegraph within the SceneView's update vistor, because I want some part of the scene graph rendered differently with the others, like the billboard node, but not. Since openGL is state machine, and there should be a specific modelview matrix and an eye point at a specific stage. I don't know whether my intuitive understanding is right or wrong, so I searched through google, but I really can't find any specification or even clue about OpenSceneGraph, I really want to know how the "lazy state updating to minimize OpenGL state changes" is implemented, in which piece of source code. Any clue will be appreciated. Thanks in advance. Shuxing Xiao 2006-9-24
<<winmail.dat>>
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
