Open mechaadi opened 1 year ago
Hmmm. What's the name of your uv map? Seems to be failing on that. Also, how was the usdz authored? I know the apple ones had a bit of a weird way of setting up the uv primvar.
Hello, the usdz is generated using apple reality composer. I am attaching the USDZ file so you can inspect it better if needed. I tried to extract the USDZ file and got these files (img below)
USDZ file: https://gofile.io/d/3Ps8C3
I ran into this problem, too, until I added the specific st varname attribute. You can see it being added in Pixar's example code for creating materials: https://openusd.org/release/tut_simple_shading.html
But since models seem to work without it being specified, some examples (like the one NVidia's Omniverse documentation) omit it.
I also get this error with some USDZ, so I modified usd_material.py
as follows:
logger.debug(
" - UsdPrimvarSampler: " + uv_map_name + " : " + str(uv_idx)
)
↓
uv_idx = len(converter.material_uv_indices[mat_path])
if uv_map_name is not None:
logger.debug(
" - UsdPrimvarSampler: " + uv_map_name + " : " + str(uv_idx)
)
else:
logger.debug(
" - UsdPrimvarSampler: None"
)
Works for me in only when we convert it to glb But it works thanks for that
Hi, thanks for this great library 👍🏻 I am trying to convert a USDZ file to gltf format but getting the following error:
Debug logs below:
Any help is much appreciated! 😄