31ab12aaf7
This is a change to add the project name as in the other examples. When we run with the current create command, we are asked for the project name. As follows: ``` $ npx create-next-app --example with-three-js ? What is your project named? › my-app ``` |
||
---|---|---|
.. | ||
components | ||
pages | ||
public/glb | ||
.gitignore | ||
next.config.js | ||
package.json | ||
README.md |
With Three js
This example uses:
threejs
: A lightweight, 3D library with a default WebGL renderer. The library also provides Canvas 2D, SVG and CSS3D renderers in the examples.
react-three-fiber
: A React renderer for Threejs on the web and react-native.
drei
: A growing collection of useful helpers and abstractions for react-three-fiber.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-three-js with-three-js-app
# or
yarn create next-app --example with-three-js with-three-js-app
Deploy it to the cloud with Vercel (Documentation).