QuestionQ67

VerifiedCustomizing USD

You have these layers:

cone1.usda:

#usda 1.0  
(  
upAxis = "Y"  
defaultPrim = "Cone"  
)  
def Cone "Cone"  
\{  
uniform token axis = "Z"  
double radius = 2  
double height = 3  
\}  

cone2.usda:

#usda 1.0  
(  
upAxis = "Z"  
defaultPrim = "Cone"  
)  
def Cone "Cone"  
\{  
uniform token axis = "Z"  
double radius = 2  
double height = 3  
\}  

The following root layer references the two layers and is opened by a DCC tool that does not apply any kind of corrective transformation to any layer data:

coneScene.usda:

#usda 1.0  
(  
upAxis = "Z"  
)  
def Cone "Cone1" (  
prepend references = @./cone1.usda@</Cone>  
)  
\{  
double3 xformOp:translate = (-5, 0, 0)  
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]  
\}  
def Cone "Cone2" (  
prepend references = @./cone2.usda@</Cone>  
)  
\{  
double3 xformOp:translate = (5, 0, 0)  
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]  
\}  

When the scene is viewed in the DCC tool with a view/camera orientation matching the scene's upAxis, what should the orientations of the two cones be?

Explanation

Both cones point along the positive Z-axis because each cone's axis attribute is set to Z. The root stage's upAxis applies to the composed scene; the referenced layer's differing upAxis does not automatically rotate its geometry. With no corrective transformations, the authored translations change the cones' positions but not their orientations. (openusd.org)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!