Re: [osg-users] Setting up matrices

2011-01-31 Thread Jean-Sébastien Guay
Hello Mukund, r.makeRotate( rot += 10, osg::Vec3( 1., 0., 0. ) ); The angle should be in radians. I think your code above assumes it's in degrees. What are you expecting to see BTW? The camera might rotate around the scene's origin (since your view matrix has no

Re: [osg-users] Setting up matrices

2011-01-31 Thread Mukund Keshav
Hello J-S, Thanks for the reply. Why do you insist on using glut to learn OSG? Using the plain viewer is even easier: Absolutely. i did not realize it first since i was used to using glut. But now i realize the osgviewer is much easier and efficient. So, im currently using the method

[osg-users] Setting up matrices

2011-01-29 Thread Mukund Keshav
Hello Everyone, Well, in on of my previous threads, i was advised against using glut. But i thought of using glut temporarily and get more familiar with the other classes. So, i modified osgviewerGLUT.cpp like this, in order to get some translation and rotation. Code: // global