KhronosGroup / glTF-Sample-Assets

To store all models and other assets related to glTF
257 stars 30 forks source link

Lack of binary glTF examples with external data #76

Open alteous opened 6 years ago

alteous commented 6 years ago

There are no binary glTF examples with external data. It would be helpful to have at least one example covering this case.

pjcozzi commented 6 years ago

Thanks for submitting this @alteous!

+1

DRx3D commented 8 months ago

Is this still a desire? @donmccurdy @pjcozzi . If so it will be moved/regenerated in new glTF-Sample-Assets repo. Default operation is to close this within a month.

donmccurdy commented 8 months ago

I think our convention of having .glb be self-contained and .gltf use external resources is a good one, and I don't feel that .glb samples with external resources are needed. So in my opinion we can close this. If others are in favor of having these examples, though, it's also fine with me.

javagl commented 8 months ago

GLBs will (and should) usually not have external resources,

But I think that having at least one example with this structure could be reasonable - in a similar spirit as the "Unicode❤♻Test", namely: To make people aware that this has to be handled. (My gut feeling is that many libraries/loaders would not be able to load such a model right now).

In order to show a it in a context where it does make sense: One could consider to have two simple geometries (like a cube and a sphere), and let them both refer to a (shared) texture.png file.

(This raises some questions. There would (and could) not be a glTF variant of that. There might be a glTF-Embedded variant, where the geometry data is embedded but the texture is still external, which could also be an interesting test. But if there's interest, I can create such a model and a PR for further discussion)