PDA

View Full Version : mapping data to a texture



07-02-2003, 09: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,
elchup

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