mitsuba-renderer/mitsuba-tutorials

Python Direct Intergrator in Mitsuba 3

andiac opened this issue · 3 comments

Hi! I am trying to replicate the Mitsuba 2's direct_integrator tutorial in Mitsuba 3 and this is my replication.

There is an error when executing

active_b &= dr.neq(emitter, 0.0)

Any help with it? Thanks.

That line doesn't really make sense 🤔. Try None instead of 0.0

Generally this kind Mitsuba 2 code can be expressed more compactly because of implicit masking. If an instance in an instance array equals None, Mitsuba 3 will just not do the call for that lane and return zeroes.

Thanks!