How do I rotate a Milkshape 3D model? I have the following code from the 'Sprites' demo:
[pascal] glPushMatrix;
glTranslatef(-X,0,-Y);
glScalef(5,5,5);
glRotatef(Anim / 4, 0, 1, 0);
glRotatef(Anim / 5, 1, 0, 0);
Texture.Bind;
Model.Draw;
glPopMatrix;[/pascal]
But I have no idea what it is trying to do
I have tried to use this same code in the Startrek Enterprise Milkshape demo to turn the ship without moving the camera but it doesn;t work and quite honestly I dont know what I'm doing let alone what I'm doing wrong
Why does the GLXMilkshape3D component not have a Rotate method? I would have thought this would be a common function that everyone would use?
Bookmarks