https://github.com/languagexange/basicsetup
Basic React Three Fiber project set up ( starter template ). Feel free to use this template !
https://github.com/languagexange/basicsetup
leva react react-three-fiber threejs
Last synced: 3 months ago
JSON representation
Basic React Three Fiber project set up ( starter template ). Feel free to use this template !
- Host: GitHub
- URL: https://github.com/languagexange/basicsetup
- Owner: LanguageXange
- Created: 2023-10-13T23:32:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-14T02:26:36.000Z (over 1 year ago)
- Last Synced: 2025-01-08T18:13:13.715Z (5 months ago)
- Topics: leva, react, react-three-fiber, threejs
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How I set up my R3F Project ( Feel free to use this template for your R3F project! )
0. Create a project folder and open in VS code then run the following commands
1. `pnpm create vite . --template react` ( dot means in the current directory )
2. `pnpm install three @react-three/drei @react-three/fiber @react-three/rapier leva @react-three/postprocessing`
Note: you don't have to install `@react-three/rapier` and `@react-three/postprocessing` if you don't plan to add any physics or [postprocessing effect](https://github.com/pmndrs/react-postprocessing) )
3. Set up a basic `Experience.jsx` and `App.jsx`
4. `pnpm run dev`
### What you should see
Cube, Sphere, Plane, 3D Text, and GUI
## How to Set up Font
1. Download font from https://fonts.google.com
2. Convert it to JSON file with https://gero3.github.io/facetype.js/
3. Load the font with Text3D from react three drei helper ( see `Experience.jsx` file)