A modern, interactive 3D model viewer built with Google's model-viewer web component. View, interact with, and download 3D models in GLB/GLTF format with support for Augmented Reality.
- Model Viewer Official Site - Main documentation and examples
- Open the project folder in VSCode
- Install the Live Server extension by Ritwick Dey
- Open Extensions (Cmd+Shift+X on Mac)
- Search for "Live Server"
- Click Install
- Click "Go Live" in the bottom right of the window, or right-click on
index.htmland select "Open with Live Server" - Your browser will automatically open and reload on file changes
For better compatibility and to test local GLB files:
# Using Python 3
python -m http.server 8000
# Using Node.js (with http-server)
npx http-server
# Using Node.js (with serve)
npx serveThen navigate to http://localhost:8000 in your browser.
Simply open index.html directly in your web browser. The demo loads the model from your assets folder.
Edit index.html and change the src attribute in the <model-viewer> tag:
<model-viewer src="path/to/your/model.glb" ...> </model-viewer>Replace the src with any publicly accessible GLB URL:
<model-viewer src="https://example.com/path/to/model.glb" ...> </model-viewer>- GLB - Binary glTF format (recommended, single file)
- GLTF - JSON-based format with separate texture files
Both formats are fully supported by Model Viewer.
- Google Model Viewer Docs
- Model Viewer GitHub
- glTF Format Spec
- Free 3D Models - Find GLB models to use
This demo uses Google's Model Viewer library, which is licensed under the Apache License 2.0.