Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing scene object structure - [❔ other question] #603

Open
anderslanglands opened this issue May 29, 2022 · 2 comments
Open

Editing scene object structure - [❔ other question] #603

anderslanglands opened this issue May 29, 2022 · 2 comments

Comments

@anderslanglands
Copy link

I'm trying to write a USD Hydra delegate for Mitsuba. In order to do so I need to be able to change the scene structure, e.g. to assign a new BSDF to a Shape. This doesn't appear to be possible with the current API - one can change the value of many parameters using the TraversalCallback API but not assign new Objects.

Would it be possible to modify Mitsuba to do this? Or is the current architecture fundamentally antithetical to changing the structure of the scene graph after the scene is first created?

@anderslanglands
Copy link
Author

Thinking about it some more, it occurs to me that a possible solution might be to create and hold ref's to all the objects individually, then construct the scene graph fresh each time the topology changes. I'll give that a go.

@Speierers
Copy link
Member

Indeed this isn't something we support at this point.

We will look into the ability to modify the scene graph on the fly eventually but this isn't high priority on our todo list.

Your alternative solution should work as well, although might be less efficient (e.g. rebuilding the BVH when setting a new BSDF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants