gltfjsx VS drei

Compare gltfjsx vs drei and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
gltfjsx drei
54 40
4,162 7,370
4.9% 4.5%
7.1 9.4
7 days ago 9 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

gltfjsx

Posts with mentions or reviews of gltfjsx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-02.
  • How can I get rid of these gaps?
    1 project | /r/threejs | 9 Nov 2023
    Hello! I loaded a model using https://gltf.pmnd.rs and it displays correctly, but there are weird gaps that you can see through on the edges. This is a Next.js project with ts. I'm using @react-three/fiber and @rect-three/drei to use three.js in react. I'll attach the file that creates this object, but if there's anything more you need, just ask me. Here's the file that contains the code of this object:
  • React + Three.js. Creating your own 3D shooter. Part 1
    3 projects | dev.to | 2 Oct 2023
    Then we need to generate a react component that will contain the markup of this model to add it to the scene. Let's use the official resource from the @react-three/fiber developers.
  • Add texture to loaded glb, threejs
    1 project | /r/threejs | 13 Jul 2023
    especially for what you describe above. it can lay out a glb model declaratively, the whole scene is yours to control. watch the first video here https://github.com/pmndrs/gltfjsx and then use that tool:
  • Optimization checklist GLTF models in Three.js?
    2 projects | /r/threejs | 6 Jun 2023
  • Any good tutorials on creating dynamic animations?
    1 project | /r/threejs | 27 May 2023
    stuff like this doesn't have to be keyframed, you can just rotate model groups. im sure this will be overwhelming atm but if you have the time watch the video there https://github.com/pmndrs/gltfjsx models in threejs are blobs, they are not meant to do anything. people traverse them and create mutations. but that tool puts the entire model scene under your control, every node in its graph is declarative now, to my it dynamic is trivial at that point.
  • which skills to learn from Blender for three js
    1 project | /r/threejs | 24 May 2023
    the second practically doesn't exist in vanilla three. a gltf is a blob that you throw into the scene. pair three with react and blender will be a lot more useful: https://github.com/pmndrs/gltfjsx (watch the first video there)
  • How to apply Mesh Wobble Material to gltf model in r3f?
    1 project | /r/threejs | 11 May 2023
    I want to implement this for a gltf model loaded as a gltfx. MeshWobbleMaterial is not getting qpplied. i don't know what to where to add the component either. i have attached the code below,
  • Help making a model look like the demo
    1 project | /r/threejs | 5 May 2023
    /* Auto-generated by: https://github.com/pmndrs/gltfjsx Command: npx [email protected] crystal_ball_test.glb Author: WarderiiK (https://sketchfab.com/WarderiiK) License: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/) Source: https://sketchfab.com/3d-models/crystal-ball-test-fc727811052a4b2ba9ef2ffa327e8349 Title: Crystal Ball Test */ import React, { useRef } from 'react' import { useGLTF, useAnimations, MeshTransmissionMaterial } from '@react-three/drei' export default function Model(props) { const group = useRef() const { nodes, materials, animations } = useGLTF('/crystal_ball_test.glb') const { actions } = useAnimations(animations, group) return ( ) }
  • Where should I keep my assets?
    1 project | /r/threejs | 16 Apr 2023
    Have you compressed your models with https://gltf.pmnd.rs ? ( sorry this is unrelated to your post ) or you could use https://github.com/pmndrs/gltfjsx ( same thing but you use it like an npm package )
  • Need help figuring out how many texture set to use and how to split them up (more in comments)
    2 projects | /r/Substance3D | 29 Mar 2023

drei

Posts with mentions or reviews of drei. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.
  • Show HN: 3D Framework for the Web. Built on Svelte and Three.js
    7 projects | news.ycombinator.com | 29 Apr 2024
    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)
    1 project | /r/threejs | 11 Dec 2023
    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
    1 project | /r/threejs | 6 Jul 2023
    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
    2 projects | /r/threejs | 30 Jun 2023
  • Open Source Project Ideas for Three.js?
    1 project | /r/threejs | 3 Apr 2023
    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
    3 projects | /r/threejs | 3 Apr 2023
    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?
    5 projects | /r/webdev | 9 Mar 2023
    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.
    3 projects | /r/webdev | 4 Mar 2023
    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?
    2 projects | /r/threejs | 26 Feb 2023
  • Library for orbit controls in React Native
    1 project | /r/threejs | 22 Feb 2023
    what's the advantage of your version over this one by the developer who created react-three/fiber? https://github.com/pmndrs/drei/blob/master/src/core/OrbitControls.tsx I use the above by importing react-three/drei and it then works just like the one in your example

What are some alternatives?

When comparing gltfjsx and drei you can also consider the following projects:

gltf-pipeline - Content pipeline tools for optimizing glTF assets. :globe_with_meridians:

react-three-fiber - 🇨🇭 A React renderer for Three.js

react-three-fiber - 🇨🇭 A React renderer for Three.js [Moved to: https://github.com/pmndrs/react-three-fiber]

three-mesh-bvh - A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.

leva - 🌋 React-first components GUI

threlte - A three.js component library for Svelte. [Moved to: https://github.com/threlte/threlte]

awesome-react-three-fiber - 🍕 A loose collection of cool r3f links, gifs, people, stuff

react-three-arjs - AR.js with react-three-fiber

react-xr - 🤳 VR/AR with react-three-fiber

react-postprocessing - 📬 postprocessing for react-three-fiber

threejs-mesh-modifiers - A Three.js mesh morph modifier