• Advertisement

Archived

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

tilt angle

This topic is 5851 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement