0

Hello.. I'm trying to use OpenGL to draw the great pyramid model and have it rotate.. i'm having trouble with my points as you can see they are commented out. I'm also trying to figure out how to turn the eye point and how to rotate it...

here are my points

glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.50, 0.75, 0.50);

   glEnd();

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.50, 0.75, 0.50);

   glEnd();

/*   
   glBegin(GL_POLYGON);

        glVertex3f(0.75, 0.50, 0.0);
        glVertex3f(0.25, 0.75, 0.0);
        glVertex3f(0.50, 0.25, 0.0);

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.75, 0.0);
        glVertex3f(0.50, 0.25, 0.0);
        glVertex3f(0.75, 0.50, 0.0);

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.75, 0.75, 0.0);
                glVertex3f(0.25, 0.75, 0.0);

   glEnd();

[IMG]http://www.gameroom.com/gizapump/GPaerial.jpg[/IMG]

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by jbennet
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.