Simon Krahnke
5/1/2008 2:52:00 PM
* James Gray <james@grayproductions.net> (16:00) schrieb:
> On May 1, 2008, at 4:05 AM, Simon Krahnke wrote:
>
>> I've foolishly done a small raytracer in pure ruby?
>
> I've always wanted to try that.
>
> MJD has a neat little raytracer in Perl. I think it's 400 lines, or so.
Well, rayt (that's its short name) is quite basic and limited, there are
only two different object types: planes (with no borders) and spheres. I
only ever tried grayscale images and it's just plain raytracing with
reflection and transparency.
I consider it quite finished, because pure raytracing with its shadow
rays it's just too bad at distributing light, and can always learn to
use povray. I might try to implement refraction some day though.
> Is your code publicly available?
No, but I could zip it up and mail it to you if you want.
mfg, simon .... my address works