Re: [Haskell] ANNOUNCE: OpenGLRaw 1.0.0.0

Sven Panne schrieb:
Am Donnerstag, 11. Juni 2009 19:23:17 schrieb Bryan O'Sullivan:
[...] I think that "Graphics.Rendering." is clutter, and "OpenGL.GL." seems redundant to me. [...]
I forgot to mention one thing here: "OpenGL.GL" is currently *not* redundant, there is "OpenGL.GLU" in the OpenGL package, too. GL and GLU are separate libraries, even living in separate DLLs/*.sos, having separate headers, etc., so they should be kept separate in Haskell at some level, too.
Nevertheless, with OpenGL 3.1 GLU is dead,
Are you sure? glu is mainly for converting an arbitrary polygon into triangles. This is an art and so obviously wasn't put into hardware or driver. From a previous post I remember that tesselation was mentioned. But looking at some presentation slides from AMD/ATI I understand that tesselation in directx11 is using the following primitive patches: Triangles and Tri-patches, Quads and Quad Patches, Lines and Line Patches, see http://ati.amd.com/developer/gdc/2008/Tatarchuk-Tessellation_GDC08.pdf slide 31. I haven't found a lot of information in the OpenGL 3.1 Spec, so I assume they will do it similar to directx11. So, if glu is still needed, until I use a better algorithm in my library.
anyway, so in future versions there will be no ".GL" part in the package names.
Cheers, S.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Am Sunday 14 June 2009 23:08:56 schrieben Sie:
Sven Panne schrieb:
Nevertheless, with OpenGL 3.1 GLU is dead,
Are you sure?
glu is mainly for converting an arbitrary polygon into triangles. This is an art and so obviously wasn't put into hardware or driver.
Well, I *am* sure. ;-) Let's look at the various parts of GLU: * Generation of mipmaps: Part of core OpenGL 3.1, so it's redundant nowadays. * Matrix manipulation: Not part of OpenGL itself anymore, should probably be in a separate math library, which would then offer *much* more. * Tessellation: Should reside in a separate, more flexible tessellation library. Has a horrible interface in GLU. * Quadrics: Immediate mode and display lists are not part of OpenGL anymore, consequently these quadrics are deprecated. * NURBS: Basically the same as for tessellation. In a nutshell: Some parts of GLU are useless/deprecated nowadays, other parts should be in separate, much more flexible and nicer libraries. Unless I missed something, the last GLU spec (1.3) is from 1998, which is another indication for its usefulness. But I won't remove it from my current OpenGL package, because in its current state this package represents "old school" OpenGL, anyway... Cheers, S.

Sven Panne wrote:
* Tessellation: Should reside in a separate, more flexible tessellation library. Has a horrible interface in GLU.
But, until it does, it's useful. Deprecating (or indeed removing) stuff without replacing it is mean ;( Jules
participants (3)
-
Jules Bean
-
Sven Panne
-
Tillmann Vogt