PDA

View Full Version : How to get the compute result of glEvalCoord*?



sogetsu
03-22-2007, 07:24 AM
I want to get the result of glEvalCoord*, such as the vertex coord (x, y, z).
How to do it?help

plasmonster
04-05-2007, 03:04 AM
You can roll your own evaluator or use some sort of feedback mechanism to read OpenGL generated vertices back.

For example, see the section on feedback here:
http://fly.cc.fer.hr/~unreal/theredbook/chapter12.html

Or if you're up to the math, there are many demos and libraries online for curve and surface generation in a variety of flavors.