question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

test2.gltf.txt

`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:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kcoleycommented, Dec 23, 2018
1reaction
kcoleycommented, Dec 23, 2018

@wave-electron yeah I’ll work on getting this in

Read more comments on GitHub >

github_iconTop Results From Across the Web

3D model (.gltf format) from a local file is not being read ...
Your scene is most likely throwing some errors related to not being able to load that file securely, timing out in the process....
Read more >
Loading model via GLTFLoader with 0.133 throws CSP Error ...
I'm getting the following issue after upgrading ThreeJS from 0.103 to 0.118 in Chrome and Edge: Refused to connect to 'blob:' because it ......
Read more >
T187844 Support the glTF 2.0 3D file format
Peeking at the spec, the problem is going to be with external files for textures and binary data -- JSON glTF files can...
Read more >
Textures by reference in GLTF converted models
Sadly, this is not possible anymore: if the texture file is not dropped along with the DAE file, the online converter throws a...
Read more >
pygltflib - PyPI
Convert texture images from a GLTF file to their own PNG files using custom file names? Specify a path to my images when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found