Error thrown when using GLTF Embedded file types
See original GitHub issue@kcoley I noticed today the tool seems to support GLTF “embedded” files as well? I had been using the separate type up until now.
I did a few test files. Very simple just a cylinder geometry with a solid color, or png texture. I was getting errors thrown. see below
`python gltf2usd.py -g ./GLTF/test2.gltf -o test2.usdz -s 1 Traceback (most recent call last): File “gltf2usd.py”, line 806, in <module> convert_to_usd(os.path.expanduser(args.gltf_file), os.path.abspath(os.path.expanduser(args.usd_file)), args.fps, args.scale, args.arkit, args.verbose, args.use_euler_rotation, args.optimize_textures) File “gltf2usd.py”, line 754, in convert_to_usd usd = GLTF2USD(gltf_file=gltf_file, usd_file=usd_file, fps=fps, scale=scale, verbose=verbose, use_euler_rotation=use_euler_rotation, optimize_textures=optimize_textures) File “gltf2usd.py”, line 55, in init self.gltf_loader = GLTF2Loader(gltf_file, optimize_textures) File “/Users/USDPython/USD/_gltf2usd/gltf2loader.py”, line 118, in init self._initialize() File “/Users/USDPython/USD/_gltf2usd/gltf2loader.py”, line 123, in _initialize self._initialize_images() File “/Users/USDPython/USD/_gltf2usd/gltf2loader.py”, line 136, in _initialize_images self._images.append(GLTFImage.GLTFImage(image_entry, i, self, self._optimize_textures)) File “/Users/USDPython/USD/_gltf2usd/gltf2/GLTFImage.py”, line 21, in init if image_entry[‘uri’].startswith(‘data:image’): KeyError: ‘uri’
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
@wave-electron I just merged a fix for this: https://github.com/kcoley/gltf2usd/pull/124
test.usdz.txt
@wave-electron yeah I’ll work on getting this in