Earth 3D React is a project that uses React and Three.js to create an interactive 3D Earth visualization. This project demonstrates how to combine these two libraries to build stunning 3D graphics in React applications.
- Custom Shaders: Implements a unique shader for creating a glowing halo effect around the Earth.
- Interactive 3D Globe: Users can rotate and interact with the globe.
- Triangular Meshes: Adds dynamic triangular mesh elements for enhanced visual effects.
- Built with Three.js: Utilizes Three.js for 3D rendering and visual effects.
- React Integration: Leverages React's component-based architecture for organized and maintainable code.
Make sure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/alireza013013/earth-3d-react.git cd earth-3d-react -
Install dependencies:
Using npm:
npm install
Or using yarn:
yarn install
-
Run the application:
Using npm:
npm run dev
Or using yarn:
yarn run dev
The app will be available in your browser at
http://localhost:3000.
To create an optimized production build, run:
Using npm:
npm run buildOr using yarn:
yarn buildThe output will be located in the build folder, ready for deployment.
Contributions are welcome! If you have suggestions for improvements or find any bugs, feel free to open an Issue or Pull Request in the GitHub repository.
Check out the live demo of the project here: