Note from the future: I wonder if I should revamp this for halloween and create like a react-three-fiber halloween experience hahahaha
A "weird west" inspired personal site running on React-Three-Fiber and React-Spring. Still a work in progress.
Deployed at https://mary-dev.netlify.app/
environment: This folder has all environment-related components--clouds, terrain, trees, stars, etc.
objects: This folder has all non-player components. The computer, cow, end sign, ufo, and text components are all here.
constants: All constant variables are kept here for ease of access
utilities: Any helper functions that may be used in multiple places are here.
If you want to mess around with this repo, just clone and download it as you would any other.
-
If you want to add your own 3D models to the scene, make sure to convert them into
.glbfiles and place them in thepublic/modelsfolder. -
I've forced an articial 2.5D environment by limiting the camera. If you want to allow the user to move in a 3D environment, edit the
CameraControlscomponent. Consider replacingorbitalcontrolswithflyorpointerlock. -
If you are like me, and just started with React-Three-Fiber, take a look at the
dreirepo, and keep the Three.js docs open!
yarn dev: Starts up react-scripts for quick development. Using this, you can edit any of the components and the page will refresh.
yarn build: Builds the app for production to the build folder.
yarn start: Starts up a node server with express. If you run
yarn build then yarn start you"ll be able to see what the app looks like in production.