An interactive 3D visualization project showcasing an Airbus A320 model, utilizing Three.js and GSAP ScrollTrigger for scroll-driven animations.
This project provides a browser-based 3D experience. It uses a lightweight Express.js server to serve the frontend application, where the A320 model is rendered and animated based on user scroll progress.
- 3D Rendering: Real-time rendering of the
assets/plane.obj3D model. - Scroll Animations: Integration of GSAP ScrollTrigger for synchronized 3D viewport transitions.
- Asset Management: Includes optimized environment textures and background imagery stored in
src/assets/images. - Utility Tooling: Automated asset processing script
scripts/generate_plane_obj.js.
- Frontend: Vanilla JavaScript, Three.js, GSAP
- Backend: Node.js, Express
- Runtime: Bun or Node.js (v18+)
-
Clone the repository:
git clone https://github.com/AndyMagwayer/A320-airplane.git cd A320-airplane -
Install project dependencies:
bun install # OR npm install
Start the development server:
bun run dev
# OR
npm run devAccess the application in your browser at http://localhost:3000 (or as configured in server.js).
.
├── assets/ # Raw 3D models and base assets
├── scripts/ # Asset processing and utility scripts
├── src/ # Optimized runtime assets and images
├── index.html # Entry point
├── main.css # Global styling
├── script.js # Core Three.js/GSAP logic
├── server.js # Express server configuration
└── package.json # Dependencies and scripts
Contributions are welcome. Please ensure:
- New assets are optimized for web performance.
- Rendering logic updates are verified against the existing GSAP implementation.
- Pull requests maintain the architectural integrity of the project.
