usdcrush - Utility for reducing the size of a source USD.
usdcrush [inputFile] -o [output]
usdcrush is a utility that uses various compression
techniques to reduce the file size of an input USD.
- -h, --help
- Prints out a help message and exits.
- -o, --out
- The output file to write to. This is required.
- -c, --compatibility [widest | latest]
- Controls how compatible the output file is with different platforms and
OpenUSD versions. Widest will provide reduced compression options, but
will work in more scenarios. Latest will use more compression techniques,
but may only work with certain platforms and OpenUSD versions. Latest is
the default option.
- --textures [0 | 1]
- Controls whether textures are processed for optimization. Defaults to ON,
but is dependent on compatibility mode.
- --meshes [0 | 1]
- Controls whether meshes are processed for optimization. Defaults to ON,
but is dependent on compatibility mode.
- -t, --textureQuality [0-100]
- A value that acts as a hint to texture compressors.
- --version
- Display program version information and exits.
- Widest
- This compatibility mode will use JPEG compression on textures it has
assessed it can reduce. Mesh compression will be turned off, but may be
enabled in the future.
Latest This compatibility mode will use AVIF compression on
textures it has assessed it can reduce. Mesh compression will use
AOMedia PMC for reducing mesh sizes.
- usdcrush input.usdz -o output.usdz
- Analyzes input.usdz, and exports a compressed version as output.usdz.