Issue with Production builds only: THREE.GLTFLoader: Couldn't load texture blob

Making a mini repro for this but got an issue that popped up in a project, I get lots of :
THREE.GLTFLoader: Couldn't load texture blob

Project works fine from normal play mode in local server, just this issue happens with exported Production Dist

Original Post on Discord

by user 103054507105067008

Send me the glb please :slightly_smiling_face: most likely an unsupported texture format or a broken texture

Take an extra look at the console outputs, there may be something like “can’t compress 3x85348 pixels texture” or so, or something else related to compression not succeeding for specific textures

DM’ed, the only change really was that I added an mp4 file but I’ll check the console output

by user 103054507105067008

Haha, did you add it directly as texture on a material?

Nope, set as video clip on video player, the model of the boat exports with its textures and animation both missing in production build

by user 103054507105067008

I only see warning WARN: failed to re-assign extension: EXT_texture_exr 33 33 35 But I think it always did that, I never changed the EXR since tons of old builds

by user 103054507105067008

OK follow-up: can you send me the source file too?

Working on it - the Needle Engine > Bug Report > Zip Scene seems to not have exported Assets for this scene when using Exporter 2.59.1-pre so I’m patching it back together

by user 103054507105067008

I might have to report that separately tomorrow if it is specific to this project

by user 103054507105067008

DM’ed you the repro link

by user 103054507105067008

Builds okay without the model included that is under SceneRoot_Phase1 > Content>Phase5>BoatOffset but I kind of need the model that is there :sweat_smile:

by user 103054507105067008

It’s unrelated to the VideoPlayer I added, simply that boat model is causing the issues in export.

It is unrelated to the animation I had hooked up to it also - the model on its own has the same texture blob issues

by user 103054507105067008

Temporary workaround is to enable Platform Override Settings on the textures that make trouble there. Seems to be a compression bug, logged internally

Thanks for investigating, at least there is a workaround :pray:

by user 103054507105067008

Keen to get some of these projects into the showcase but I need them to go public first before I share on the Discord group

by user 103054507105067008

Writing a script to load an EXR in three.js too as the Needle exported skybox exr in that project is like 16mb when the source exr file is like 4mb

by user 103054507105067008

Taking a look at it now

In the full project I did that on every texture in Assets and there was still a texture blob error, animation won’t play back either but that might be because the texture blob error could be preventing Three.js from loading animations after

by user 103054507105067008

@marcel :cactus: I dm’ed you the same repo I gave Herbst

by user 103054507105067008