PDA

View Full Version : How to generate NURBS surfaces



shapeare
10-28-2012, 10: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?

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

tonyo_au
10-29-2012, 11: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

HeinsDieter
12-09-2012, 10:59 AM
Hi,
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.

Thanks,
Heins

Decesive
12-09-2012, 03:03 PM
Whilst I am not really able to answer You myself, this tutorial might be of some help:
http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_07

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 ? : )

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