View Full Version : One more on nurbs... drawing curve interactively.
11-04-2003, 01:57 AM
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?
11-04-2003, 03:19 AM
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.
11-04-2003, 09:58 AM
Sounds good, but how can I interpolate the points ? :-)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.