Closed WeiPhil closed 5 months ago
Hi @WeiPhil,
Thanks for investigating this issue and opening a PR! Could you please add a tiny unit test that checks the fix is effective? (could be adapted from your reproducer script above)
Hi @WeiPhil
Thanks for the PR :+1:
(I've also pushed a unit/regression test in https://github.com/mitsuba-renderer/mitsuba3/commit/cdd489c717b385bae7ff24601422879ea41d5bf5)
Thanks @njroussel ! Sorry for the delay in adding that test..
Hi, We encountered a small bug in the emitter plugin that caused the sampling_weight attribute to not be updated when it was changed in the scene parameters. Calling
dr::set_attr(this, "sampling_weight", m_sampling_weight)
in the constructor andparameters_changed
seems to fix the issue. Below is a small reproducer of the issue in case it helps. Just changenum_emitters
to 1 or 12, the outputs should be identical:Best, Philippe