Skip to content
Discussion options

You must be logged in to vote

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:

wo = si.to_local(emitter_sample.d);
L += emitter_weight*bsdf.eval(mi.BSDFContext(), wo)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ioissss
Comment options

Answer selected by ioissss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1204 on June 24, 2024 06:38.