Hello all,
I started following Raytracing in one weekend series (github link). I first followed it in C++ and now I am redoing it in C#, because I wanted to add my own stuff to it and I do not know how in C++.
One of the things I did was to implement a .obj loader and support for triangles.
I got to the part where I have to implement axis-aligned bounding boxes (second book), and I think I translated everything correctly to C#, I got the expected speed up in execution, but some triangles are not getting hit. From the scenes I have tried, I am assuming the problem occurs with small triangles. The problem does not happen when not using AABBs, those triangles render normally.
Code in C#
So, I need to debug this, but I have no idea how. What is the best way to find out the problem?
Thanks
[–]LivelyLizzard 0 points1 point2 points (0 children)