Skip to content

[glTF] support image URIs that use JSON escaping #602

Description

@footballhead

If image.uri represents a path, it may encode certain characters with JSON escaping. From glTF2.0 spec, section 2.8:

Paths with non-ASCII characters MAY be written as-is, with JSON string escaping, or with percent-encoding; all these options are valid

I'm not aware of any glTF-Sample-Assets that use this.

cgltf provides the cgltf_decode_string function which may help here to remove the JSON escaping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions