PDA

View Full Version : Drawing NURBS by calling glNewList...glEndList



clarkyeah
09-12-2010, 12:31 AM
Hi,
I am currently learning drawing NURBS surface using opengl. A curious thing is that:

when I put the NURBS surface rendering code between glNewList...glEndList, the surface shown on screen is distorted, while I implement the rendering code without using calllist, the surface is rendered perfect. Does this means that the glNewList is not suitable to be used with NURBS rendering function?

The two images is given here:
http://img233.ph.126.net/2yuP2ra0Sepe9ggTcvshSw==/1364027737141267761.jpg
and the distorted image is:
http://img314.ph.126.net/D7yS1g78aRypW_AqRWdwrg==/3874784529399216059.bmp

strattonbrazil
09-12-2010, 06:43 AM
Your images aren't visible to me.

Anyway, I don't see any reason why display lists can't be used to render NURBs. There are a bunch of reasons why your code might not work in display lists. The first one that comes to mind is you might be calling a function inside the display list, which is not allowed to be inside a display list.

Could you post some code?