Skip to content

Basic React Three Fiber project set up ( starter template ). Feel free to use this template !

Notifications You must be signed in to change notification settings

LanguageXange/basicsetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How I set up my R3F Project ( Feel free to use this template for your R3F project! )

  1. Create a project folder and open in VS code then run the following commands

  2. pnpm create vite . --template react ( dot means in the current directory )

  3. 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 )

  1. Set up a basic Experience.jsx and App.jsx

  2. pnpm run dev

What you should see

Cube, Sphere, Plane, 3D Text, and GUI startertemplatescreenshot

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)

About

Basic React Three Fiber project set up ( starter template ). Feel free to use this template !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published