A cutting-edge Augmented Reality web application for interactive 3D model visualization
- Real-time AR Experience: Overlay 3D models on live camera feed
- Interactive 3D Controls: Rotate, zoom, and pan models with intuitive gestures
- Multiple Animal Models: Choose from Bear, Elk, Owl, Panther, and Horse
- Cross-Platform Camera: Seamless front/back camera switching
- Photo Capture: Save AR screenshots with embedded 3D models
- Responsive Layout: Optimized for mobile, tablet, and desktop
- Touch Gestures: Native mobile touch controls for 3D interaction
- Adaptive UI: Smart button sizing and layout adjustments
- Performance Optimized: Efficient rendering on mobile devices
- Modern Interface: Clean, professional design with dark theme
- Intuitive Controls: Easy-to-use sidebar and control buttons
- Real-time Feedback: Visual indicators for active states
- Help System: Built-in tutorial and control guide
- Node.js 18+ and npm/yarn
- Modern web browser with WebGL support
- Camera-enabled device for full AR experience
-
Clone the repository
git clone https://github.com/yourusername/augmint.git cd augmint/ar-model-viewer -
Install dependencies
npm install # or yarn install -
Start development server
npm run dev # or yarn dev -
Open in browser
http://localhost:5173
# Build for production
npm run build
# Preview production build
npm run preview- Allow Camera Access: Grant camera permissions when prompted
- Select Model: Click the menu button (β°) to choose from available 3D models
- Activate Controls: Press "Control Model" to enable 3D interaction
- Interact: Use touch gestures or mouse to manipulate the model
- Capture: Take photos with the camera button
| Action | Mobile | Desktop |
|---|---|---|
| Rotate Model | One finger drag | Left mouse drag |
| Zoom In/Out | Pinch gesture | Mouse wheel |
| Pan Model | Two finger drag | Right mouse drag |
| Switch Camera | Tap π button | Click π button |
| Take Photo | Tap π· button | Click π· button |
- React 19.1.0 - Modern UI library with hooks
- Vite 6.3.5 - Lightning-fast build tool
- JavaScript (ES2020+) - Modern JavaScript features
- Three.js 0.176.0 - WebGL 3D graphics library
- GLTF Loader - 3D model loading and parsing
- Orbit Controls - Interactive camera controls
- WebGL Renderer - Hardware-accelerated rendering
- Tailwind CSS 4.1.7 - Utility-first CSS framework
- Lucide React - Beautiful icon library
- Responsive Design - Mobile-first approach
- Dark Theme - Professional dark color scheme
- WebRTC Camera API - Real-time camera access
- Canvas API - Image capture and processing
- Touch Events - Mobile gesture support
- File Download API - Photo saving functionality
ar-model-viewer/
βββ public/ # Static assets
β βββ bear/ # Bear 3D model files
β βββ elk/ # Elk 3D model files
β βββ owl/ # Owl 3D model files
β βββ panther/ # Panther 3D model files
β βββ horse/ # Horse 3D model files
β βββ logo.png # App logo
βββ src/ # Source code
β βββ App.jsx # Main application component
β βββ main.jsx # React entry point
β βββ index.css # Global styles
βββ index.html # HTML template
βββ package.json # Dependencies and scripts
βββ vite.config.js # Vite configuration
All 3D models are licensed under CC-BY-4.0 and properly attributed:
- Bear - Wild Mesh (No Rig/Animations) by WildMesh 3D Free
- Elk - Wild Mesh (No Rig/Animations) by WildMesh 3D Free
- Owl - Realistic Owl 3D Model by WildMesh 3D Free
- Panther - Realistic Panther 3D Model by WildMesh 3D Free
- Horse - Horse Free Download by pgonarg
- Dog - 3d dog cute by Tech developers
- Tank - T-62A Main Battle Tank by Muhamad Mirza Arrafi
- Bike - Honda CB175 motorcycle - Downloadable 3D scan by David Antalek
- Skull - Skull downloadable by martinjario
- Skeleton - SKELETON (Esqueleto) - Downloadable by Daniel Geraldini
Animals:
- This work includes "Bear β Wild Mesh (No Rig / No Animations)" (https://sketchfab.com/3d-models/bear-wild-mesh-no-rig-no-animations-44a214e89efc4ec6bb3074225d84a316) by WildMesh 3D Free (https://sketchfab.com/WildMesh_3D) licensed under CC-BY-4.0
- This work includes "Elk β Wild Mesh (No Rig / No Animations)" (https://sketchfab.com/3d-models/elk-wild-mesh-no-rig-no-animations-24b28b3b9e7d4ea0b8ddc0c0cf891ed6) by WildMesh 3D Free (https://sketchfab.com/WildMesh_3D) licensed under CC-BY-4.0
- This work includes "Realistic Owl 3D Model" (https://sketchfab.com/3d-models/realistic-owl-3d-model-cc55d47eda3e4e90b246b35276b480aa) by WildMesh 3D Free (https://sketchfab.com/WildMesh_3D) licensed under CC-BY-4.0
- This work includes "Realistic Panther / Pantera 3D Model" (https://sketchfab.com/3d-models/realistic-panther-pantera-3d-model-e02fb5363af240e3a108a47a9465f056) by WildMesh 3D Free (https://sketchfab.com/WildMesh_3D) licensed under CC-BY-4.0
- This work includes "Horse free download" (https://sketchfab.com/3d-models/horse-free-download-9b77bb7542354b10bb7b4c6a25866724) by pgonarg (https://sketchfab.com/pgonarg) licensed under CC-BY-4.0
- This work includes "3d dog cute" (https://sketchfab.com/3d-models/3d-dog-cute-206d1a40d4654d1e940c9ec05b2cc14f) by Tech developers (https://sketchfab.com/Deepu.Dra) licensed under CC-BY-4.0
Objects & Vehicles:
- This work includes "T-62A Main Battle Tank" (https://sketchfab.com/3d-models/t-62a-main-battle-tank-c61279bad4ca4502bcc8e584b558d10e) by Muhamad Mirza Arrafi (https://sketchfab.com/nazidefenseforceofficial) licensed under CC-BY-4.0
- This work includes "Honda CB175 motorcycle - Downloadable 3D scan" (https://sketchfab.com/3d-models/honda-cb175-motorcycle-downloadable-3d-scan-e69c3bd3a52c40c09e5e3048f1ddcf2f) by David Antalek (https://sketchfab.com/David.Antalek) licensed under CC-BY-4.0
Human Anatomy:
- This work includes "Skull downloadable" (https://sketchfab.com/3d-models/skull-downloadable-1a9db900738d44298b0bc59f68123393) by martinjario (https://sketchfab.com/martinjario) licensed under CC-BY-4.0
- This work includes "SKELETON (Esqueleto) - Downloadable" (https://sketchfab.com/3d-models/skeleton-esqueleto-downloadable-aa57a9054ea54fb8bbee9c59812a4dd7) by Daniel Geraldini (https://sketchfab.com/danielgeraldini) licensed under CC-BY-4.0
View individual license files in each model's public folder for complete attribution details.
The app works out-of-the-box with default settings. For custom configurations:
- Model Paths: Update the
modelsarray inApp.jsx - Camera Settings: Modify constraints in the
setupCamerafunction - 3D Scene: Adjust lighting and camera settings in the Three.js setup
- Pixel Ratio: Automatically limited to 2x for mobile performance
- Model Scaling: Responsive scaling based on screen size
- Control Sensitivity: Adjusted for mobile vs desktop interaction
| Browser | Mobile | Desktop | Notes |
|---|---|---|---|
| Chrome | β | β | Recommended |
| Safari | β | β | iOS 14+ required |
| Firefox | β | β | Full support |
| Edge | β | β | Chromium-based |
Requirements:
- WebGL support
- Camera API support
- ES2020+ JavaScript support
- Connect GitHub repository to Vercel
- Auto-deploy on push to main branch
- Ensure all model files are in the
publicdirectory
npm run build
# Upload dist/ folder to your hosting providerWe welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style and conventions
- Test on multiple devices and browsers
- Ensure responsive design principles
- Add comments for complex 3D graphics code
This project is licensed under the MIT License - see the LICENSE file for details.
All 3D models are used under CC-BY-4.0 license with proper attribution. See individual license files in the public folders.
- Three.js Community - For the amazing 3D graphics library
- Sketchfab Artists - For providing high-quality 3D models
- React Team - For the excellent frontend framework
- Tailwind CSS - For the utility-first CSS framework
Having issues? We're here to help!
- π§ Email: [email protected]
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
Made with β€οΈ by Your Name