This is a repository I used to write a tutorial on Medium about how to render a GLTF 3D model using Next.js, TypeScript, react-three-fiber and react-three-drei.
You can check it out here.
This is the final result:
First, install dependencies:
npm install
# or
yarn
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.