Archived

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

mathfeel

tilt angle

Recommended Posts

mathfeel    122
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
GBGames    217
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