Adding elements to scene after scene has been loaded via dict. #1084
Answered
by
njroussel
foshyjoshy
asked this question in
Q&A
-
Hi, I'm curious if it's possible to add items to a scene after it has been initially created with scene = mi.load_dict(scene_dict). Specifically, I'm looking to programmatically add lights to the scene that already contains my sensor and meshes. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
njroussel
Feb 26, 2024
Replies: 1 comment 1 reply
-
Hi @foshyjoshy Here's maybe a more complete answer: #873 However, for lights specifically, you might be better off (if possible), loading them all into a single scene and then turning them on/off by changing their radiance parameter. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
foshyjoshy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @foshyjoshy
Here's maybe a more complete answer: #873
However, for lights specifically, you might be better off (if possible), loading them all into a single scene and then turning them on/off by changing their radiance parameter.