This topic is now archived and is closed to further replies.


Problem with Rotation!

Recommended Posts

hi there! i have a problem with rotating a plane around in 3d space, i hope you can help me! i dont know how to exactly explain it, therefore, here is the source and executable... thanks a lot !!! Edited by - gammastrahler on December 18, 2001 11:51:19 AM

Share this post

Link to post
Share on other sites
I don''t have time to dowload your code..but it should look something like this:

at the top of your file...state a global variable:

GLfloat planeRot; //a rotatation float for the your plane

then down below in your GLDrawScene()

glRotatef(planeRot, 1.0f, 0.0f, 0.0f);

glBegin(GL_QUADS); //or whatever your using

//vertices or model code..whatever


planeRot += 0.5; // this moves it every frame

There you''s that easy...well, sort of. I hope you meant a 3d geometric plane rather then an airplane...


Share this post

Link to post
Share on other sites