An interactive 3D visualization created with Three.js featuring a dynamic sphere with particle effects, holographic animations, and responsive mouse interactions.
- Interactive 3D sphere with dynamic deformations
- Particle system with color transitions and trails
- Holographic effects and bloom post-processing
- Mouse interaction and click effects
- Responsive design
- Optimized performance
- Three.js
- GSAP (GreenSock Animation Platform)
- WebGL
- Custom GLSL Shaders
- Node.js (version 14 or higher)
- npm (comes with Node.js)
- Clone the repository:
git clone https://github.com/Horman69/Three_sfera.git
cd Three_sfera
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
Three_sfera/
├── src/
│ ├── main.js # Main application code
│ └── style.css # Styles
├── public/
│ └── index.html # HTML template
├── package.json # Project dependencies
└── README.md # This file
- Dynamic mesh deformation using Perlin noise
- Smooth color transitions
- Interactive mouse effects
- Holographic surface details
- 6000+ particles with individual behaviors
- Trail effects with customizable length
- Color transitions synchronized with the main sphere
- Dynamic size variations
- Bloom effect for enhanced glow
- Chromatic aberration
- Custom distortion effects
- Optimized render pipeline
- Efficient shader calculations
- Cached uniform values
- Optimized render loop
- Memory management improvements
Key parameters can be adjusted in the params
object:
this.params = {
noiseScale: 0.4, // Scale of noise deformation
noiseSpeed: 0.3, // Speed of noise animation
rotationSpeed: 0.1, // Auto-rotation speed
colorSpeed: 0.2, // Color transition speed
bloomStrength: 2.2, // Intensity of glow effect
distortionStrength: 0.4,// Mesh distortion amount
particleCount: 6000, // Number of particles
particleSize: 0.4, // Base size of particles
trailLength: 0.15 // Length of particle trails
};
- Mouse Move: Interacts with the sphere's surface
- Click: Triggers a wave distortion effect
- Auto-rotation: Continuous smooth rotation of the scene
- Chrome (recommended)
- Firefox
- Safari
- Edge
Requires WebGL 2.0 support.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Three.js community for their excellent documentation and examples
- GSAP team for the animation library
- Contributors and testers
Horman69
- GitHub: @Horman69
If you found this project helpful, please give it a ⭐️!