bigwheels icon indicating copy to clipboard operation
bigwheels copied to clipboard

[glTF] Load embedded textures with data URI scheme

Open footballhead opened this issue 10 months ago • 1 comments

Using scene::GltfLoader, some models in glTF-Sample-Assets fail to load because the texture is embedded with the data URI scheme.

From the spec 5.18.1:

Instead of referencing an external file, [image.uri] MAY contain a data:-URI

This would allow us to load more models like:

footballhead avatar Apr 12 '24 19:04 footballhead

cgltf supports a variety of URI, string, and buffer functions for this purpose

footballhead avatar May 31 '24 19:05 footballhead