Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

glrotate

0 views
Skip to first unread message

mikethebike

unread,
Dec 7, 2009, 6:54:15 AM12/7/09
to
Hi
what am i doing wrong if i write

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

nothing is visible. But if i comment the above line it's ok apart that
I need to turn it a little.
Thanks
Michael

glEnable(GL_TEXTURE_2D);
XPLMBindTexture2d(gTexture[NEEDLE_TEXTURE], 0);
glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
glBegin(GL_QUADS);
glTexCoord2f(1, 1.0f); glVertex3f(NadelLinks, NadelOben,
planeZ); // Bottom Right Of The Texture and Quad
glTexCoord2f(0, 1.0f); glVertex3f(NadelRechts, NadelOben,
planeZ); // Bottom Left Of The Texture and Quad
glTexCoord2f(0, 0.0f); glVertex3f(NadelRechts, NadelUnten,
planeZ); // Top Left Of The Texture and Quad
glTexCoord2f(1, 0.0f); glVertex3f(NadelLinks, NadelUnten,
planeZ); // Top Right Of The Texture and Quad
glEnd();

Cathy

unread,
Dec 7, 2009, 7:23:38 AM12/7/09
to
mikethebike a �crit :

Hello
If you use glRotate, you rotate the view (~your eye), not the object, so
the drawn object had certainly moved out of view. Try with a smaller
angle, like 5�.
Hope this help
Cathy L.

mikethebike

unread,
Dec 8, 2009, 7:37:35 AM12/8/09
to
Thanks Cathy
now I've a function returning something like: 64E-45 This is
supposed to be a heading...
Anyway how should I rotate in accordance to that heading? How can I
write that number alternatively?
Many thanks again
Michael
0 new messages