PDA

View Full Version : Source code



03-12-2001, 08:54 AM
Hi,

I'm looking for some source code for a basic ferris wheel.

Or failing that just a wheel rotating. I'm guessing this can be very easily done in Opengl. But hey, I'm new.....

cheers

bobert
03-12-2001, 12:00 PM
hey,
for simple rotating objects like wheels try:

glRotatef(5.0f,0.0f,1.0f,0.0f); 1 Y
glRotatef(5.0f,1.0f,0.0f,0.0f); 2 X
glRotatef(5.0f,0.0f,0.0f,1.0f); 3 Z
(use only one version, each is for a different perspective)

have fun
-bobert