tags:

views:

110

answers:

2

I got stuck with displaying multiple windows in openGL... That is if i display two windows, tranformation is not possible in both the windows... Is there any other way i can do it..???

+1  A: 

Tutorial #42 of the NeHe OpenGL tutorials shows how to have multiple viewports (which you can have in one window or multiple windows).

Also, here is some source code that is a modification of that tutorial using multiple windows.

Naaff
+2  A: 

Each window should have it's own OpenGL context thus you will need to perform the same operations in each window for the views to stay consistent. If you perform a geometry transformation when rendering in the first context it will only appear in the second context if it is explicitly executed in that second context.

More details on your setup and desired goals would be helpful. On what platform and framework are you working? Are you trying to render the same scene from different views in different windows or are you rendering different scenes in the different windows?

Marc
Actually i'm doin project in openGL using visual C++.. I'm trying to render different scenes in the different windows.. In the first window i'm trying to launch a rocket.. in second one trying to rotate the satellite around the erth....