[HOpenGL] NURBS surface with texture

Rob Agar rob at engineeredarts.co.uk
Thu Jun 26 12:10:33 UTC 2014


Hi all

Does the GLU.NURBS module support texture mapping?

I'm playing around with code based on the sample at 
https://github.com/haskell-opengl/GLUT/blob/master/examples/RedBook4/Surface.hs 
trying to draw a textured surface. As I understand it, I need to call 
nurbsSurface again to create a texture coordinate surface as well as the 
vertex one, but I can't see how to tell it which type to make.

Or have I misunderstood the way NURBS surfaces are created?  The docs at 
http://www.opengl.org/sdk/docs/man2/xhtml/gluNurbsSurface.xml are fairly 
sketchy :\

cheers
Rob


More information about the HOpenGL mailing list