From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 2C352BC6B for ; Sun, 30 Dec 2007 07:45:16 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAGzNdkfUnw7VdWdsb2JhbACCNY1bAQoEBg8TB5g6 X-IronPort-AV: E=Sophos;i="4.24,222,1196636400"; d="scan'208";a="5606570" Received: from ptb-relay02.plus.net ([212.159.14.213]) by mail2-smtp-roc.national.inria.fr with ESMTP; 30 Dec 2007 07:45:16 +0100 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1J8rv8-00058X-8G for caml-list@yquem.inria.fr; Sun, 30 Dec 2007 06:45:14 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] openGL shader demos Date: Sun, 30 Dec 2007 06:36:02 +0000 User-Agent: KMail/1.9.7 References: <200712232257.33658.fmonnier@linux-nantes.fr.eu.org> <200712280121.42737.jon@ffconsultancy.com> <200712292220.48821.fmonnier@linux-nantes.org> In-Reply-To: <200712292220.48821.fmonnier@linux-nantes.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712300636.02950.jon@ffconsultancy.com> X-Spam: no; 0.00; ocaml:01 ocaml:01 byte:01 bigarrays:01 frog:98 wrote:01 wrote:01 caml-list:01 minor:01 strings:01 essentially:02 restrict:02 bugs:03 opengl:03 opengl:03 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 names. 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. http://www.ffconsultancy.com/products/?e