drei
threlte
drei | threlte | |
---|---|---|
41 | 9 | |
7,427 | 229 | |
3.4% | - | |
9.4 | 9.5 | |
3 days ago | almost 2 years ago | |
JavaScript | Svelte | |
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.
drei
-
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.
- How to achieve these controls?
threlte
-
Threlte v4 is now available!
Threlte, a three.js component library for Svelte, just moved to a new home: https://github.com/threlte/threlte. As a GitHub Organization, it's hopefully less about me and more about us. I'd love it if more people would contribute and I hope I made at least that part easier (it's now a fancy turborepo) and more accessible.
-
Generate random 3D trees, made with threlte
threlte docs: https://threlte.xyz
-
How possible would it be to do this with Svelte Cubed? Totally new to 3D. Realistic?
Totally possible! I recommend modeling in Blender and using threlte instead of svelte-cubed.
-
Is it possible to make this cone effect with Spotlight?
This is very nice, I love drei extra helpers, but unfortunately I don't use react, but svelte + threlte.
-
How to use GLTF Loader in svelte-cubed ?
You might want to give threlte a try. It ships with a component and hooks like useGltfAnimations which make working with glTF files really easy. Apart from that itโs fully documented and well equipped with example code. Give it a try! Disclaimer: Iโm the owner :)
-
KitDocs: Docs integration for SvelteKit (Vitepress alternative for Svelte)
Great stuff! I was looking into Documentation solutions to document threlte and it seems i just found something. Exciting!
-
ThreeJS vs SvelteCubed
Try threlte
- Show HN: Threlte โ A Three.js component library for Svelte
- threlte - A three.js component library for Svelte
What are some alternatives?
react-three-fiber - ๐จ๐ญ A React renderer for Three.js
threlte - 3D framework for Svelte
three-mesh-bvh - A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
flowbite-svelte - Official Svelte components built for Flowbite and Tailwind CSS
react-three-arjs - AR.js with react-three-fiber
three-graces-svelte-cubed
gltfjsx - ๐ฎ Turns GLTFs into JSX components
kit-docs - Documentation integration for SvelteKit.
react-postprocessing - ๐ฌ postprocessing for react-three-fiber
threejs-volumetric-spotlight - Volumetric spotlight with three.js
threejs-mesh-modifiers - A Three.js mesh morph modifier
SveltePress - Documentation for humans.