Transform Feedback Buffer
I want to compute FFT using opengl and shaders.
I have seen that some people have done this using the fragment shader like this one GPU GEMS 2
But I think of using the Transform FeedBack Buffer. However, it is really difficult to find a simple example of it.
I already have the OpenGl superbible book in which this method is explaned but the example is highly difficult (flocking ).
So I wonder if using the Transform feedback is a good idea and if so do you know some basic tutorials of how to use it?
For how to use it, check out these links:
* Modern OpenGL
* Tutorial 28 (OGLDev)
As to if it's a good idea, I'm no GPGPU guru, but a brief look at the data flow suggest you probably need some way to do feedback. Could do with transform feedback and vtx shader only, or could do with point fragments scattered to the appropriate places in a destination rendertarget by setting gl_Position. There are probably other way too though. You may want to do a literature search. This kind of thing has been done for 10 years or more using GPUs and it might save you from re-inventing the wheel.
Last edited by Dark Photon; 01-17-2013 at 07:11 PM.