From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 87F98BC48 for ; Thu, 28 Apr 2005 11:37:52 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3S9bqTw008110 for ; Thu, 28 Apr 2005 11:37:52 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA26349 for ; Thu, 28 Apr 2005 11:37:51 +0200 (MET DST) Received: from ptb-relay04.plus.net (ptb-relay02.plus.net [212.159.14.213]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3S9bp20008105 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 28 Apr 2005 11:37:51 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay04.plus.net with esmtp (Exim) id 1DR5Sw-00067p-JN for caml-list@inria.fr; Thu, 28 Apr 2005 10:37:50 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@inria.fr Subject: Mini ray tracer Date: Thu, 28 Apr 2005 10:37:45 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504281037.46186.jon@ffconsultancy.com> X-Miltered: at nez-perce with ID 4270AEF0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4270AEEF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; tracer:01 tracer:01 ocaml:01 ocaml:01 frog:98 caml:02 objective:02 shootout:02 shootout:02 loc:05 768:90 i've:11 image:87 products:86 ltd:85 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: I just knocked up a little ray tracer in OCaml to test its viability for the shootout: http://www.ffconsultancy.com/free/ray_tracer/ Here, it traces a 768^2 image of 66,430 spheres in 22.51s on a 1.2GHz Athlon-Thunderbird and in 7.24s on a 1.8GHz Athlon 64. I've boiled it down to 94 LOC and posted it to the shootout mailing list. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists