我希望有人能解释为什么usdz_converter没有提取指定的材料。运行以下命令时
xcrun usdz_converter ~/Desktop/demo/demo.obj ~/Desktop/demo/demo.usdz -v -a -l -m /Materials/Material_001 -color_map blk.jpg
在我的demo.obj和blk.jpg文件所在目录的根目录中,生成了USDZ文件,但没有应用指定的材料。
usdz_converter
Version: 1.008
-v: Verbose output
-a: Generate .usda intermediate file
-l: Leave generated .usda file
-m:
/Materials/Material_001
-color_map: blk.jpg
Primitives:
Transform: /xrdslogo
Transform: /xrdslogo/Geom
GeomMesh: /xrdslogo/Geom/Cube_005
bound material: /xrdslogo/Materials/Material_002
GeomMesh: /xrdslogo/Geom/Cube_004
bound material: /xrdslogo/Materials/Material_001
GeomMesh: /xrdslogo/Geom/Cube_003
bound material: /xrdslogo/Materials/Material_004
GeomMesh: /xrdslogo/Geom/Cube_002
bound material: /xrdslogo/Materials/Material_003
GeomMesh: /xrdslogo/Geom/Cube_Cube_001
bound material: /xrdslogo/Materials/Material_006
GeomScope: /xrdslogo/Materials
ShadeMaterial: /xrdslogo/Materials/Material_002
ShadeMaterial: /xrdslogo/Materials/Material_001
ShadeMaterial: /xrdslogo/Materials/Material_004
ShadeMaterial: /xrdslogo/Materials/Material_003
ShadeMaterial: /xrdslogo/Materials/Material_006
以下是终端中打印的内容
usdz_converter
Version: 1.008
-v: Verbose output
-a: Generate .usda intermediate file
-l: Leave generated .usda file
-m:
/Materials/Material_001
-color_map: blk.jpg
Primitives:
Transform: /xrdslogo
Transform: /xrdslogo/Geom
GeomMesh: /xrdslogo/Geom/Cube_005
bound material: /xrdslogo/Materials/Material_002
GeomMesh: /xrdslogo/Geom/Cube_004
bound material: /xrdslogo/Materials/Material_001
GeomMesh: /xrdslogo/Geom/Cube_003
bound material: /xrdslogo/Materials/Material_004
GeomMesh: /xrdslogo/Geom/Cube_002
bound material: /xrdslogo/Materials/Material_003
GeomMesh: /xrdslogo/Geom/Cube_Cube_001
bound material: /xrdslogo/Materials/Material_006
GeomScope: /xrdslogo/Materials
ShadeMaterial: /xrdslogo/Materials/Material_002
ShadeMaterial: /xrdslogo/Materials/Material_001
ShadeMaterial: /xrdslogo/Materials/Material_004
ShadeMaterial: /xrdslogo/Materials/Material_003
ShadeMaterial: /xrdslogo/Materials/Material_006
您应该在材料名称的开头添加对象名称:-m/xrdslogo//Materials/material_001