supported-file-types#
Code |
AA.002 |
|---|---|
Validator |
|
Compatibility |
openusd |
Tags |
🔑 |
Summary#
Asset must use only supported file types
Description#
For maximum portability, assets should only use file types that are widely supported across platforms. This includes specific formats for USD files, images, and audio.
Why is it required?#
Ensures assets can be loaded on different platforms
Prevents compatibility issues with unsupported formats
Enables direct consumption without conversion
Examples#
# Valid: Using supported file types
def Material "MyMaterial"
{
token outputs:surface.connect = </MyMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor.connect = </MyMaterial/diffuseTexture.outputs:rgb>
float inputs:roughness.connect = </MyMaterial/roughnessTexture.outputs:float>
token outputs:surface
}
def Shader "diffuseTexture"
{
uniform token info:id = "UsdUVTexture"
asset inputs:file = @./textures/diffuse.png@ # Supported format
float2 inputs:st.connect = </MyMaterial/stReader.outputs:result>
token outputs:rgb
}
def Shader "roughnessTexture"
{
uniform token info:id = "UsdUVTexture"
asset inputs:file = @./textures/roughness.tga@ # Unsupported format
token outputs:float
}
}
How to comply#
Use only the following file types:
USD files: usda, usdc, usd, usdz
Image files: png, jpeg/jpg, exr
Audio files: M4A, MP3, WAV