| Basic ray tracer, C++.
Here is a basic ray tracer i wrote years ago. The goal
was to write a simple ray tracer, in order to understand ray tracing
concepts and maths. The program takes a text file as input, and produce
a .tga file as output. The code is easily readable and can be
interesting for someone wanting to write his own raytracer. I used the
classic recursive algorithm. If you plan to do some serious rendering,
you should consider to use complete solution like Povray, sunflow or
yaffray open source projects.
Features : rendering plane, boxe, cylinder, cube , all
quartics, and torus.
The code is only C++ and does not rely on any library.
Click on pictures to get full 640x480 size screenshots.