A minimal, robust in-browser 3D viewer powered by Babylon.js and TypeScript.
- Drag-and-drop 3D model loading (glTF/GLB, OBJ)
- PBR rendering with texture support
- Interactive camera controls (orbit, zoom, pan)
- Environment lighting adjustment
- Keyboard shortcuts (R: reset camera, H: toggle UI, F: frame model)
- Touch support for mobile devices
- Install dependencies:
npm install- Start development server:
npm run dev-
Open http://localhost:5173 in your browser
-
Drag and drop a 3D model file (.glb, .gltf, or .obj) onto the canvas
npm run build- glTF/GLB: Full PBR material support with embedded or external textures
- OBJ: Basic geometry support with optional MTL materials
- FBX: Full support with textures
- Mouse: Left-click drag to rotate, right-click drag to pan, scroll to zoom
- Touch: One finger to rotate, two fingers to zoom/pan
- Keyboard:
W/A/S/DorArrow Keys- Pan camera+/-- Zoom in/outRorF- Reset camera / Frame modelH- Toggle UI visibility
- TypeScript
- Vite
- Babylon.js 7.x
- Plain HTML/CSS
MIT
