dolfinus / 3DAlloy

LightWeight 3D-viewer for MediaWiki
MIT License
3 stars 4 forks source link

Add support for glTF files #11

Open kristbaum opened 5 months ago

kristbaum commented 5 months ago

Would it be possible to add support for rendering glTF files? There is support in three.js AFAIK: https://threejs.org/docs/?q=gltf#examples/en/loaders/GLTFLoader Just enabling the use-case with included textures in the same file would be great.

markmuzenhardt commented 5 months ago

This would be a really welcome feature in fuerthwiki.de!

dolfinus commented 5 months ago

Hi. If someone opens a pull request, I'll merge it.

kristbaum commented 5 months ago

Would this require adding the glTF loader as described here to the modules folder? And linking it from 3DAlloy.js when the file extension matches?

dolfinus commented 5 months ago

Probably yes