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

Thread: please help me......

  1. #1
    Guest

    please help me......

    i want to know how to write the code in pixel shader to compute the squared difference between pixels using the register combiners.
    please help me i am in great need.

    alankritha

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: please help me......

    I don't think your question i very valid in the beginners forum...

  3. #3
    Member Regular Contributor
    Join Date
    Feb 2002
    Location
    Hamburg, Germany
    Posts
    413

    Re: please help me......

    you can't write a "pixel shader"(its acutally called "fragment shader" in openGL) to setup the register combiners.
    register combiners are set up using various gxTexEnv calls.
    take a look at following extensions:

    for register combiners: http://oss.sgi.com/projects/ogl-samp..._combiners.txt http://oss.sgi.com/projects/ogl-samp...nv_combine.txt http://oss.sgi.com/projects/ogl-samp...v_crossbar.txt

    for fragment programs: http://oss.sgi.com/projects/ogl-samp...nt_program.txt

  4. #4
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,947

    Re: please help me......

    Moving thread to the shaders forum. Someone there may give you specific help.

Posting Permissions

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