[HOpenGL] GLU NURBS rendered wrongly

Alexey Karakulov ankarakulov at gmail.com
Tue Oct 18 12:02:46 CEST 2011


Description:
GLU NURBS are rendered wrongly with newer versions of OpenGL.
E.g. when the 9-point rectangular representation for a circle is used, this
picture is a result (instead of a proper circle):
http://i.stack.imgur.com/waoRm.png
There are other details at the
http://stackoverflow.com/questions/7798662/glu-nurbs-rendered-wrongly

Versions:
The bug appears when OpenGL>=2.3 is used. With older versions the NURBS for
circle is rendered correctly:
$ ghc -package OpenGL-2.2.3.0 -package GLUT-2.1.2.1 --make Circle.hs &&
./Circle

Platforms tested:
ArchLinux 64-bit, Gentoo (don't know architecture).

The Circle.hs file which draws the NURBS circle is attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20111018/4417ae52/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Circle.hs
Type: text/x-haskell
Size: 2000 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20111018/4417ae52/attachment.hs>


More information about the HOpenGL mailing list