Every graphics engineer should write a ray tracer at some point. I’ve done this a couple of times in C++ and Python.
Teaching ray tracing is challenging but fun too. With these frameworks I tried to build all the ‘hard’ stuff into simple libraries and have the students work at the simpler task of calculating ray/object collisions and generating colors.
The examples shown here implement diffuse and specular ray tracing, along with some simple AA to improve the final image. Without AA they run in real time and you can ‘walk’ around the objects.
comments powered by Disqus