Replies: 1 comment 2 replies
-
Hi @tomas16 Nothing obvious jumps to my mind. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm tracing some rays in a loop. Below code is the core of the loop body:
I have one case where everything essentially turns into nan. I've traced the problem to
si.sh_frame.n
,si.sh_frame.s
andsi.sh_frame.t
being all nan, so in turnsi.wi
andcosti
are nan,costt
is 0,raydir_local
is[nan, nan, 0]
andraydir
is[nan, nan, nan]
.I used
si.prim_index
to find the vertex normals of the face that's being intersected, and they are:My understanding is that the shading normal
si.sh_frame.n
is constructed by interpolating between these vertex normals, andsi.sh_frame.s
andsi.sh_frame.t
are then constructed by finding perpendicular vectors.Why would these shading frame basis vectors be nan if the vertex normals they're interpolated/constructed from appear correct?
Beta Was this translation helpful? Give feedback.
All reactions