PDA

View Full Version : Two Viewports



GrandFlame
07-14-2006, 09:47 PM
Hello everybody, i'm a beginner in OpenGL and i have a problem.

If you have two viewports in a window, both viewports have the same object but with different perspective. Then i bind some KeyboardFunc to move the camera in viewport1 and viewport2.

Both viewports displays object correctly, but the camera cannot move at all. I tried several ways, but still cannot move the camera. Anyone can help me ??

I'm deeply sorry if my english is bad.

mikael_aronsson
07-17-2006, 03:43 AM
With viewports I assume you mean that you show different viewports in one single window, and as you speak about keyboardfunctions I guess you use GLUT, is this correct ?

To get any kind of help you would have to post the code that handles the "camera" and the function callback here...