PDA

View Full Version : Vertex transform and readback



Peter06
01-20-2008, 09:25 AM
Hi all,

I want to know how I can perform vertex transformation and readback result.

(I know I can copy vertex attributes into a texture, transform them by a pixel shader and readback the result via a render to texture)

But doesn't it have a best solution like :

1 -Draw normally polygon ...

2- Set a vertex transformation shader,

3- Read back the result into CPU memory.


Thanks in advance :D

Seth Hoffert
01-20-2008, 11:19 AM
If you have a shader model 4.0 NVIDIA card, you can use the transform feedback extension to render from the vertex shader or geometry shader into a VBO.

http://www.opengl.org/registry/specs/NV/transform_feedback.txt