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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9F9D5BC0B for ; Mon, 15 Jan 2007 00:34:42 +0100 (CET) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0ENYfwj003422 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 15 Jan 2007 00:34:42 +0100 Received: from [80.229.56.224] (helo=[10.0.0.5]) by pih-relay06.plus.net with esmtp (Exim) id 1H6Es5-00046t-7C for caml-list@yquem.inria.fr; Sun, 14 Jan 2007 23:34:41 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Learn OCaml or the bunny gets it Date: Sun, 14 Jan 2007 23:32:55 +0000 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701142332.55476.jon@ffconsultancy.com> X-Miltered: at concorde with ID 45AABE12.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 geforce:98 7900:98 frog:98 caml:02 objective:02 opengl:02 thread:05 rendering:07 rendering:07 i'm:09 machine:09 ghz:90 450:88 Having read a thread about a real-time ray tracer by Jacco Bikker rendering the Stanford bunny at 7fps, I decided to try rendering the bunny from OCaml. Chucking it into an OpenGL display list gets me about 450fps on my machine (2.2GHz AMD64, GeForce 7900GT) with 16x FSAA for only 85 lines of code: http://www.ffconsultancy.com/free/bunny/ I'm working on shadows... -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists