Getting data from the shaders

Hi all,

I still a newbie and I wondered if someone can help me.

I am doing a certain calculation in my shaer’s main funciton and I would like to get the result back to the OpenGL program somehow. is there a way to do it ? Which OpenGL command should I use for this ?

10x a lot in advance,
zakashe

Use RTT (render to texture, pbuffer, frame buffer object or directly to (back/front) buffer - choose the best technique for you), use your shaders to generate texture and then read texture back to get shaders output.

MichalST.

This is your website :
http://www.gpgpu.org/developer/index.shtml#conference-tutorial

They have a fine wiki, too, but it seems down at the moment.

You can use render to texture or render to VBO (using transform feedback), provided your card supports it. :slight_smile:

Thank you all very much!!!

zakashe.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.