google / usd_from_gltf

Apache License 2.0
547 stars 86 forks source link

UFG_ERROR_ASSERT when converting glTF asset #48

Open dokterdok opened 4 years ago

dokterdok commented 4 years ago

When running usd_from_gltf on my glTF file, I get the following errors and warnings:

% usd_from_gltf Goat_PBR.gltf Goat_PBR.usdz
ERROR: /Users/ddewit/usd_from_gltf/convert/texturator.cc(900) : ASSERT(!dst_path.empty()) [UFG_ERROR_ASSERT]
Warning: Cannot delete file: T_Goat_SpecularSmoothness_metal.jpg [UFG_WARN_IO_DELETE]
Warning: Cannot delete file: T_Goat_BaseColor_base.jpg [UFG_WARN_IO_DELETE]
Warning: Cannot delete file: T_Goat_SpecularSmoothness_rough.jpg [UFG_WARN_IO_DELETE]
Warning: Cannot delete file: T_Goat_Normal_norm.jpg [UFG_WARN_IO_DELETE]
Warning: Cannot delete file: T_Goat_Occlusion_occl.jpg [UFG_WARN_IO_DELETE]

and my glTF asset folder looks like this:

Goat_PBR.gltf
Goat_PBR.bin
T_Goat_BaseColor.png
T_Goat_Occlusion.jpg
T_Goat_SpecularSmoothness.png
T_Goat_Normal.jpg

The file is viewable on this online glTF viewer , as well as in Apple's Reality Converter. I suppose the warnings come from files generated by the tool as I don't have those in my original asset.

Any ideas how to solve this?