react-three-fiber
drei
react-three-fiber | drei | |
---|---|---|
115 | 42 | |
27,936 | 8,591 | |
0.9% | 1.3% | |
8.9 | 9.4 | |
6 days ago | about 14 hours ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-three-fiber
-
You can now write React in Lua
That parenthetical “or anything declarative really” is doing a lot of work, given that:
React is a tool for writing 3D scenes that can handle state updates: https://github.com/pmndrs/react-three-fiber
React is a tool for writing music that can handle state updates: https://github.com/FormidableLabs/react-music
React is a tool for writing infrastructure-as-code templates that… um… could with some additional work handle state updates: https://www.linkedin.com/pulse/aws-terraform-generator-using...
-
A Deep Dive into Three.js: Exploring the Beauty of 3D on the Web 🌐
Advanced Examples and Utilities Three.js React https://github.com/pmndrs/react-three-fiber : React Three Fiber is a React renderer for Three.js, making it easier to integrate Three.js with React.
-
3JS Job Market
this is perfect then. a large part of the threejs userbase is using https://github.com/pmndrs/react-three-fiber (roughly 1/4, and growing) and this is also where you find lots of job opportunities. fiber has a vast eco system, but if you can pair this with your knowledge of shaders you'll find a job tomorrow if you wanted.
-
Next topics for mastering frontend
there's 3d with threeJS you could play around with that and hooking it into react with react-three-fiber.
-
Was anyone able to make a 3D CAD tool in React?
Have you looked at this: https://github.com/pmndrs/react-three-fiber
-
CLI vs Expo
Only instance in recent memory where I was able to get something working with Expo but not the CLI was when trying to integrate react-three-fiber, but even that may be resolved now.
-
Getting started with 3D web development
this will put you at a massive advantage: https://github.com/pmndrs/react-three-fiber it's a renderer, just like react-dom, it won't change what threejs is or how it functions.
-
Suggestions needed
there's a whole eco system around three in react and next. it starts with react-three-fiber, drei has tons of helpers, and then there's three-next for when you need 100% lighthouse, persisting canvas across routes etc.
-
Built a new splash page at the beginning of the year. Used the opportunity to experiment with react-three-fiber.
I picked the stack I did to expand upon my skill set. In particular, I wanted to brush up on react-three-fiber, react-spring & drei.
-
My own collection so far :)
I think the easiest for you would be to get into this through web development try this https://github.com/pmndrs/react-three-fiber coupled with this https://github.com/pmndrs/react-xr But don't expect super beautiful graphic from this, it's abstraction over three.js library which is abstraction over webgl standard which implements OpenGL ES 2.0 which is 7 years old graphics standard targeted to mobile devices with not much power. Or you can experiment with unity (unity XR) or unreal engine which are harder to learn but produce better graphics.
drei
-
Building Your First Browser Game with Three.js and React: Part 2 - Implementing 3D Models
Let's start by adding the basketball to our scene. We'll use the useGLTF hook from @react-three/drei to load our model. You can find everything drei has to offer on the github of the project, don't hesitate to go on the documentation if you want more explanation about what we use!
-
Implementing 3D Graphics in React
In React, there are different libraries for rendering 3D. In this article, we will focus on how to use the Three.js Library, React Three Fiber library, and the React Three Drei library for creating 3D objects.
-
Show HN: 3D Framework for the Web. Built on Svelte and Three.js
I have been using react-three-fiber and react-three-drei - the react version of this project. The examples are over whelming and wonderful
https://docs.pmnd.rs/react-three-fiber/getting-started/examp...
One of my favorites is the image gallery. I modified this so that clicking on an image take you into another room (gallery).
https://github.com/pmndrs/drei is a collection of examples and helpers.
Most impressive to me is the one using a GLTF model, video textures on text, reflections and more. A standalone version is
https://bfplr.csb.app/
But even more impressive is the sandbox showing the not-very-many-lines-of-code at
https://codesandbox.io/p/sandbox/ground-reflections-and-vide...
A lot to putting a layer on top of threejs and I have run a fair number of head scratchers. But still the potential is huge. Using threejs has completely changed the way I look at website development. So if you are a svelte person I would definitely look into this.
-
figured out an outline shader, heres the code (raymarching)
the shader is here if you want it in vanilla https://github.com/pmndrs/drei/blob/master/src/core/Outlines.tsx though keep in mind it needs some additional work to support skeletons and instances, that's the code in the layout effect.
-
Cannot render glb file in frontend, instead it showing a black image
the eco system gives you so much freedom, especially when it comes to properly align, display your models, and to make them look nice. there are dozens of components for staging, lighting, soft shadows, you would miss out on all of that https://github.com/pmndrs/drei
- MeshPortalMaterial component from Drei is magic
-
Open Source Project Ideas for Three.js?
there are more pain points than can be enumerated. i think you should take a look here https://github.com/pmndrs/drei and pmndrs in general. also the eco system it has covered so far.
-
Suggestions needed
there's a whole eco system around three in react and next. it starts with react-three-fiber, drei has tons of helpers, and then there's three-next for when you need 100% lighthouse, persisting canvas across routes etc.
-
Best toolset for building a 3D Website?
Definitely ThreeJS and specifically React Three Fiber. React Three Fiber is an amazing wrapper around three that greatly reduces boilerplate. And because of how modular react is, the community has grown massively. With lots of helper components in the Drei library, and amazing examples in the author's Twitter. The Codesandbox is also a goldmine of example. And one of the best-produced courses by Bruno Simon to help you get started. He is the creator of this famous portfolio site.
-
Built a new splash page at the beginning of the year. Used the opportunity to experiment with react-three-fiber.
I picked the stack I did to expand upon my skill set. In particular, I wanted to brush up on react-three-fiber, react-spring & drei.
What are some alternatives?
BabylonJS - Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
three-mesh-bvh - A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
THREE.MeshLine - Mesh replacement for THREE.Line
threlte - A three.js component library for Svelte. [Moved to: https://github.com/threlte/threlte]
Next.js - The React Framework
react-three-arjs - AR.js with react-three-fiber
framer/motion - Open source, production-ready animation and gesture library for React [Moved to: https://github.com/motiondivision/motion]
gltfjsx - 🎮 Turns GLTFs into JSX components
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
react-postprocessing - 📬 postprocessing for react-three-fiber
xr - 🤳 VR/AR for react-three-fiber
threejs-mesh-modifiers - A Three.js mesh morph modifier