RenaudRohlinger / R3f Next Starter
Repo is moving to https://github.com/pmndrs/react-three-next
Stars: ✭ 137
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to R3f Next Starter
Wechart
Create all the [ch]arts by cax or three.js - Cax 和 three.js 创造一切图[表]
Stars: ✭ 152 (+10.95%)
Mutual labels: webgl, threejs, canvas
Indoor3d
a js lib based on three.js to show 3D indoor map
Stars: ✭ 425 (+210.22%)
Mutual labels: webgl, threejs, canvas
Troika
A JavaScript framework for interactive 3D and 2D visualizations
Stars: ✭ 342 (+149.64%)
Mutual labels: webgl, threejs, canvas
Fe Daily Record
📚前端书籍汇集点 + 每日好文推荐 + 公开课学习资料 + 各种大会资料
Stars: ✭ 94 (-31.39%)
Mutual labels: webgl, threejs, canvas
Webxr Handtracking
👐 WebXR hand tracking examples
Stars: ✭ 116 (-15.33%)
Mutual labels: webgl, threejs
Phaser Examples
Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.
Stars: ✭ 1,680 (+1126.28%)
Mutual labels: webgl, canvas
Giojs
🌏 A Declarative 3D Globe Data Visualization Library built with Three.js
Stars: ✭ 1,528 (+1015.33%)
Mutual labels: webgl, threejs
Lba2remake
A Little Big Adventure 2 / Twinsen's Odyssey reimplementation in JavaScript / Three.js / React
Stars: ✭ 116 (-15.33%)
Mutual labels: webgl, threejs
Freeciv Web
Freeciv-web is an Open Source strategy game implemented in HTML5 and WebGL, which can be played online against other players, or in single player mode against AI opponents.
Stars: ✭ 1,626 (+1086.86%)
Mutual labels: webgl, canvas
Knowledge
文档着重构建一个完整的「前端技术架构图谱」,方便 F2E(Front End Engineering又称FEE、F2E) 学习与进阶。
Stars: ✭ 1,620 (+1082.48%)
Mutual labels: webgl, canvas
Solar System Threejs
The Solar System: Modeled to scale with Three.js
Stars: ✭ 107 (-21.9%)
Mutual labels: webgl, threejs
Canvas Webgl Study
this is a canvas study project
Stars: ✭ 117 (-14.6%)
Mutual labels: threejs, canvas
Ipyvolume
3d plotting for Python in the Jupyter notebook based on IPython widgets using WebGL
Stars: ✭ 1,696 (+1137.96%)
Mutual labels: webgl, threejs
‼️ | The repo is moving to https://github.com/pmndrs/react-three-next |
---|
🏯 Next & React three fiber starter
This starter will automatically pick the marked R3F components and inject them into a canvas layout so we can navigate seamlessly between the pages with some dynamic dom and canvas content without reloading or creating a new canvas every time.
🗾 Demo :
https://r3f-next-starter.vercel.app/
How to use
Installation
Tailwind is the default
yarn create r3f-app next my-app <tailwind?>
or
npx create-r3f-app next my-app <tailwind?>
🗻 Features
- [x] Concurrent mode with React experimental
- [x] Automatically inject r3f component in the Canvas layout
- [x] Customizable loading
- [x] Support glsl, images and svg imports
- [x] PWA Support
- [x] Dynamic meta data and header using Helmet
- [x] Clean code using ESlint, Prettier and Husky
🚄 Architecture
Inform the nextjs page that the component is a Threejs component. For that, simply add the r3f property to the parent component.
const Page = () => {
return (
<>
<h1>Hello !</h1>
{/* Simply add the r3f prop to the parent component -> */}
<Group r3f />
<h2>Bonjour.</h2>
<MeshComponent r3f />
</>
)
}
export default Page
🎛 Available Scripts
- yarn dev
- yarn lint (Scripts)
- yarn build
- yarn start
🔎 Stack
- Threejs: A lightweight, 3D library with a default WebGL renderer.
- 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.
- Tailwind: A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 directly in your markup.
- R3F-Perf: Tool to easily monitor react threejs performances.
How to contribute :
git clone https://github.com/RenaudRohlinger/r3f-next-starter
&& cd r3f-next-starter && yarn install
# then push using the terminal to trigger Husky
Contributors will be automatically added using allcontributors.org
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Joe Hsu 💻 |
Alaric.Baraou 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
More tool and r3f tips on my twitter @onirenaud
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].