The implementation proved to be quite a struggle, since the books don't prepare you from the errors. The errors from the compiler aren't a great help either and having a null pointer just stops the program leaving you no clue about where it all went wrong.
However, after a little less than 25 hours of programming, I finally managed to calculate the direct lighting in a simple cornell box with two spheres.
Cornell box with two spheres. Rendered with path tracing and 1000 rays per pixel. |
No comments:
Post a Comment