lighttransport/tinyusdz

Parse Animal Logic ALab – USD Production Scene

syoyo opened this issue · 0 comments

syoyo commented

https://dpel.aswf.io/alab/

Summary

  • support custom upAxis token
    • TinyUSDZ only allow "X", "Y" or "Z" (case sensitive)
    • Use default value when tokens is not in allowedToken list
    • pxrUSD has an ability to set custom upAxis and default upAxis through pluginInfo
  • nested VariantSet #94
  • BasisCurves parse warning
    • uniform token "basis" = ""
  • NurbsCurves
  • Support __AnyType__ token #95

Parse failures

Some notable parse failures...

/mnt/data/data/usd/ALab/entity/structure_brick04/structure_brick04.usda
ERR : Failed to parse USDA
[error]/home/syoyo/work/tinyusdz/src/usda-reader.cc:Read():1978 Parse failed:
err_stack[1] USDA source near line 8, col 17: [error]/home/syoyo/work/tinyusdz/src/ascii-parser.cc:Parse():4722 Failed to parse Stage metas.
err_stack[0] USDA source near line 8, col 17: [error]/home/syoyo/work/tinyusdz/src/ascii-parser.cc:ParseStageMetaOpt():1708 Invalid `upAxis` value. Must be "X", "Y" or "Z", but got "y"(Note: Case sensitive)
/mnt/data/data/usd/ALab/fragment/geo/modelling/structure_wall_right01/geo_modelling_structure_wall_right01.usda
ERR : Failed to parse USDA
[error]/home/syoyo/work/tinyusdz/src/usda-reader.cc:Read():1978 Parse failed:
err_stack[2] USDA source near line 92, col 23: [error]/home/syoyo/work/tinyusdz/src/ascii-parser.cc:Parse():4780 Failed to parse `def` block.
err_stack[1] USDA source near line 92, col 23: [error]/home/syoyo/work/tinyusdz/src/ascii-parser.cc:ParseBlock():4578 Failed to parse `variantSet` statement.
err_stack[0] USDA source near line 92, col 23: [error]/home/syoyo/work/tinyusdz/src/ascii-parser.cc:ParseVariantSet():4304 Nested `variantSet` is not supported yet.