You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providing strict URI parser may be difficult. For a while, let App/User write their own URI encoder/decoder. tinygltf now has URI callbacks thanks to: #397
Describe the issue
glTF uses URI for its asset path.
KhronosGroup/glTF#1744
https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#uris
Currently TinyGLTF implements simple URI decoding only:
tinygltf/tiny_gltf.h
Line 2203 in 9117abb
Proper and strict URI decoding/encoding are recommended.
urlparser
https://uriparser.github.io/ Could be a good candidate to handle URI path.Also, it would need to provide a way to handle absolute URI(e.g. URI containing
http
prefix) through FS callback.To Reproduce
Any
Any
N/A
Expected behaviour
TinyGLTF decodes/encodes URIs correctly.
We may need glTF files containing various URIs to test.
The text was updated successfully, but these errors were encountered: