PDA

View Full Version : Drawing multiple object on the screen



presoftdev
09-24-2005, 05:28 PM
hi everyone,

i'm drawing to cubes, i want one cube to be fixed in the center and the other will be moving around this fixed cube. the fixed cube doesn't show up it is just flashing on the screen when the other cube is moving. what do u think is the problem with that?

btw, it's a homework where we are not allowed to use built in functions like glTranslate, glRotate etc....

I'll appreciate any help!

H.Stony
09-24-2005, 11:37 PM
t's a homework where we are not allowed to use built in functions like glTranslate, glRotate etc....you are not allowed to use ogl matrix manipulations? :eek:

then write your own matrix manipulations and use glMultMatrix, glLoadMatrix etc.

09-25-2005, 10:29 PM
Just guessing here, but could have forgotten to redraw the first (stationery) cube in every frame, and you are just drawing it in the first frame? (which is why it flashes)?

john
09-25-2005, 10:52 PM
How can you write an OpenGL programme without "built-in functions" like gl*? Rendering a triangle in immediate mode requires 5 of them!

crazy, man