PDA

View Full Version : How to use software vetex processing?



Lee Sandberg
08-01-2002, 01:36 AM
For some reason I need to use software vertex processing to get the processed vertices to the CPU' system memory for further computation.

Can I do software vertex processing in opengl? And how do I do this?

Regards
Lee Sandberg
AB Colorod Media

Korval
08-01-2002, 11:00 AM
You cannot use OpenGL to transform your verts and return a buffer to the transformed data. You will have to write the routines to do this yourself.

bpeers
08-02-2002, 03:34 AM
In the worst case, you can try using a feedback buffer, but iirc this returns vertices of transformed and pixel-clipped _fragments_, so you're in for a performance ride. See spec 1.1 section 5.3. I used this technique to muck with ST coordinates in a way that wouldn't fit on the texture matrix, after they were TexGen'ed by the GL.

Edit: spoeling

[This message has been edited by bpeers (edited 08-02-2002).]