Login  Register

Re: GL_FRAMEBUFFER_SRGB and GLJPanel

Posted by Sven Gothel on Oct 24, 2013; 7:47pm
URL: https://forum.jogamp.org/GL-FRAMEBUFFER-SRGB-and-GLJPanel-tp4030329p4030368.html

On 10/24/2013 09:17 PM, Christopher Bruns [via jogamp] wrote:
> Yes, for this test program glClear() is all that is needed to demonstrate the
> problem, because the glClearColor is a midtone that is strongly affected by
> the GL_FRAMEBUFFER_SRGB setting. Even if rendering other things would respect
> the GL_FRAMEBUFFER_SRGB setting, the failure to respect it in glClear() would
> still represent a problem for me.
>

In this case, we have a problem w/:

> Have a look at 'Warning' remark:
>   <https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/awt/GLJPanel.html#fboGLSLVerticalFlip>

.. i.e. the FRAMEBUFFER state ..

If you have a proposal to fix this issue (git patch),
i.e.
  - save this state before we use our GLSL flip FBO
  - disable it
  - GLSL flip
  - re-enable it

you are more than welcome ..

We might should have a GL[234]State (?) class to properly
outline the code, similar to GLTextureState.

Or .. disable GLSL flipping for these [special] cases.

See GLJPanel code ..

~Sven



signature.asc (911 bytes) Download Attachment