NCP-OUSD practice question 10 of 10

What will be the composed value of /World/Tree/Canopy.primvars:displayColor when you open stage.usda? #usda 1.0 ( defaultPrim = "World" metersPerUnit…

Full set: 71 questions
What will be the composed value of /World/Tree/Canopy.primvars:displayColor when you open stage.usda? #usda 1.0 ( defaultPrim = "World" metersPerUnit = 1.0 upAxis = "Z" ) def Xform "World" { def Xform "Tree" ( variantSets = ["foliage_color"] variants = { string foliage_color = "default" } ) { def Cone "Canopy" ( references = [] ) { double3 xformOp:translate = (0, 0, 1.3) token[] xformOpOrder = ["xformOp:translate"] } def Cylinder "Trunk" { color3f[] primvars:displayColor = [(0.2, 0.1, 0.05)] double3 xformOp:scale = (0.4, 0.4, 0.4) token[] xformOpOrder = ["xformOp:scale"] } variantSet "foliage_color" = { "default" { } "evergreen" { over "Canopy" { color3f[] primvars:displayColor = [(0.05, 0.15, 0.05)] } } "orange" { over "Canopy" { color3f[] primvars:displayColor = [(0.5, 0.3, 0.05)] } } } } } class "_base_foliage_color" { color3f[] primvars:displayColor = [(0.2, 0.75, 0.1)] }
Answer options
A: [(0.5, 0.3, 0.05)]
B: [(0.2, 0.75, 0.1)] Correct answer
C: unset
D: [(0.05, 0.15, 0.05)]
Correct Answer:
B. [(0.2, 0.75, 0.1)]
Explanation

The Tree prim selects the default variant from the foliagecolor variant set. The definition for the default variant is empty ("default" {}), so it contributes no opinions about displayColor. The Canopy prim also has a references arc to the class basefoliagecolor. According to USD's LIVRPS composition strength ordering, opinions from references are stronger than defaults but weaker than variants. Since the active variant is empty and there are no stronger local opinions, the value from the referenced class, [(0.2, 0.75, 0.1)], is composed as the final value.

Why Incorrect

A: This value [(0.5, 0.3, 0.05)] is from the orange variant, which is not selected in the Tree prim's variants field. C: The value is not unset because the references arc successfully provides a value that is composed onto the prim. D: This value [(0.05, 0.15, 0.05)] is from the evergreen variant, which is not selected.

References

1. Pixar USD Documentation, "Composition". The documentation details the LIVRPS (Local, Inherits, Variants, References, Payloads, Specializes) strength ordering, which governs how values are resolved. (https://graphics.pixar.com/usd/release/glossary.html#usdglossary-livrps)

2. Pixar USD Documentation, "Referencing and Layering". This section explains how references bring opinions from other files or prims into a composition. (https://graphics.pixar.com/usd/release/tutreferencinglayering.html)

3. NVIDIA Omniverse Documentation, "Deep Dive: Understanding Composition in USD". This guide explains how variants and references interact during composition.

Scroll to Top