PDA

View Full Version : how do i animate an object in 1 window and the rest being static



nene
09-15-2003, 06:22 AM
Hi all,
Having some problem...

I am trying to create 4 different window to project a single object and one of the window have the object animating.

My problem is that if i tried to include the glIdleFunc() in the main under the animating program, all the rest of the window will callback the animating function when they are idle.

I have create another function to animate and draw this object within the push and pop of the matrix,

....................
glPushMatrix();
glTranslatef(-10.0,.0,-20.0);
glScalef(5.0,5.0,5.0);
glRotatef(angle, 1.0,1.0,0.0);
glTranslatef(10.0,.0,20.0);
display_wire_cube();
glPopMatrix();
.................

Can anyone help please?

chxfryer
09-15-2003, 10:33 AM
I am not sure if this is the kind of thing you are talking about but here is a multiple viewport tutorial from Nehe
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=42