Download

USD Import

Hi all,

Has anyone had success with USD Import and LODs? There doesn’t seem to be much documentation around it but it sounds like there just needs to be a variantSet named “LOD” with “LOD1”, “LOD2”, etc. variants under it. When I do this though I only ever get the defaultPrim / LOD0 to import, but when I view it in the USD Stage it all works as intended.

Here is what my primary USD file looks like with the variants, I am using references to point to the geometry file.



#usda 1.0
(
    defaultPrim = "lod_test"
)

def Mesh "lod_test" (
    variants = {
        string LOD = "LOD0"
    }
    add variantSets = "LOD"
)
{
    variantSet "LOD" = {
       "LOD0" {
            over "lod_test" (
                prepend references = @./lod_test.geom.usd@</geom/lod0/lod0_mesh>
            )
            {
            }

        "LOD1" {
            over "lod_test" (
                prepend references = @./lod_test.geom.usd@</geom/lod1/lod1_mesh>
            )
            {
            }
    }
}


Does anyone have an example with this working or could point out what I might have setup incorrectly?

Thanks!