-
Create a project folder and open in VS code then run the following commands
-
pnpm create vite . --template react( dot means in the current directory ) -
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 )
-
Set up a basic
Experience.jsxandApp.jsx -
pnpm run dev
Cube, Sphere, Plane, 3D Text, and GUI

- Download font from https://fonts.google.com
- Convert it to JSON file with https://gero3.github.io/facetype.js/
- Load the font with Text3D from react three drei helper ( see
Experience.jsxfile)