-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterator with tmin/tmax and ray shortening #66
Comments
Is this a dup of #56? |
I don't believe so. #56 asks for "what is the closest object/s in the BVH to arbitrary points". This request is mostly for adding ray shortening to the traversal. It could look something like:
|
I gave this some thought. I think the only way to safely do this is to pass an |
That's not really true, the slab method computes t anyway. |
Currently traverse() and traverse_iterator() visit every node along an infinite ray. The application however has information which could reduce traversal steps:
tmin
/tmax
with the ray and test ray/AABB distance against this range.t
along the ray (common) it can shorten the ray during traversaltmax=min(tmax,t)
Implementing an iterator which supports tmin/tmax as well as making these mutable to shorten the ray during traversal would help performance in many apps.
The text was updated successfully, but these errors were encountered: