View Full Version : mapping data to a texture

07-02-2003, 08:49 AM
I am trying to map some scientific data to a texture in OpenGL, so that I can process it using a fragment shader.. I know how to read a bitmap from file and bind it, however I am a little at a loss as to how to generate a texture from data. What format does a texture object take in OpenGL?

any help would be appreciated,

07-02-2003, 10:15 AM
Look at: http://nehe.gamedev.net