You are viewing the course site for a past offering of this course. The current offering may be found here.
Lecture 9: Intro to Ray-Tracing & Accelerating Ray-Scene Intersection (66)
madssnake

if the ray was moving left, for the middle case would we traverse the right side first and then the left side?

sZwX74

I think so, as that is now the order for which we intersect the box. On the other hand, we would still only traverse the left half in the left case and the right half in the right case if the ray were moving the other way because t_min and t_max would still be on the same side of x_split.

saltyminty

I know this is kind of splitting hairs, but what if t_split = t_min or t_split = t_max? Are bounding boxes allowed to be coincident with the contained object?

LeslieTrue

@saltyminty, I think it's ok if tsplit = tmin or tmax and it can happen in real cases. I think the solution is, instead of using </> to define the domain, use <= or >=.

adityasingh7311

This diagram shows intersection with a node right? How do we find t_min and t_max if we don't have the bounding min/max coordinates of the node?

If we did have those values I think we would just use the ray equation to calculate at what time the intersection at some x or y coordinate occurs.

You must be enrolled in the course to comment