Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarifying Image URI Support #1744

Closed
tfmertz opened this issue Jan 21, 2020 · 2 comments
Closed

Clarifying Image URI Support #1744

tfmertz opened this issue Jan 21, 2020 · 2 comments

Comments

@tfmertz
Copy link

tfmertz commented Jan 21, 2020

I'm helping build a GLTF Model Importer and wanted some clarification on Image URI formats, specifically:

a URI to an external file in one of the supported images formats, or

Does this mean GLTF supports loading Remote Images? For example,

http://example.com/uploads/texture.png

is a valid image uri?

If so, is there a sample model using this, thanks!

@donmccurdy
Copy link
Contributor

Remote images (i.e. absolute URIs) are allowed. However, note that clients are not required to support them — I would not expect model upload sites like Sketchfab or Facebook to support absolute URIs, for security reasons.

See: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#uris

Here is a sample:

BoxTextured.gltf.zip

@tfmertz
Copy link
Author

tfmertz commented Jan 21, 2020

Thanks for the clarification, example, and link. Very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants