tilt angle
In tutorial 9, I wanted to see for myself the tilt angle...so I tried to add a quad (very big one, 10f x 10f, centered at origin)...so I added a set of codes:
glTranslatef(0.0f,0.0f,zoom);
glRotatef(tilt,1.0f,0.0f,0.0f);
glRotatef(side,0.0f,1.0f,0.0f);
glColor3f(1.0f,1.0f,1.0f);
glBegin(GL_QUADS);
glVertex3f(-50.0f,-50.0f, 0.0f);
glVertex3f( 50.0f,-50.0f, 0.0f);
glVertex3f( 50.0f, 50.0f, 0.0f);
glVertex3f(-50.0f, 50.0f, 0.0f);
glEnd();
(Since each star is draw starting with a loadidentity, so I didn''t bother undoing the translation and rotations)
anyway, the square won''t show...what''s wrong?
Where is your camera located and pointed at? And is lighting enabled?
I am not familiar with the example you are referring to, but that is all I know that could help.
Edited by - GBGames on January 14, 2002 2:57:33 AM
I am not familiar with the example you are referring to, but that is all I know that could help.
Edited by - GBGames on January 14, 2002 2:57:33 AM
-------------------------GBGames' Blog: An Indie Game Developer's Somewhat Interesting ThoughtsStaff Reviewer for Game Tunnel
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement