Results 1 to 2 of 2

Thread: may i assign a data exceed [0,1] to the rgb value?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    China
    Posts
    11

    may i assign a data exceed [0,1] to the rgb value?

    Hi,i am now studying GPGPU and i want to transfer my data to fragment program by building a texture.But the data are not in the range of [0,1], should i normalize the data at first?if i don't,can i get the true date in fragment program?
    thank you.

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: may i assign a data exceed [0,1] to the rgb value?

    There are floating point textures with 16 and 32 bit precision. Look up the extension http://www.opengl.org/registry/specs...ture_float.txt

    There is a dedicated GPGPU site http://www.gpgpu.org/ which should get you started on such basics.

Similar Threads

  1. Assign to uniform from shader
    By Kopelrativ in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-11-2011, 10:50 PM
  2. Assign opengl program to secondary GPU
    By Dylan in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-11-2008, 10:21 AM
  3. Assign color to multiple cubes
    By Zath in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-17-2006, 04:48 PM
  4. Problem with Suse/OpenGL from Hummingbird Exceed
    By SBrigi in forum OpenGL: Linux
    Replies: 1
    Last Post: 05-09-2006, 05:03 PM
  5. Tessellation & Exceed 3D
    By vhelin in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 10-30-2000, 09:17 AM

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