question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create USDVariants components from loaded payloads

See original GitHub issue

USDVariants are not getting generated when loading in Payloads. Is there any workaround for this, or is this a bug / a missing feature?

As you can see in the example for there generated geom scope as GameObject, there is no LODVariant getting gerenated.

Example USD:

#usda 1.0
(
    defaultPrim = "test_component"
)

def Xform "test_component" (
    prepend references = </root_payload>
)
{
}

over "root_payload" (
)
{
    asset alembic:high:path = @/path/obj
    ...
    asset alembic:low:path = @/path/obj/low.abc@
    ...
    asset alembic:medium:path = @/path/obj/medium.abc@
    ...

    def Scope "geom" (
        prepend variantSets = "LevelOfDetail"
    )
    {
        variantSet "LevelOfDetail" = {
            "high" (
                payload = @./test_component.payload.usdc@</high>
            ) {

            }
            "medium" (
                payload = @./test_component.payload.usdc@</medium>
            ) {

            }
            "low" (
                payload = @./test_component.payload.usdc@</low>
            ) {

            }
        }
    }
}


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
judubucommented, Feb 12, 2020

Thanks for the full repro! The fix is in PR, and should land in dev soon. It won’t be released in the package right away as there are a couple of other PRs in progress but you can cherry pick the change to give it a try. https://github.com/Unity-Technologies/usd-unity-sdk/pull/156

0reactions
msearl001commented, Feb 13, 2020

Awesome. Thanks. Really appreciate your fast support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loft Payload Info
In USD a payload is essentially a reference you can choose not to load. Often when working with a very complex scene, you...
Read more >
Creating USD Assets with Component Builder | Chris Rydalch
This workshop covers building USD assets in Solaris, using the Component Builder tool-set added in Houdini 19. We'll discuss what USD assets ...
Read more >
USD Composer 2023.1.0 Beta Now Available!
Variant Presenter and Editor. A set of tools designed specifically to allow you both generate complex USD variants, but also easily review.
Read more >
Pixar's Universal Scene Description for Unity out in Preview
Payloads can be loaded and unloaded using the USD menu, by using the UsdPayload component, or by changing the default policy on the...
Read more >
USD UE 5.2 Format Support | Epic Developer Community
Becomes Hierarchical Instanced Static Mesh Components (HISM) on import ... Opening the stage with all payloads on/off (initial load set).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found