Basically, all it does is setup start at 0,0,0 , then draw three spheres translated 5 units deep into the screen. Problem is, if I try and change the paramaters in the first glTranslatef() statement, only the central sphere moves, why does it not translate the entire scene? I'm sure I'm missing something fairly fundemental here, any help, greatly appericated.

Thanks

MrShoe

12-31-2001, 07:49 PM

After a quick scan i see that you have set up multiple glPushMatrix and glPopMatrix pairs. Any transformation done inside these pairs is only in effect INSIDE THAT pair. So anything drawn outside the pair will not be afftected by the original transformation/rotation whatever. So you have to do a separate transformation in each glPushMatrix and glPopMatrix pair.