GLJPanel shifted with Java2D opengl pipeline enabled

Hello -

I am experiencing a shifting of my GLJPanel when I turn on the opengl pipeline for Java2D. I have a 3D viz in the GLJPanel and am overlaying a translucent JPanel which plays back a video using JMF. The video performance is awful unless the opengl pipeline is enabled, then all is well – except for my GLPanel!

I’ll try posting a couple of images . . . my first try so I will apologize now for when it does not work.
without pipeline enabled

http://without.jpg

with pipeline enabled

http://with.jpg

It appears the panel (or viewport?) is offset to the bottom left corner of the JFrame (as if the left list and lower graph panels were not there)
Any ideas?
Thank you,

Cory

I forgot to add that I am running Java 1.6 build 86, XP, with a Radeon X300.

Cory

Do the JOGL demos (in particular JRefract with the sub-demos launched in JInternalFrames) work properly? It looks to me like you’ve ignored the x and y coordinates coming in to your GLEventListener.reshape() when calling glViewport().

Thank you Ken. After some deeper investigating I was ignoring the x,y values passed into the reshape function.
Interesting, when I have the openGL pipeline OFF my reshape function gets the following values:
reshape : 0,0,924,572

When the openGL pipeline in ON, the reshape function is :
reshape : 214,238,924,572

Yes, this is a side-effect of how the Java2D/JOGL bridge works. Fortunately, if you code your app correctly (or just avoid calling glViewport() and let the library take care of this for you) you can write one piece of code which works in both configurations.

OK. I believe I have things set up correctly now, as it works fine with the pipeline of or off.
Thanks again,

Cory