Bug 222

Summary: Stereo Mode on a GLJPanel
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED INVALID    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:48:54 CET


---- Reported by eteq 2006-05-08 21:48:18 ----

Stereo mode does not seem to work on a GLJPanel.  I set up a simple testing
program with a GLCanvas that works perfectly displaying stereo images, but if I
switch it over to GLJPanel, the program only draws to the GL_LEFT buffer and
throws an exception indicating that the buffer doesn't exist if I pipeline in a
DebugGL and call glDrawBuffer(GL_RIGHT).



---- Additional Comments From kbr 2006-05-08 23:11:28 ----

This isn't surprising to me as the rendering path for the GLJPanel is
drastically different than that for the GLCanvas. In particular the rendering
all goes off-screen to a pbuffer and from there is read back and blitted to the
screen using Java2D, so there is no way the OpenGL driver can get involved in
the display of stereo. Even when the Java2D/JOGL bridge is active (with Mustang
builds and -Dsun.java2d.opengl=true), we don't get a chance to choose the pixel
format for the underlying surface so there's basically no way stereo can work. I
think for now you'll have to use a heavyweight GLCanvas to do stereo.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 222 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=222
Comment 1 Sven Gothel 2010-11-19 01:02:34 CET
Swing/GLJPanel cannot have STEREO (no native flip buffer control, due to compositioning)