OpenGL: How to draw Bezier curve of degree higher then 8?
Posted
by maciekp
on Stack Overflow
See other posts from Stack Overflow
or by maciekp
Published on 2010-04-24T18:04:02Z
Indexed on
2010/04/24
18:13 UTC
Read the original article
Hit count: 288
I am trying to draw high order Bezier Curve using OpenGL evaluators:
glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 30, &points[0][0]);
glMapGrid1f(30, 0, 1);
glEvalMesh1(GL_LINE, 0, 30);
or
glBegin(GL_LINE_STRIP);
for (int i = 0; i <= 30; i++)
glEvalCoord1f((GLfloat) i/30.0);
glEnd();
When number of points exceeds 8, curve disappears. How to draw higher order Bezier curve using evaluators?
© Stack Overflow or respective owner