Hi All,
Since moving from JOGL 2.0 to 2.0.2 I'm having troubles with rendering into different parts of the screen.
I need to render 4 different "subscreens" into one GLJpanel for a medical application. To achieve this, I use the following pseudo-code:
glViewport(0, 0, panel.width / 2, panel.height / 2);
drawView1();
glViewport(panel.width / 2, 0, panel.width / 2, panel.height / 2);
drawView2();
glViewport(0, panel.height / 2, panel.width / 2, panel.height / 2);
drawView3();
glViewport(panel.width / 2, panel.height / 2, panel.width / 2, panel.height / 2);
drawView4();
I would expect (and this worked perfectly in JOGL 2.0) that the whole screen is filled with the renderings of the four different views. Instead, only a fourth of the screen is rendered each time as you can see in the screenshot (note: panel.width and panel.height does not change).
One thing I noticed which might be related to this issue: JOGL 2.0 used pBuffers for GLJPanels internally and had to re-initialize the gl-context each time the window was resized. In JOGL 2.0.2 this issue seems to be resolved since I can freely resize my window without any re-initialization... could it be that JOGL 2.0.2 manages its own viewport internally and conflicts with my own settings? How could I work around this?
I hope you guys have any hints.
Greetings!