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.

Unable to load certain gltf (.glb) models

See original GitHub issue

Unable to load these models, getting runtime error as described below. https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Lantern/glTF-Binary https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BarramundiFish/glTF-Binary

pixi3d version: 1.1.1

Please note: I was able to load these models in v0.9.8. Any help is appreciated.

pixi3d.js:10145 Uncaught TypeError: Cannot read properties of undefined (reading 'baseTexture')
    at glTFParser../src/gltf/gltf-parser.ts.glTFParser.parseTexture (pixi3d.js:10145)
    at new glTFParser (pixi3d.js:9965)
    at Function../src/gltf/gltf-parser.ts.glTFParser.createModel (pixi3d.js:9974)
    at Function../src/model.ts.Model.from (pixi3d.js:13325)
    at PixiGLTFManager.getModel (pixi-gltf-manager.ts:67)
    at showGTLFModel (index.ts:68)
    at index.ts:261
    at SafeSubscriber._next (pixi-gltf-manager.ts:41)
    at SafeSubscriber.__tryOrUnsub (Subscriber.js:192)
    at SafeSubscriber.next (Subscriber.js:130)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jnsmalmcommented, Jan 7, 2022

Thanks for the help, fix is included in release 1.1.2.

1reaction
jnsmalmcommented, Jan 7, 2022

Thanks! I noticed the issue you are experiencing only first time in Safari (not after that), Chrome works fine for me). I think I know what the issue could be, I’ll look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load .glb and .gltf models #182 - expo/expo-three
Once the loader completes the model shows for a brief moment and then disappears. I've validated the model using the vs code gltf...
Read more >
Getting error while loading glb file - Babylon.js Forum
To load from a specific filetype (eg. gltf) see: Loading Any File Type ... BJS - [19:59:31]: Unable to find a plugin to...
Read more >
Unable to load GLTF object - Stack Overflow
First you can download the free 3d model gltf file from sketchfab and then convert it into glb format using this website.
Read more >
Unable to Download GLB file with GLTFLoader - three.js forum
I have a problem with Downloading GLB file with GLTFLoader in React. It shows this error SyntaxError: Unexpected token < in JSON at...
Read more >
Glb file not loading correctly - Bugs - Sketchfab Forum
It sounds like some instability on loading the .gbl file. Today I tried to load it again and now I didn't get those...
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