A modern 3D virtual tour application combining Shapespark's WebGL-based walkthrough engine with React components for enhanced user interaction.
- 🏢 Interactive 3D Walkthrough: Navigate through realistic 3D environments
- ⚛️ React Integration: Modern UI components for enhanced user experience
- 📱 Mobile Responsive: Optimized for both desktop and mobile devices
- 🎮 Advanced Controls: Audio toggle, fullscreen, screenshot capabilities
- 💫 Modern UI: Beautiful, animated interface components
- 🚀 Fast Development: Hot-reload development server with Vite
- 3D Engine: Shapespark WebGL
- Frontend Framework: React 18
- Build Tool: Vite
- Styling: CSS3 with modern features (backdrop-filter, CSS Grid, Flexbox)
arobid_booth_mobile/
├── src/
│ ├── components/
│ │ ├── InfoPanel.jsx # Tour information modal
│ │ ├── InfoPanel.css
│ │ ├── TourControls.jsx # Interactive control buttons
│ │ └── TourControls.css
│ ├── App.jsx # Main React application
│ ├── App.css
│ ├── main.jsx # React entry point
│ └── index.css # Global styles
├── 2025-07-30-14-04-55/ # 3D tour assets
├── index.html # Main HTML file
├── package.json
├── vite.config.js
└── README.md
- Node.js (version 16 or higher)
- npm or yarn package manager
-
Clone or navigate to the project directory
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser and navigate to
http://localhost:3000
npm run buildThe built files will be in the dist directory.
npm run preview- Purpose: Displays welcome information and tour instructions
- Features:
- Animated modal with gradient header
- Control instructions for different devices
- Feature highlights
- Mobile-responsive design
- Purpose: Provides additional control buttons for the 3D tour
- Features:
- Audio toggle
- View reset
- Fullscreen toggle
- Screenshot capture
- Tooltip on hover
- Mobile-optimized layout
- Purpose: Main application wrapper that coordinates React and 3D tour
- Features:
- Detects when 3D engine is loaded
- Status indicator
- Responsive overlay system
The React components are designed to work alongside the existing Shapespark 3D tour:
- Non-intrusive: Uses overlay positioning to avoid interfering with 3D canvas
- API Integration: Hooks into WALK engine APIs for advanced functionality
- Event Coordination: Listens for 3D engine events and updates React state accordingly
src/: All React source codesrc/components/: Reusable React components2025-07-30-14-04-55/: Static 3D tour assets (don't modify)
- CSS variables for consistent theming
- Component-specific CSS files
- Mobile-first responsive design
- Modern CSS features (backdrop-filter, CSS Grid)
- Create new components in
src/components/ - Import and use them in
App.jsx - Add any needed CSS files
- Use
window.WALKto integrate with the 3D engine
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
- Make sure port 3000 is available
- Try
npm run dev -- --port 3001to use a different port
- Check browser console for WebGL errors
- Ensure all files in
2025-07-30-14-04-55/directory are present - Verify browser supports WebGL
- Check that
#react-rootelement exists in HTML - Verify React scripts are loaded
- Check browser console for JavaScript errors
This project combines:
- Custom React components (your implementation)
- Shapespark 3D tour engine (separate license)
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Note: This project enhances an existing Shapespark 3D tour with React components. The core 3D functionality remains unchanged, while React provides modern UI enhancements.