[✨ feature request] Is "change of emitter during rendering"available? #197
Unanswered
zhaoguangyuan123
asked this question in
Feature requests
Replies: 1 comment 9 replies
-
Hello @zhaoguangyuan123, Such an argument in the params = mi.traverse(scene)
def enable_only_emitter(name):
for k, _ in params.items():
if k == name + '.radiance.value': # Check exactly how the relevant property is named in your scene
params[k] = 1.5 # Will also depend on your scene
else:
params[k] = 0.
params.update()
for i in range(emiter_count):
enable_only_emitter('emitter_' + i)
img = mi.render(scene, spp=128)
# ... Of course you'll have to adapt the naming convention and the parameter data types according to what's in your scene. Another option is to create the scene within each loop iteration using |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Just want this simple feature.
From the document and tutorials I can only see that the "sensor" but not the "emitter" is able to change.
Is such feature already available or any other workarounds??
Looking forward to hearing any suggestions from you.
Best
Guangyuan
Beta Was this translation helpful? Give feedback.
All reactions