<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1115</bug_id>
          
          <creation_ts>2015-01-07 11:06:56 +0100</creation_ts>
          <short_desc>SRGB implementation</short_desc>
          <delta_ts>2019-03-29 13:58:10 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>tbd</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4514</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2015-01-07 11:06:56 +0100</bug_when>
    <thetext>So, we would need a GLCapabilities extension for colorspace selection.
Maybe this has to be defined in it&apos;s parent Capabilities, allowing to
select the default framebuffer / pixelformat (-&gt; onscreen).

This &apos;Capabilities.colorspace&apos; entry shall be utilized for
[1] onscreen drawables and [2] offscreen FBO drawables, if available.

&lt;https://en.wikipedia.org/wiki/SRGB&gt;

Capabilities.colorspace might be of an integer or enum type
w/ (currently known) values: lRGB (default, linear) and sRGB (standardized RGB).
We may refactor TextureData.Colorspace and extend it&apos;s type accordingly.

Onscreen drawables will require assistance of EGL, GLX, EGL ..,
where FBO offscreen can be supported merely by &apos;some&apos; GL extension(s).

Implementation
==================
&lt;https://en.wikipedia.org/wiki/SRGB#Usage&gt; refers to EXT/framebuffer_sRGB
&lt;https://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.txt&gt;
which will allow implementing [2]!

Note: While FBObject shall support sRGB naturally,
one can already use above extension in their own code using textures and FBOs.

It has to be seen, whether implementation of [1] is supported, i.e. possible. 


Reference thread:
http://forum.jogamp.org/Proper-gamma-aware-rendering-td4030515.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4731</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-06-22 19:51:54 +0200</bug_when>
    <thetext>Further input / experiences w/ sRGB:

04/03/2010 Using sRGB color space with OpenGL
&lt;http://www.g-truc.net/post-0263.html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4732</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-06-22 20:06:36 +0200</bug_when>
    <thetext>March 2015 OpenGL drivers status and FB sRGB conversions
&lt;http://www.g-truc.net/post-0720.html#menu&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>