My Simple Raytracer
Here's the zip file containing the program plus a few sample script files Here's the zip file containing a AVI Movie
It is a Win32 EXE, developed on Win2000 using VC++. The main part of this project is a class called TRaytraceEngine, which obviously handles the raytracing. It uses SSE intruction for doing a little part of the calculations (when enabled from options menu) It uses OpenGL for allowing viewing and positioning on screen. When you do the raytrace, it will overlay an image on top. It has the ability to save a snapshot, using File -> Export -> Raytraced Image It has it's own scripting format. I included a file "rsf specification.txt" for those who want to try it out. The zip file also comes with a few sample files to get you started. It has the ability to make AVI movies (using my TAViFile class). You can either capture frames manually using the C key and then terminate the movie yourself (at which point the file will be written to disk). The other options is to use the "Auto Movie Maker" which will simply rotate the scene little by little and capture frames automatically. All in all, this is just a small demo. Not a full blown raytracer like POVRay, or MentalRay or anything like that. It is of course not very fast. I haven't added the ability to handle transparency (that would be a cool feature but these things are time consuming). I did this as a final project for my Graphics course at university (Summer 2002)
Requires OpenGL 1.1 (minimum) Enjoy!
Copyright (C) 2002 Vrej M. All Rights Reserved.