TL
RI am casting rays to spheres which return the number of the primcentroid they have been copied to. Works as expected, except for cases where the ray hits nothing. I am expecting a return of -1, instead I get a 0. However, this behaviour is also consistent.
Anyone else experienced this?
———
I am casting rays from every point in the direction of the yellow and red vectors. If i cast the rays from lets say point 28, my intersect returns 27 and 29 as result. This is correct. When I cast the rays from point 29, I get as a result 28 and 0. Likewise if I cast from 30, i get as a result 31 and 0. As these are both corner points, I expect a -1 insted of 0. I can change my point sort beforehand, and the numbers shift, but the result in case my ray hits nothing still returns as 0 with the other results being correct.
I have attached a screenshot of the scenario as well as my console output to clarify, unfortunately i can not attach a hip (because you know how it is…)
Has anyone else experienced this, is this a bug?
Confused.


