nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.36k stars 143 forks source link

[question] ray not hitting when going through vertex #12

Closed zhuker closed 3 years ago

zhuker commented 3 years ago

when a ray is tangential to primitive (e.g. passes through one of the vertices) vulkan nv ray tracer thinks its a miss embree thinks its a hit is there a way to force hit in this case?

mklefrancois commented 3 years ago

This is a corner case. It would be possible to code an intersection shader to do this, or modify Embree (Open Source) to behave in a similar way.

pgautron commented 3 years ago

Hi @zhuker , I would be interested to know more about your use case. Which GPU did you use for this test? And does your acceleration structure involve instance transforms? If you would be able to share a reproducer that would be great. Thanks!

zhuker commented 3 years ago

@pgautron let me come up with something reproducable

mklefrancois commented 3 years ago

Closing, please reopen later with a reproducible.