Resize GLCanvas broken on OSX and JDK7

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Resize GLCanvas broken on OSX and JDK7

jost
Hi,

while evaluating jdk1.7 (1.7.0_06-ea) on OSX I found that resizing GLCanvas no longer works as expected. This can be easily reproduced by running an example like SimpleScene (source at the bottom of https://sites.google.com/site/justinscsstuff/jogl-tutorial-3). When resizing the window, the displayed animation is scaled down to fill only a small rectangle in the bottom left corner of the window.
This seems to be related to an open issue filed on the "processing" issue tracker (http://code.google.com/p/processing/issues/detail?id=1070) where a similar behaviour is described in connection with a jogl based opengl renderer.

Also I noticed a significant performance hit on jdk7 which maybe due to the early implementation stages of the CALayer based JAWT binding but I'd like to know if you expect (or already observed) a performance impact caused by the new design.

Any comments on these issues would be great.
Reply | Threaded
Open this post in threaded view
|

Re: Resize GLCanvas broken on OSX and JDK7

gouessej
Administrator
Hi

Is the resize of GLWindow broken too under OSX and JDK 1.7?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Resize GLCanvas broken on OSX and JDK7

jost
No, example modified like below resizes correctly with both jdk6 and jdk7:

    public static void main(String[] args) {
        GLProfile glp = GLProfile.getDefault();
        GLCapabilities caps = new GLCapabilities(glp);

        GLWindow window = GLWindow.create(caps);
        window.setSize(300, 300);
        window.addGLEventListener(new SimpleSceneNEWT());
        FPSAnimator animator = new FPSAnimator(window, 60);

        window.setVisible(true);
        animator.start();
    }
Reply | Threaded
Open this post in threaded view
|

Re: Resize GLCanvas broken on OSX and JDK7

gouessej
Administrator
Thanks. Please write a bug report, be as accurate as possible, mention the exact version of OSX you use, it is very important.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Resize GLCanvas broken on OSX and JDK7

jost