-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
When opening an issue please follow the pre-filled template I'll move this to a discussion thread for now, it seems more appropriate. |
Beta Was this translation helpful? Give feedback.
-
Hi @ioissss For examples of integrators you can check out the source code of all the integrators we ship. You'll find it here and here. As for your error, I believe that the issue is that the outgoing direction wo = si.to_local(emitter_sample.d);
L += emitter_weight*bsdf.eval(mi.BSDFContext(), wo) |
Beta Was this translation helpful? Give feedback.
Hi @ioissss
For examples of integrators you can check out the source code of all the integrators we ship. You'll find it here and here.
As for your error, I believe that the issue is that the outgoing direction
emitter_sample.d
is in world-space, when it should be in local-space. You can fix it with the following: