Results 1 to 4 of 4

Thread: Compressed sRGB?

  1. #1
    Member Newbie
    Join Date
    Nov 2008
    Posts
    44

    Compressed sRGB?

    The documentation for glCompressedTexImage2D() states that internalformat must be an extension-specified compressed-texture format.
    GL_COMPRESSED_SRGB is a generic, not a specific, format, so I assume it will not work with glCompressedTexImage2D(). But I don't see any specific compressed format alternative that will give me the automatic color space conversion from sRGB to linear RGB. So how do I load compressed sRGB?

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Compressed sRGB?


  3. #3
    Member Newbie
    Join Date
    Nov 2008
    Posts
    44

    Re: Compressed sRGB?

    Thanks for that. Is there a flag indicating whether the format is sRGB, or a gamma value, in the dds header? I don't know how to detect whether the file is linear or sRGB or some gamma...

  4. #4
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Compressed sRGB?

    It looks like you can get this information from the DDS_HEADER_DXT10 header (DX10 API). Look at the DXGI_FORMAT description.

    Now I do not know which software application is able to write the latest dds format.

Similar Threads

  1. Setting up sRGB
    By BBeck1 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-02-2016, 03:17 AM
  2. Using compressed and non compressed mipmaps
    By Sagaceil in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-21-2013, 06:01 AM
  3. sRGB and normals
    By ste3e in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 01-24-2012, 05:33 AM
  4. srgb Renderbuffer?
    By Hollis in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-11-2011, 08:55 AM
  5. sRGB Renderbuffers in GL2.1+
    By skynet in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-11-2011, 02:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean