Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ANN] glMLite
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-12-30 (06:45)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] openGL shader demos
On Saturday 29 December 2007 21:20:48 Florent Monnier wrote:
> > I recently wrote several OpenGL 2 shader demos in OCaml
> If your OCaml-OpenGL demos are available on the web, I would be well
> interested to get those.
> (Or if they are not, maybe you could send in email.)

Yes, I suspect quite a few people would like these demos. I'll put them up on 
our site ASAP.

Essentially, OpenGL 2 lets you do per-pixel lighting from OCaml really easily 
and the results look absolutely fantastic: much better than OpenGL 1. You can 
also do much more sophisticated things (like the Mandelbrot shader I've got 
working) but its the basics that I really appreciate.

GLCaml makes this about as easy as it can be, although there are a couple of 
places where I'd like the types to be different. For example, I'd prefer 
strings instead of byte bigarrays for everything from shaders to variable 

In summary, there's no reason for OCaml programmers to restrict themselves to 
OpenGL 1, at least not after Elliott fixes the minor bugs I found.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.