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

Unreliable instance sources #25

Open
ainaerco opened this issue May 6, 2021 · 1 comment
Open

Unreliable instance sources #25

ainaerco opened this issue May 6, 2021 · 1 comment

Comments

@ainaerco
Copy link

ainaerco commented May 6, 2021

Porting the issue from usd github:
PixarAnimationStudios/OpenUSD#1034

Inside BuildInstanceMasterMapping function masters getting m0, m1, m2 names:
https://github.com/TheFoundryVisionmongers/KatanaUsdPlugins/blob/20.08/lib/usdKatana/utils.cpp#L1731
Problem is masters order may change upon re-reading the stage. Therefore any modification inside Katana you do to 'm0' may suddenly become applied to wrong master. We workaround this by modifying plugin and constructing master names using asset info (or asset name).

@radon199
Copy link

It should be noted there are many different reasons why the plugin will spin up multiple mN masters for a single USD filepath. One is time offsets. When two assets use the same time offset they will come in as multiple mN masters.

You should be able to set USD_ASSIGN_PROTOTYPES_DETERMINISTICALLY to tell USD to generate the masters in an explicit order, which should cause the masters to be found in a specific order if you do need to key off of specific mN locations.

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