| |||||||||||
|
Main Menu Other |
Tutorials -- Drawing and Coloring Primitives | ||||||||||
|
If you want to see the bottom of the pyramid, change the second parameter of the glRotate function to 1, like so: glRotatef(rotate, 1, 1, 0); Now OpenGL will rotate on the y axis, as before, along with the x axis. Note that x is left/right, y is up/down, and z is front/back. Mess around with this code until you get a good idea of how to draw polygons. Add more polygons to your scene, and give them different colors. When I first got started, I made the Nintendo64 logo out of polygons. Took forever, but it gave me a great head start on drawing in OpenGL. Try doing something like that, and send it on in so I can see it. If it's good I might just post it here. That's it for this tutorial. Any questions? Feel free to ask me.
|
|||||||||||