I’ve been having issues with Optix Prime when computing intersections with secondary rays originating from multiple sources. I am computing the start position of these rays from the hit position of the previous ray. The direction of the each ray is towards each point receiver in my scene ( I can have multiple for both ).
The issues I am having is that the rays are being inconsistently intersected by my triangle mesh. Sometimes they get all the way through to my receiver, other times they do not even if it appears that through visualization they should. This appears to be occurring at a roughly 50% rate. This even occurs if I place my source and receivers far above the triangle mesh where the triangles should be unlikely to be obstructing their paths. When checking to see if a ray is received at the point source I am simply checking in each hit result for a miss result ( tri_id = -1 ).
I have also verified that my rays are normalized ( or as close as possible ).
I will note that my triangle coordinates are in the ECEF coordinate frame which tends to have relatively large single precision magnitudes.
I am also visualizing the results using a MATLAB script which draws the rays from each source to each hit point, then a secondary ray from each hit position to each point receiver and where it hits (or not). For visualizing the triangles I am using the trimesh function.
What could be causing these issues to occur in Optix Prime?