makepath / rtxpy

Ray tracing using CUDA accessible from Python.
MIT License
12 stars 2 forks source link

Possible to get triangle hit index? #17

Open pingpongballz opened 3 months ago

pingpongballz commented 3 months ago

Hi, I was wondering if it was possible to obtain the triangle hit index of the rays? (Ray hit which triangle, so on and so forth)

Thank you!

a7az0th commented 3 months ago

It's absolutely possible to obtain the triangle hit index, but this basic implementation does not support it. All that's returned from OptiX here is the hit distance and the normal at the intersection point.

pingpongballz commented 3 months ago

Hi!

Thanks for the reply! Am i allowed to edit kernel.cu to better fit my own needs? The problem is that setup.py does not seem to update any changes I made in kernel.cu. Is there a way to perform this? Thank you so much!