How to ratate the 3D object arround itself in all the axis.
I use this cases to rotate my object arround the axis.
but i wand how to rotate object itself.
Rotation transforms are typically about the origin. If you want to rotate about a different point, you have to translate that point to the origin first, then apply the rotate.
… then translate back.
glTranslatef(x, y, z);
glTranslatef(-x, -y, -z);
constructs a rotation about the point (x,y,z).
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.