Login  Register

Re: Proper gamma-aware rendering

Posted by Sven Gothel on Dec 19, 2014; 1:03pm
URL: https://forum.jogamp.org/Proper-gamma-aware-rendering-tp4030515p4033786.html

On 12/19/2014 10:03 AM, elect [via jogamp] wrote:

> I think it should be definitely determined at the creation of the opengl context.
>
> As it is written here
> <https://www.opengl.org/sdk/docs/man3/xhtml/glGetFramebufferAttachmentParameter.xml>,
>
>
> /  For the default framebuffer, color encoding is determined by the
> implementation.
> /
>
> For example for GLWF3, there is the GLFW_SRGB_CAPABLE property
This is not a canonical reference,
hence your assumption would need some reason,
e.g. a EGL, GLX, WGL .. reference.

As I understand, you assume either:
  [1] SRGB selection as a context property
  This does not exist in the GL spec.

  [2] SRGB selection as a pixelformat property
  We have to look, but I doubt.

One may select SRGB texture formats, GL spec.

I am unaware of a generic overall SRGB mode,
but if you have information about it (GL, EGL, ..)
that would be great.

~Sven



signature.asc (828 bytes) Download Attachment