dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 5 forks source link

On specific rays, bf is hitting when tree is returning no hit for rubber ducky #61

Open pjsmith97 opened 4 years ago

pjsmith97 commented 4 years ago

I've honed the problem to be with either my triangle ray intersection or my box ray intersection. In the ray I investigated, I know that both read an intersection, but in my tree algorithm, it doesn't get past my box code since the t value read is less than min_t. I had no problems with my triangle code from ray casting afaik so I'm tempted to say there's still something wrong with my box intersection code, but I'm not so sure. I had to change a couple lines of my triangle code to accommodate for the fact that we're using row vectors instead of column vectors, so perhaps there is a mistake there.