Software Engineering and Programming » Blog Archive » Ray Tracer

Ray Tracer

So I found a tutorial on about how to make a simple ray tracer. Using the tutorial I cleaned up a lot of the code and made it so the user can enter custom parameters for screen dimensions and field of view. You can set the resolution (the screen dimensions) very high but at like 11,000 x 11,000 it will take up to 5 hours to generate the image (but it will look amazing). On top of that, you can also modify the items.txt file to add/remove spheres, specify their colors and other parameters.

The Ray Tracer can be found in the applications page and the source code to the ray tracer is also posted in the source code page. If you want to see what came out of the ray tracer after I specified 11000×11000 with fov 60 and a high ray depth, click here.

Comments are closed.