Dear all,
I am new to optix and as a first project I am trying to set up some basic raytracing (using optix 7.6 with a python wrapper).
The first goal is to trace some random rays through a cuboid with a tetrahedron mesh - each tetrahedron with slightly different refractive indices - and get the position and direction of the ray on the cuboid surface.
Overall it works fine so far, but I am having trouble with the self-intersection. While working on this, I was wondering if I could just tell optix which triangles to test next for each ray, since I know the index of the last triangle hit, and I can get the three indices of the other surface triangles of the tetrahedron. Is there a good way to do this? Or is such an approach not recommended? I found some discussions about the OptixVisibilityMask or AnyHitShaders, but I am not sure if this is what I am looking for.