What is the difference between the Usd and Sdf APIs?
- Exam domain
- Data Modeling13% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Modeling (13% of the exam)
Objective in the exam guide: Understand Usd and Sdf data structures and data types
Usd and Sdf data structures are named.
Why D is the answer
Usd works on the composed stage; Sdf works on raw layer data such as prim specs
Usd presents the composed scene: prims and resolved values. Sdf works on layers and specs: the authored opinions before composition.
Remember: Usd composed, Sdf authored.
How it works
Usd is the composed API; Sdf is the layer and spec API.
In detail
- Usd: composed view.
- Sdf: authored specs.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Usd is for rendering; Sdf is for physicsWrong
Neither is domain-specific like that.
B. There is no differenceWrong
They work at different levels.
C. Sdf is the Python binding and Usd is the C++ library, so they hold the same data in two languagesWrongMost tempting
Both are available in C++ and Python.
Why it tempts: The names suggest a language split.
D. Usd works on the composed stage; Sdf works on raw layer data such as prim specsRight
Usd composed, Sdf authored.
Use case
An illustrative scenario, not a real incident.
Illustrative: a validator uses Sdf to scan raw specs; a tool uses Usd to read the final value.
See it in different ways
mindmap
root(("OpenUSD APIs"))
n1["Usd"]
n2["UsdStage"]
n3["UsdPrim"]
n4["UsdAttribute"]
n5["Composed values"]
n6["Sdf"]
n7["SdfLayer"]
n8["SdfPrimSpec"]
n9["SdfPath"]
n10["Raw opinions"]How to read this chart
- The centre is "OpenUSD APIs".
- "Usd" covers "UsdStage", "UsdPrim", "UsdAttribute", "Composed values".
- "Sdf" covers "SdfLayer", "SdfPrimSpec", "SdfPath", "Raw opinions".
sequenceDiagram participant P0 as Tool participant P1 as UsdStage participant P2 as SdfLayer P0->>P1: resolved value P1->>P2: reads specs P0->>P2: raw opinions
How to read this chart
- 1. Tool sends "resolved value" to UsdStage.
- 2. UsdStage sends "reads specs" to SdfLayer.
- 3. Tool sends "raw opinions" to SdfLayer.