View Full Version : How to generate NURBS surfaces

10-28-2012, 09:41 PM
The red book introduces the evaluators to draw NURBS surfaces before OpenGL 3.1, however, the evaluators have been removed from OpenGL since version 3.1, how to draw NURBS surfaces then?

10-28-2012, 10:52 PM
Can I model the NURBS surfaces in a 3rd-party software, export out as data sets and then rendered using OpenGL?

10-29-2012, 10:38 PM
Yes, so long as the exported data is in some form of triangles. It is also possible to render some NURBs directly using patches

12-09-2012, 09:59 AM
I am gonna revive this thread.

is there a way to use nurbs (doesn't even need to be efficiently) with shaders?
I'm fairly proficient using GLSL and OpenGL v > 2.1. Now I just want to display a few nurbs surfaces. So
a) Is there a (rather simple) way to retrieve a polygon mesh from those Nurbs-surfaces?
b) Is there a way to use shaders in older versions that allow the use of gluNurbsObjects?

Believe me I tried looking for a solution on my own.


12-09-2012, 02:03 PM
Whilst I am not really able to answer You myself, this tutorial might be of some help:

There is also this, found a couple of seconds after, here:
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0CEYQFjAD&url=http%3A%2F%2Fwww.cs.duke.edu%2Fcourses%2Ffall0 5%2Fcps124%2Fnotes%2F10_curves%2Fopengl_nurbs.pdf&ei=-AnFUNm6OaqN4gSsx4CAAg&usg=AFQjCNHgRQcVXZvxw-xKFQ7I_ZjrFv4jvg

Sorry, for the hidious link, but I don't know how else can I post it, to be Eye-Friendly.

Are you guys not looking at the OpenGL wiki ? : )

12-12-2012, 09:49 AM
The first link is exactly what I was looking for. (At first glance, I will try it out tomorrow)