| Submitted by , posted on 26 February 2002 |

Image Description, by So here's my first IOTD submission -- my "it's been done millions of times before" ray-tracer! It contains the standard features:

> - spheres
> - planes
> - polygons (well, only triangles, but easy to convert to any convex polygon)
> - cylinders
> - ambient light
> - point lights
> - spot lights
> - soft shadows
> - reflections (can set level of diffusion)
> - texture mapping
> - bump mapping
> - multi-texturing

It's written in C++ and uses OpenGL. Wrote it under Windows, but since it uses OpenGL don't see why it wouldn't work under other OSes. In fact, if you're so inclined you can pick up a copy of the code at http://www.geocities.com/b_betts/pics/raytracer/raytracer.html. If you've ever wanted to write cool ray-tracer effects but are too lazy to do the basics, now's your chance!
-Buddy Betts

[prev] | Image of the Day Gallery www.flipcode.com | [next]

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.