Hi all,
I have displayed cube, and a triangle. Now i want to keep cube constant and want to rotate, triangle on the X/Y/Z axis.
when i do the rotation on the either axis, it is rotating along with cube. How can i animate one object at a time.
THanks
Hi all,
I have displayed cube, and a triangle. Now i want to keep cube constant and want to rotate, triangle on the X/Y/Z axis.
when i do the rotation on the either axis, it is rotating along with cube. How can i animate one object at a time.
THanks
add glPushMatrix() before rotation and drawing of the triangle, then glPopMatrix() to go back to normal.
Oh Thanks saar. I tried it worked for me.