the incident direction in intersection information is different from the defined ray direction #1356
-
Hi,everyone. I found a strange problem, and not sure if it is a bug.
and the output is:
One can be observed is that wi = [[-0.607023, -0.23556, 0.758969]] is very different from the ray direction [0.45039022, -0.8601879, 0.23921824]. Is there any problems, or do I misunderstand something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Wi is the direction in the local frame, that's why it is different from ray direction. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
As @xacond00 mentioned, it’s defined in the local frame built with the shading normal. Additionally, it is pointing outward. You can find more details in “interaction.h”.