3D-PDF-Consortium / PDF-with-glTF

Repository for the ISO TC 171 SC 2 WG 7 glTF discussion group
Other
1 stars 0 forks source link

Absolute / relative / internal assets in glTF #7

Open bdoubrov opened 3 years ago

bdoubrov commented 3 years ago

glTF is based on JSON which then references multiple binary data (=assets) that contain model data, material info, textures, etc. This binary data may be placed into JSON file using base64 encoding or they may reference external files using a URI. In the examples this URI is typically given relative to the location of the jlTF document.

Questions:

bdoubrov commented 3 years ago

According to glTF URIs documentation, the only URIs permitted by glTF are:

An additional implementation note says that:

Clients can optionally support additional URI components. For example http:// or file:// schemes, authorities/hostnames, absolute paths, and query or fragment parameters. Assets containing these additional URI components may be less portable.

I would suggest to forbit these additional URI components when embedding glTF JSON into PDF

philspreier commented 3 years ago

Discussed in meeting today. Agreed to Boris proposal that we allow data and relative URI's, but not additional URI components.

Relative URI would be added as assets in the RIchMedia annotation.