This project demonstrates a simple 3D scene created using Three.js and vanilla javascript, built with the Vite development tool. It features a rotating moon and a starfield, with camera controls to explore the scene.
- Rotating moon with a realistic texture.
- Dynamic starfield with random stars.
- Interactive camera controls for panning and zooming.
- Responsive design for different screen sizes.
To run this project locally, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/vishkashpvp/moon3d.git
- Change into the project directory:
cd moon3d
- Install the project dependencies:
npm i
- Start the development server:
npm run dev
- Open your web browser and navigate to http://localhost:5173/ to view the 3D scene.
- Three.js: A popular 3D library for the web.
- Vite: A fast development build tool for modern web projects.
The moon texture used in this project is sourced from NASA's website. You can find the original texture and more information at NASA's Moon Texture.