View Full Version : rendering
phil67rpg
11-20-2004, 04:26 PM
I have drawn two spaceships on the screen using gl_line_strip and they interact with the keyboard, the problem is they dont move at the same time,independetly of each other,the has something to do with the glClear(GL_COLOR_BUFFER_BIT)command,please let me know if you need sddtional information
mikael_aronsson
11-21-2004, 04:49 AM
Hi !
If you sue the depth buffer you should include that one also in the glClear command.
When it comes to moving the objects, make sure you have glPushMatrix()/glPopMatrix() around each transformation for the objects, by doing that each object will move without have any effect on the other objects.
Mikael
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.