A powerful Node.js application that automatically adds autoplay/autopilot functionality to your 3D Vista virtual tours. Transform your static virtual tours into dynamic, automatically rotating experiences with just a few clicks!
- 🎯 One-Click Setup: Simply provide your 3D Vista project folder path
- ⚡ Turbo Mode Toggle: Enable/disable autoplay with a sleek UI button
- 🎛️ Customizable Speed: Set rotation speed from 1000ms to 20000ms
- 🔄 Smart Backup System: Automatically creates backups of your original files
- 🧹 File Optimization: Removes inline base64 PNGs to improve performance
- 📱 Responsive UI: Modern, glassmorphism design that works on all devices
- 🔧 Safe Operations: Non-destructive modifications with easy restoration
The application intelligently modifies your script_general.js file by:
- Injecting autopilot camera movements that smoothly rotate 360°
- Adding a toggle button to your virtual tour interface
- Creating backup files for safe restoration
- Optimizing file sizes by cleaning up inline images
- Node.js (version 16.0.0 or higher)
- npm (comes with Node.js)
- A 3D Vista virtual tour project with
script_general.jsfile
-
Clone the repository
git clone https://github.com/thiyo-de/3d-Vista-Autoplay.git cd 3d-Vista-Autoplay -
Install dependencies
npm install
-
Start the server
npm start
-
Open your browser
http://localhost:5000
- Open the application in your browser
- Enter your 3D Vista project folder path (the folder containing
script_general.js) - Set your desired autoplay speed (1000-20000 milliseconds)
- Click "✅ Apply Settings"
- Navigate to your virtual tour's
index.htmfile - You'll see a new "Turbo Mode" button in the bottom-left corner
- Click the button to toggle autoplay ON/OFF
- The tour will automatically reload with your new settings
Your virtual tour now features smooth 360° autoplay rotation! Visitors can still interact normally while the autopilot provides a cinematic experience.
- Modern glassmorphism design with backdrop blur effects
- Real-time status updates during processing
- Input validation for paths and speed values
- Responsive layout that adapts to any screen size
- Sleek toggle button with gradient styling
- Helpful tooltips explaining current state
- Smooth animations and hover effects
- Persistent settings using localStorage
3d-Vista-Autoplay/
├── server.js # Main Express.js server
├── package.json # Project dependencies
├── public/
│ ├── UI.html # Configuration interface
│ └── Auto_Pilot.jpg # Background image
└── README.md # This file
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Redirects to configuration UI |
/set-path |
POST | Initialize project with folder path and speed |
/enable-autopilot |
POST | Activate autoplay mode |
/disable-autopilot |
POST | Restore original tour behavior |
- Minimum: 1000ms (fast rotation)
- Maximum: 20000ms (very slow rotation)
- Recommended: 4000-8000ms for optimal viewing experience
The application creates these files in your project folder:
backup_script_general.js- Original file backupmodified_script_general.js- Version with autopilot injection- Updated
index.htm- With toggle UI controls
- Automatic backups prevent data loss
- Non-destructive operations - original files are preserved
- Error handling with detailed status messages
- File validation ensures compatibility
- Easy restoration to original state
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 12+
- ✅ Edge 79+
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
"Missing script_general.js" error
- Ensure you're pointing to the correct 3D Vista project folder
- The folder must contain
script_general.jsfile
"Server not responding" error
- Check if port 5000 is available
- Try restarting the application
- Verify Node.js is properly installed
Autoplay not working
- Clear your browser cache and reload
- Check browser console for JavaScript errors
- Ensure the tour uses the standard 3D Vista structure
If you encounter any issues:
- Check the Issues page
- Create a new issue with detailed description
- Include your system information and error messages
- Built with ❤️ for the 3D Vista community
- Inspired by the need for cinematic virtual tour experiences
- Thanks to all contributors and users who provide feedback
Made with 🚀 by thiyo-de
Transform your virtual tours into cinematic experiences!
