View Full Version : multiple bezier curves Problem

10-08-2007, 06:48 AM
Hi there,

I have a problem to visualize multiple bezier curves.

the controlpoints[n][4][3] is provided.

I want to draw N Bezier curves.

Why can not I visualize them all at the same time??

void init(void)
int j;
glClearColor(1.0, 1.0, 1.0, 0.0);

for(j=0; j<2; j++){
glColor4f(0.0, 0.0, 0.0, 0.5);
glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 4, &amp;ctrlpoints[j][0][0]);
}only one curve is visualized. why????????????

Thanks a lot for your idea.

10-08-2007, 07:46 AM
First of all, please don't double post :p

Second, I already told you and I will tell this again: don't use OpenGL evaluators, but write your own bezier curve evaluator. This is a trivial task and will allow you to manage your rendering the way you want it.