Recursive 3-D Ray Tracing Program - Files


Summary |  Home Page |  Files | 
Notes

Release Name: Version 0.5 [Download]

Notes: This initial release assumes the output is VESA in INTERLACED mode. (You may change line 3434 in File Main.cpp to select a different graphics mode, interlace, resolution etc. -- see the constructor for class CGraphicsProcessor.h ) To build the program just type: make To run type: ./RayTrace Data/bounce.rt (I included 10 description files under Data directory, "bounce.rt" is one of them). Since the rendering process takes a while, if you run again the program with the same file, it skips the rendering ans goes directly to display the output. Hopefully next version will run faster. Notice that to Draw the render this program uses the POINT primitive. A frame is 160 x 100 pixels, so we are calling POINT 16,000 times. It takes less than 1 second to paint a frame, that is very fast! The animation effect looks slow because each frame is displayed again pixel by pixel. Obviuosly not the best technique, but the goal was to make the program as simple as possible to be used as a learning tool. For those interested in the Ray Tracing theory, I highly recommend the Books published by Christopher Waltkins (if you can find one :)


Changes: