Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/temmmus/moon

This is a simple application that displays a rotating 3D model of the Moon in the browser. The app demonstrates how to integrate Three.js with React for rendering interactive 3D content.
https://github.com/temmmus/moon

react threejs typescript vite

Last synced: 4 days ago
JSON representation

This is a simple application that displays a rotating 3D model of the Moon in the browser. The app demonstrates how to integrate Three.js with React for rendering interactive 3D content.

Awesome Lists containing this project

README

        

# The Moon

This is a simple application that displays a rotating 3D model of the Moon in the browser. The app demonstrates how to integrate Three.js with React for rendering interactive 3D content.

## Features

- 3D Model: Displays a rotating 3D model of the Moon.
- Interactive Scene: Explore the Moon's surface in a web browser.
- Smooth Animation: Uses Three.js to create smooth rotation and rendering.

## Live Demo

You can view the live demo of this project on GitHub Pages: [GitHub Pages Link](https://temmmus.github.io/moon)

## Installation

To run this project locally, follow these steps:

1. Clone the repository:
```bash
git clone https://github.com/temmmus/moon.git
```
2. Navigate to the project directory:
```bash
cd moon
```
3. Install the dependencies:
```bash
npm install
```
4. Run the development server:
```bash
npm run dev
```
5. Open your browser and go to link from console.

## Technologies

- **[React](https://react.dev/)**: A JavaScript library for building user interfaces, particularly well-suited for creating interactive and dynamic web applications.
- **[Three.js](https://threejs.org/)**: A JavaScript library that simplifies the creation and rendering of 3D graphics in the browser, enabling the development of complex 3D scenes and animations.
- **[TypeScript](https://www.typescriptlang.org/)**: A superset of JavaScript that adds static types.
- **[HTML](https://developer.mozilla.org/en-US/docs/Web/HTML)**: Markup language for structuring web pages.
- **[CSS](https://www.w3.org/Style/CSS/)**: Stylesheet language for styling web pages.
- **[Vite](https://vitejs.dev/)**: A build tool and development server that provides fast hot module replacement.

## Acknowledgements

This project includes the following third-party resources:

3D Model: "The Moon"

Author: Sebastian Sosnowski
Source: Sketchfab
License: CC-BY-4.0
Credit: This work is based on "The Moon" by Sebastian Sosnowski, licensed under CC-BY-4.0.
gltfjsx
A tool used to convert the GLTF model for use in React. The model was processed with the command npx [email protected] scene.gltf.