I would like to know when the query return with hit.t = -1.0000. The hit format is RTP_BUFFER_FORMAT_HIT_T_TRIID_U_V. I used triangular vertices as mesh points. I’m sure that the mesh is watertight. I just can’t figure out what’s going wrong. Your help would be very appericiated.
Negative hit record values indicate a miss event.
It’s not possible to say what happens with the given information.
- Have you normalized all your ray directions?
- Are coordinate spaces of rays, transforms, and scene geometry really setup to produce a hit?