drei
engine
drei | engine | |
---|---|---|
41 | 55 | |
7,427 | 9,152 | |
3.4% | 1.0% | |
9.4 | 9.8 | |
4 days ago | 3 days ago | |
JavaScript | 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.
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?
engine
-
Gamedev.js Jam 2024 start and theme announcement!
10 Ć PlayCanvas Personal plan for 12 months
- List of Unity alternatives
- PlayCanvas: Free and Open Source JavaScript Game Engine
-
Normal Map Interpolation on Deferred Shading
For some reason that I cannot understand in my case the calculated shading normals are pixelated. Compared to playcanvas.com (probably a forward renderer), mine is like utter shit.
-
Migrating from WordPress After 12 Years
PlayCanvas has been using WordPress for 12 years now. Generally speaking, it's been fine. However, after much consideration, we have migrated away to Jekyll + GitHub Pages. I thought our experience might be of interest to other WordPress users (if only to confirm why you wouldn't consider switching): https://blog.playcanvas.com/moving-from-wordpress-to-jekyll-a-case-study/ Interested to hear peoples' thoughts...
-
I made a 3D editor that models in pure CSS+HTML
It's just a cool tech demo that pushes CSS to its limits, but it's completely useless if you want to create usable 3d models. If you want to model in the browser, you can check out vectary, playcanvas, or spline
-
Help With Web AR App Project Completion?
Hey, I do not have any experience with deepar.ai so Iām not super familiar with the process using that platform. In my opinion Iād probably recommend another platform to try and accomplish this. Since you mentioned that you have everything set up in a engine already (lens studio) Iād recommend you just use a webxr engine. In my experience the two best engines are https://playcanvas.com and https://wonderlandengine.com. I think that going down this route may be the best option for your needs. I am willing to help out or do some of the work for you just pm me if you have any questions or anything.
-
Alternatives to WebGL to run a very simple 2D game on mobile browser?
If you want the closest thing to Unity that's focused on browser-based (mobile and otherwise) development, try Playcanvas: https://playcanvas.com/
-
Initial WebGPU support lands in PlayCanvas Engine 1.62! š
Release Notes: https://github.com/playcanvas/engine/releases/tag/v1.62.0 Clustered Arealights Demo: https://playcanvas.com/demos/arealights/
- Best toolset for building a 3D Website?
What are some alternatives?
react-three-fiber - šØš A React renderer for Three.js
Godot - Godot Engine ā Multi-platform 2D and 3D game engine
three-mesh-bvh - A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser]
threlte - A three.js component library for Svelte. [Moved to: https://github.com/threlte/threlte]
melonJS - a fresh, modern & lightweight HTML5 game engine
react-three-arjs - AR.js with react-three-fiber
matter-js - a 2D rigid body physics engine for the web ā²ā ā
gltfjsx - š® Turns GLTFs into JSX components
WebXR-games - Curated list of cool WebXR Games & Experiences
react-postprocessing - š¬ postprocessing for react-three-fiber
unity-webxr-export - Develop and export WebXR experiences using Unity WebGL