This repository contains three interactive Three.js projects: an Advanced Example, a Magical Kingdom scene, and a House Coloring application.
A sophisticated 3D scene featuring:
- Animated torus knot with metallic green material
- Dynamic particle system
- Post-processing effects (bloom)
- Interactive controls
- Custom 3D text "zespół-IT.pl"
A Disney-inspired magical scene featuring:
- Floating castle with glowing windows
- Magical particles and butterflies
- Rainbow bridge
- Magical portal
- Interactive controls for various effects
An interactive house coloring application featuring:
- 3D house model with multiple sections
- Color picker for each section
- Real-time color updates
- Orbit controls for viewing
- Section highlighting on hover
.
├── advanced-example/
│ ├── index.html
│ └── main.js
├── magical-kingdom/
│ ├── index.html
│ └── main.js
├── house-coloring/
│ ├── index.html
│ └── main.js
├── screenshots/
│ ├── advanced-example/
│ │ ├── main.png
│ │ ├── closeup.png
│ │ └── controls.png
│ ├── magical-kingdom/
│ │ ├── main.png
│ │ ├── bridge.png
│ │ ├── portal.png
│ │ └── controls.png
│ └── house-coloring/
│ ├── main.png
│ ├── coloring.png
│ └── controls.png
└── README.md
-
Clone the repository:
git clone [repository-url] cd [repository-name] -
Install a local server (if not already installed):
npm install -g http-server
-
Start the server:
http-server
-
Open your browser and navigate to:
- Advanced Example:
http://localhost:8000/advanced-example/ - Magical Kingdom:
http://localhost:8000/magical-kingdom/ - House Coloring:
http://localhost:8000/house-coloring/
- Advanced Example:
- Mouse: Orbit around the scene
- Scroll: Zoom in/out
- Click and drag: Move the camera
- Mouse: Orbit around the scene
- Scroll: Zoom in/out
- Click and drag: Move the camera
- Sliders:
- Magic Sparkles: Adjust particle visibility
- Castle Glow: Control castle's emissive intensity
- Floating Speed: Modify animation speed
- Mouse: Orbit around the house
- Scroll: Zoom in/out
- Click and drag: Move the camera
- Color Pickers: Select colors for different house sections
- Hover: Highlight selectable sections
- Three.js core features
- Scene, Camera, and Renderer setup
- OrbitControls for camera manipulation
- Post-processing with EffectComposer
- UnrealBloomPass for glow effects
- Custom geometry and materials
- TorusKnotGeometry with MeshPhysicalMaterial
- Particle system with BufferGeometry
- TextGeometry with custom font
- Performance optimizations
- Efficient particle system
- Optimized post-processing
- Responsive design
- Complex scene composition
- Hierarchical object structure
- Multiple animated elements
- Dynamic lighting system
- Interactive controls
- Real-time parameter adjustment
- Smooth animations
- Responsive UI
- Advanced materials
- Clearcoat materials
- Emissive materials
- Transparent materials
- Particle systems
- Magical particles
- Butterfly animations
- Portal effects
- Interactive 3D model
- Sectioned house geometry
- Material management
- Raycasting for selection
- Color management
- Color picker integration
- Real-time material updates
- Section highlighting
- User interface
- Intuitive color controls
- Section selection feedback
- Responsive design
-
Start the local server:
http-server
-
Open the applications in your browser:
- Advanced Example: http://localhost:8000/advanced-example/
- Magical Kingdom: http://localhost:8000/magical-kingdom/
- House Coloring: http://localhost:8000/house-coloring/
-
For each application, capture:
- Main view (default camera position)
- Close-up views of key elements
- Control panel interface
- Special effects and animations
-
Save screenshots in the appropriate directories:
screenshots/ ├── advanced-example/ │ ├── main.png │ ├── closeup.png │ └── controls.png ├── magical-kingdom/ │ ├── main.png │ ├── bridge.png │ ├── portal.png │ └── controls.png └── house-coloring/ ├── main.png ├── coloring.png └── controls.png
Use the provided script to automatically capture screenshots:
./capture-screenshots.sh- Three.js v0.162.0
- Modern web browser with WebGL support
- Node.js and npm (for local server)
- Chrome (recommended)
- Firefox
- Safari
- Edge
- WebGL support required
- Dedicated graphics card recommended
- Minimum 4GB RAM
- Modern CPU (2GHz+)
- Fullscreen mode recommended
- Close other GPU-intensive applications
- ES6+ JavaScript
- Three.js documentation: https://threejs.org/docs/
- Local development server required
- CORS policy considerations
- WebGL debugging tools recommended
MIT License
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request