A web-based augmented reality application that displays 3D models on tracked images using your device camera.
- Image tracking using MindAR
- 3D model display in AR
- Mobile and desktop support
- No installation required
- Place your
target.mindandmodel.glbfiles in theassetsfolder - Run a local server:
python -m http.server 8000 - Open
http://localhost:8000in your browser - Allow camera access
- Point camera at your target image
Generate your target file at: https://hiukim.github.io/mind-ar-js-doc/tools/compile
Use any GLB format model. Sample model:
curl -o assets/model.glb https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Binary/Duck.glb- Find your computer's IP:
ipconfig(Windows) orifconfig(Mac/Linux) - On mobile browser, go to:
http://YOUR_IP:8000 - Allow camera permissions
- Point at target image
Deploy to GitHub Pages, Netlify, or Vercel for HTTPS access (required for mobile camera).
- iOS Safari 11+
- Android Chrome 67+
- Desktop browsers with webcam
Edit main.js to adjust model scale and paths:
const CONFIG = {
modelScale: 0.3, // Change model size
// ...
};Three.js, MindAR, WebGL