Hi,
I am using a GLJPanel, which works well with transparency, when java 1.6 ‘JOGL/Java2D integration enabled’. However, the fallback is pbuffer, transparency does not work. Any ideas what could cause this ?
I have
GLCapabilities glcaps = new GLCapabilities();
glcaps.setAlphaBits(8);
glcaps.setRedBits(8);
glcaps.setBlueBits(8);
glcaps.setGreenBits(8);
glcaps.setStencilBits(0);
glpanel = new GLJPanel(glcaps, null, shareContext);
glpanel.setOpaque(false);
glpanel.addGLEventListener(gle);
Another problem with pbuffer is transparency, when using public static BufferedImage readToBufferedImage(int width, int height, boolean alpha). It does not provide a transparent image.
If I copy the code and replace readbackType from GL.GL_ABGR_EXT tp GL.GL_BGRA. transparency works, but I get some ugly colours.
Regards Christian