QuestionQ40

VerifiedCustomizing USD

Another department at your company has supplied layer1.usda, which contains a Sphere Gprim with animated timeValues that translate the sphere along the Y-axis:

#usda 1.0  
(  
    endTimeCode = 60  
    startTimeCode = 1  
)  
def Xform "Asset"  
\{  
    def Sphere "Sphere"  
    \{  
        double3 xformOp:translate.timeSamples = \{  
            1: (0, 5.0, 0)  
            30: (0, -5.0, 0)  
            60: (0, 5.0, 0)  
        \}  
        uniform token[] xformOpOrder = ["xformOp:translate"]  
    \}  
\}  

You have been given rootLayer.usda, which references Sphere from layer1.usda as follows:

#usda 1.0  
(  
    endTimeCode = 60  
    startTimeCode = 1  
)  
def Xform "World"  
\{  
    def Sphere "Sphere" (  
        prepend references = @./layer1.usda@</Asset/Sphere>  
    )  
    \{  
    \}  
\}  

For testing, you want to see what Sphere would look like at (0, -5.0, 0) at timeCode = 45.

Which of the following changes to rootLayer.usda would place Sphere at -5.0 on the Y-axis at timeCode 45? It is acceptable if Sphere's position at other timeCodes changes.

Choose two
Explanation

With default linear interpolation, Sphere's local Y translation at timeCode 45 is 0, halfway between -5 at timeCode 30 and 5 at timeCode 60. A parent World translation of -5 therefore places it at world-space Y = -5. Alternatively, a reference offset of 15 moves the source's timeCode 30 sample to stage timeCode 45, where its Y value is -5. (openusd.org)

Learn more

Community Discussion

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