View Full Version : rendering
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
11-21-2004, 04:49 AM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.