This project is a Three.js-based 3D scene featuring an interactive snowman. Users can view a snowfall effect, manipulate the camera, and export the scene in GLTF format.
- 3D Snowman Model: A detailed 3D model of a snowman complete with a hat, eyes, nose, and arms.
- Snowfall Effect: A dynamic snowfall animation that gives life to the scene.
- Export Functionality: Users can export the current state of the snowman scene in GLTF format.
- Interactive Camera Controls: Users can rotate, zoom, and pan the camera to view the snowman from different angles using mouse controls.
To run this project on your local machine, follow these steps:
-
Clone the Repository (SSH)
git clone [email protected]:francescorizzello94/threejs-snowman.git
-
Install Dependencies
Make sure you have Node.js installed, then run:
npm install
-
Start the Development Server
npm run dev
This will compile the project and serve it on
localhost
. The default port will be displayed in your terminal. -
View the Project
Open your browser and go to
http://localhost:port
, whereport
is the number provided after runningnpm run dev
.
The scene can be exported by interacting with the GUI controls in the browser. Simply click the 'Export to GLTF' button to download the current state of the scene.
Contributions are welcome! If you have suggestions or want to contribute to the project, please create a pull request or open an issue.