One more on nurbs... drawing curve interactively.

How can I write a program so it will write a nurbs/b-spline curve as the user clicks on screen? Two things I guess I will need here. one is to get the clicks into 3d space. For that I will use the glUnproject. But how do I use the nurbs object so it updates interactivelly?
Thanks again,
Luke

You have to create a new spline curve when ever you add points to it, OpenGL does not support interactive editing of splines.

You probably also want to interpolate the curve so that it goes through the points, if you just create a spline curve of the points the user clicks on the curve will not pass thorugh the actual points created by the user.

Mikael

Sounds good, but how can I interpolate the points ? :slight_smile: