Indian Flag Simulation is an open-source project built with Three.js to simulate the Indian flag waving in a 3D environment. This project celebrates "Azadi ka Amrit Mahotsav" by showcasing the beauty of the tricolor in a realistic physics-based animation.
- Realistic waving Indian flag simulation.
- WebGL-powered 3D rendering.
- Interactive controls for a better visual experience.
The project uses the following libraries:
- Three.js: For creating and rendering 3D graphics.
- OrbitControls: To enable interactive mouse controls.
- WindyCloth.js: A custom module to simulate cloth physics.
To set up and run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/cybertiwari/Indian-Flag.git
-
Navigate to the project directory:
cd Indian-Flag
-
Open the
index.html
file using any local server (e.g., Python HTTP server):python -m http.server
Alternatively, use tools like VS Code Live Server.
-
Open the project in your browser at
http://localhost:8000
(or the port specified by your server).
- Open the project in a browser.
- View the Indian flag waving beautifully in 3D.
- Interact with the scene using mouse controls (rotate, zoom, pan).
Contributions are welcome! Submit issues or pull requests to improve this project.
This project is licensed under the MIT License.