TAX
02-16-2004, 11:08 PM
I have a RGB float texture, where each pixel represents a particle. RGB=XYZ
I am manipulating the texture with Cg programs, to simulate movement, and that works fine.
The problem is that when I am done manipulating, and I would like to display I need to download the texture (pbuffer) to the cpu, and thereafter send it as pixels in a for loop.
This works, but I would very much like to do it in another way.
I am told that it should be possible to cast the texture in video memory as a vertexarray and pass it to a "glRenderArray(GL_PIXELS)" or somthin.
Any suggestions?
I am manipulating the texture with Cg programs, to simulate movement, and that works fine.
The problem is that when I am done manipulating, and I would like to display I need to download the texture (pbuffer) to the cpu, and thereafter send it as pixels in a for loop.
This works, but I would very much like to do it in another way.
I am told that it should be possible to cast the texture in video memory as a vertexarray and pass it to a "glRenderArray(GL_PIXELS)" or somthin.
Any suggestions?