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 2 of 2

Thread: Simple ARBfp1.0 question (with SGE)

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    4

    Simple ARBfp1.0 question (with SGE)

    Hi, Im trying to compare two numbers with SGE, but I cant seem to get it to work.

    i have:

    PARAM three = {3.0,3.0,3.0,3.0};
    TEMP index;
    #...
    #index contains values 1,2,3,4,5,6,7 or 8;

    SGE temp1,index,three;

    index is *never* greater than three;

    if i output the colors, three.x outputs as fully on (255.0), while index shows up only as 1 through 8.

    is there some normalization and/or clamping thing im missing? thanks!

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    366

    Re: Simple ARBfp1.0 question (with SGE)

    If you are using a 32bit fixed-point frame buffer your values will be clamped[0.0-1.0].

    Are you using glReadPixels with GL_UNSIGNED_BYTE to read back the framebuffer?

Posting Permissions

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