donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.15k stars 539 forks source link

How to use a fixed model file for gltf-viewer #370

Closed joylix closed 5 months ago

joylix commented 5 months ago

I want to use a fixed model file for gltf-viewer (to say my model file is "model/model_1.zip"), and automatically skip the file selection step, how should I do it?

donmccurdy commented 5 months ago

Hi! See the #model parameter mentioned here: