Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: the gDEBugger texture viewer

  1. #1
    Intern Contributor
    Join Date
    Jun 2011
    Posts
    82

    the gDEBugger texture viewer

    I came across a strange phenomena when I was using gDEBugger.

    I opened a texture with the gDEBugger viewer. Under the data view, there is a texel value like this:

    2.6499987
    3.349998
    3.349998
    1

    each component stands for RGBA, respectively.
    However, after I ticked ‘Show values normalized to [0..255] range’, the values changed to

    163
    86
    86
    255

    in which the red component exceeded the green and blue components. Then I switched to the image view, also found that the corresponding pixel is red. Really confusing!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    899

    Re: the gDEBugger texture viewer

    And how is this about OpenGL in any way?

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: the gDEBugger texture viewer

    Ignoring the integer part seem to match.

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Singapore
    Posts
    802

    Re: the gDEBugger texture viewer

    Just out of curiosity, what texture format do u specify to GL texture when u create it in your application?
    Regards,
    Mobeen

  5. #5
    Intern Contributor
    Join Date
    Jun 2011
    Posts
    82

    Re: the gDEBugger texture viewer

    Quote Originally Posted by thokra
    And how is this about OpenGL in any way?
    Somebody introduced me gDEBugger at this forum, so I thought it should be popular among OpenGL developers.

    Quote Originally Posted by mobeen
    Just out of curiosity, what texture format do u specify to GL texture when u create it in your application?
    Here it is
    Code :
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, TEX_WIDTH, TEX_HEIGHT, 0, GL_RGBA, GL_FLOAT, NULL);

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    941

    Re: the gDEBugger texture viewer

    It seems gDEBugger wraps the values instead of clamping them.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •