PDA

View Full Version : Getting Evaluated Coordinates



Rohit K
09-07-2009, 09:04 PM
Hello!

I am using glMap1f and glEvalCoord1f to generated a bezier curve. However, I would like it to be a pipe curve, for which I am using gle library.The gle routine requires a contour point-set (which is no problem) and a path points-set. How can I extract the points evaluated by the two mentioned commands, and store them in array for use as path coordinates, or is there any other method available to generates curved pipes in OpenGL.

Thanks,

Rohit

Hlz
09-08-2009, 12:37 PM
I think the modern approach to this is to use transform feedback, which allows you to output geometry post vertex or geometry shader into a buffer for further processing or CPU access.