Babylon.js: Bug: export gltf image paths with spaces

Created on 9 Aug 2019  路  5Comments  路  Source: BabylonJS/Babylon.js

When exporting a gltf (not gltb) that have materials using images with spaces in their name (MOSS TEXTURE.JPG), the exporter uses the wrong path in the images section. The textures section of the gltf works fine.

Images section: notice the %20 in the name
image

Textures section: correct texture paths
image

Other gltf importers are failing because of this issue (for example the gltf importer for blender 2.8).

bug exporters glTF

Most helpful comment

I just pushed a fix on blender glTF importer to decode URI escaped chars

All 5 comments

@bghgary can you (or maybe @Drigax ) have a look at this bug? Thanks a lot!

A URI is not a name. Spaces can be encoded per URI spec. This section describes the requirement for glTF:
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#uris

I just pushed a fix on blender glTF importer to decode URI escaped chars

For more context, here is the link to the issue discussing this on the glTF spec: https://github.com/KhronosGroup/glTF/issues/1449

@julienduroure Thanks so much for fixing this on blender!

Was this page helpful?
0 / 5 - 0 ratings