A web-based 3D model viewer for displaying glTF/glB files using Google's model-viewer library.
- 🔄 Interactive 3D Display: Rotate, zoom, and pan your 3D models
- 🎯 Auto-Rotation: Models automatically rotate on load
- 📱 Responsive Design: Works on desktop, tablet, and mobile devices
- 🎨 Modern UI: Clean and professional interface with gradient styling
- 🛠️ Easy Controls: Intuitive mouse and touch controls
- Open
index.htmlin your web browser - The PG7 Cable Gland model will load and display automatically
- Use the controls to interact with the model:
- Click and Drag: Rotate the model
- Scroll: Zoom in/out
- Right-Click + Drag: Pan the view
- Buttons: Toggle auto-rotation, reset camera, and toggle shadows
To deploy this project on GitHub Pages:
- Go to your repository settings
- Navigate to Pages section
- Under Source, select:
- Branch:
main(or your main branch) - Folder:
/ (root)
- Branch:
- Click Save
- Your site will be available at:
https://<your-username>.github.io/<repo-name>
browser_3d_viewer/
├── index.html # Main HTML file
├── PG7 Cable Gland.gltf # 3D model file
├── buffer.bin # Binary data for the model
└── README.md # This file
- HTML5: Semantic markup
- CSS3: Modern styling with gradients and animations
- JavaScript: Vanilla JS for interactions
- Google Model-Viewer: https://modelviewer.dev/
- Chrome/Chromium (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Model: PG7 Cable Gland
- Format: glTF 2.0
- Total Vertices: 13,504
- Total Triangles: 16,488
Include your license information here.
For issues or questions, please open an issue in the repository.