More OpenGL goodness
The picture above is of HaskLS ported to use Gtk2Hs’s OpenGL support rather than the GLUT. Originally it used a combination of Gtk2Hs for the LSystem settings part of the GUI and HOpenGL with GLUT for the 3D part.
That solution was not optimal since the GLUT and Gtk+ event loops do not run at the same time. The new version works much better and gives the opportunity to embed the widget showing the 3D animation in the main window rather than them having to be seperate as was the case when using GLUT.
Just for fun I’ve got a flash video of the tree rotating. I recorded it using vnc2swf.
Warning! 3.3 Mb Flash video ahead:
Pages: 1 2