I’ve finally finished my ray tracer implementation in openFrameworks. This is an example of the Cornell Box.
It is a basic implementation, with just one type of material supported, but:
- It loads model through ofxAssimpModelLoader
- It has antialiasing through supersampling
- Multithreading, using tbb (tbb is also required)
I have added a lot of comments in the code, and in the NOTES.md there are some notes about the math behind it.