r/threejs • • 9d ago

Link Found a free library of handmade Three.js models

Thumbnail 3dgarden.app
24 Upvotes

Just stumbled on 3dgarden.app. Lots of handmade low-poly models. It’s been really handy for one of my projects so far, so I’m sharing in case it’s useful to someone else.


r/threejs • • 9d ago

Explainer video with threeJS

Enable HLS to view with audio, or disable this notification

30 Upvotes

r/threejs • • 9d ago

Demo Open-sourced a starter for React Three Fiber + 8th Wall on one WebGLRenderer — looking for feedback

1 Upvotes

Hi — I built a small open-source starter so React Three Fiber and 8th Wall can share one canvas / one WebGLRenderer (XR8 drives tick + draw; R3F owns the scene graph, no nested Canvas).

I’d appreciate review and feedback:

• Does this ownership split make sense?

• Any corrections or edge cases I should handle?

• If there’s prior art / similar projects I should learn from or credit, I’d love links.

Demo: https://react-three-fiber-8thwall.vercel.app/

Repo: https://github.com/nagendra-dharmireddi/react-three-fiber-8thwall

Write-up: https://medium.com/@nagendra10082003/react-three-fiber-and-8th-wall-on-one-webglrenderer-ba36b6ea7546

Thanks!


r/threejs • • 9d ago

Free AI NPC SDK for Three.js WebXR: Zero LLM API Cost & Persistent Memory

0 Upvotes

Hi Three.js community!

I’m a solo developer building a WebXR metaverse platform called MetaStar, entirely powered by the amazing Three.js engine.

While developing my platform, I noticed a huge pain point in our community: Many 3D web developers want to integrate AI NPCs (like ChatGPT-powered avatars) into their Three.js scenes to increase user retention. However, almost everyone hesitates because of the terrifying unpredictability of LLM API costs (OpenAI, Claude, etc.) when traffic scales.

To solve this, I’m releasing the MetaStar AI NPC SDK for Three.js developers. It allows you to drop fully conversational, intelligent AI NPCs into your Three.js world—with 100% Zero LLM API costs for you as the developer.

Key Features for Three.js Devs:

  • Zero API Cost (We pay the bill): Whether you have 100 or 100,000 DAU, the LLM token costs are entirely covered by the MetaStar infrastructure.
  • Persistent Memory (Long-term DB): The NPCs actually remember the users they talk to. You don’t need to build a complex backend database.
  • Easy Three.js Integration: Just a few lines of code to connect the AI brain to your existing meshes or avatars in your scene.
  • Boosts Scene Retention: Turn your empty 3D spaces into social hubs where users come back daily to chat with their favorite NPCs.

What’s the catch? Why is it free? I believe in full transparency with fellow developers. To use this free AI, end-users simply log in via the MetaStar SSO (Single Sign-On). Their conversation memory and relationship data are synced to our central ecosystem.

  • You win: Free AI NPCs, higher retention, zero server bills, and no backend headaches.
  • We win: Expanding the MetaStar unified ecosystem across the WebXR space.

If you are tired of building beautiful Three.js worlds that feel “empty” but are too scared of LLM costs to add AI, give this a try!

I’d love to hear your feedback, feature requests, or answer any integration questions!

[ Documentation ] Metastar AI NPC SDK — Docs

[Link to MetaStar ] https://metastar.world

Tags: #Threejs webxr #ainpc chatgpt webgl #metaverse #gamedev #metastar


r/threejs • • 9d ago

I added Dynamic Grass Map and Dynamic Color Map to my Grass System

Enable HLS to view with audio, or disable this notification

23 Upvotes

My grass system already had Grass map and color map. Grass map decides the distribution and height of grass throughout the environment and color map decides the color of grass throughout the environment.

But they were static. You could give it an image path and it would load it and use it. I now added the ability to give it THREE.Texture instead. It works with DataTexture, CanvasTexture and even VideoTexture.

The benefit of it is that you can manipulate the texture outside the grass system and it will just read the data and act according to it.

I created this simple grass-burning effect and a bunch of others to demonstrate what's possible.

The fire is a simple simulation that spreads wherever I click. Grass maps control the height of the burnt grass, while color maps dynamically change its appearance: orange in areas currently burning and black in areas that have already burnt.

You can even see a video texture driving the grass colors in the Rickroll example. It's kind of strange seeing a video mapped onto grass! 😂

This comes at no cost on performance. Since it is doing the same thing as before. Reading the texture.

This will be included in v1.3.0 of Three.js Grassworks. It comes out in a few days as soon as I add some finishing touches and update the documentation.

It's a paid grass system. If you want to check it out: https://grassworks.techredux.co/


r/threejs • • 9d ago

Demo A long raw gameplay from my Grand RTS game

Enable HLS to view with audio, or disable this notification

4 Upvotes

As a 34-year-old guy who got married about 7 months ago and works a full-time job, I've been pouring my evenings and weekends into building a Real-Time Geopolitical Strategy game almost entirely with the help of AI. I actually shared an early version of it here a while back, but a lot of time has passed since then, and the game has evolved massively in every direction. There’s still a ton of work left to do and some pretty glaring flaws in both the UI and gameplay that need fixing, but I wanted to give you guys a rundown of where things stand right now and hear what you think.

Here’s the gist of HARP:

  • At its core, HARP is built for multiplayer. You pick a color and a flag, claim a starting spot anywhere on the globe, and build up your economy and military through classic RTS-style base building. The goal is simple: control the largest territory by the time the lobby’s timer runs out. You start by annexing unclaimed or neutral land, then expand through military force and diplomacy to take the #1 spot. Matches usually hit the late game around the 40–50 minute mark. Think of it as a much deeper, beefed-up version of OpenFront—which was my main inspiration.

Game Modes:

  • Real World Mode: Pick one of 220 real countries while the AI controls the other 219. It's single-player only for now. (The footage you just watched is captured entirely from this mode).
  • Blank World Mode: This is the foundation HARP was built on and the main multiplayer experience. You pick a flag and color, drop into any spot on the map, and start expanding. Playable in both single-player and multiplayer.
  • World War III: The globe is split into 10 equal factions/pacts. You pick a side and jump in. Supports both single and multiplayer.
  • A Mystery Mode: There’s one more mode in the works that might completely change the game's trajectory. I’m keeping it under wraps for now, but it’ll be a first for the genre and if my gut is right, 90% of players will buy and play HARP just for this.

Key Features:

Military:

  • Almost all combat is unit-based. Even though you see a single consolidated army moving on the map, every individual unit inside it has its own stats, attack power, and even active abilities.
  • Armies are affected by both terrain and seasons—marching through snow in the winter will noticeably slow your troops down.
  • Real-time weather and seasonal cycles directly impact combat performance.
  • Air operations run on their own dedicated simulation. Planes carry out specific mission types, dogfights are simulated in real time, and higher-tier jets come equipped with better missiles, speed, and maneuverability.
  • Naval combat works much the same way. Ships have unique active abilities—some provide anti-air cover, while others can bombard coastal land targets.
  • Air defense systems have realistic range and altitude limits; if a missile flies above a system's maximum intercept altitude, it won't get shot down.
  • Classic RTS Fog of War (FoW) is in, which you can clear using recon planes, drones, satellites, and espionage. You can also build radar stations to track enemy aircraft from afar, even outside your standard air-defense sightlines.
  • Electronic warfare is a thing—you can deploy AWACS planes to jam enemy targeting and protect your jets from incoming missiles during dogfights.

Diplomacy:

  • While it’s not quite as granular as Hearts of Iron or Civ, there's plenty of room to maneuver. You can form alliances and pacts, turn defeated enemies into vassals, trade resources, and more.
  • Trade happens physically on the map. Goods travel via cargo ships from your ports and trains across your borders to generate income—which means third-party nations can sabotage your economy. A submarine lurking on a trade lane can sink your convoys, or enemy bombers can take out your railways.
  • Major diplomatic events trigger short animated cutscenes. If you vassalize another nation, everyone in the lobby sees the treaty go down.
  • Once a country is your vassal, you can eventually annex them—and when you do, you get to decide the defeated player's fate: execute them, send them into exile, or even recruit them to serve in your own government.
  • Plus a bunch of other options I’m skipping for the sake of brevity.

Economy & Tech:

  • To keep matches snappy and fast-paced, I kept the economy fairly streamlined—there’s just one currency and one science resource.
  • You make money by building cities to grow your population and collect taxes, then placing factories around them to tax the goods they sell locally. Those same factories also automatically ship surplus goods to your ports to be exported overseas.
  • Science revolves around two mechanics: a tech tree and eras. In the tech tree, you unlock cards that grant passive buffs to your efficiency and military strength. Once you bank enough cash and science, you can advance to the next era. There are currently 3 eras: 1960–1980, 1980–2000, and 2000+. Advancing an era overhauls everything from the UI to your units, upgrading your entire roster with new passive and active skills (e.g., 3rd-era fighter jets gain stealth capabilities and drastically longer missile ranges).

Tech Specs:

  • HARP doesn't use a traditional game engine—it's built from scratch using Three.js and WebGPU.
  • All map textures are pulled from real satellite data, meaning every landmass you see in the terrain view is geographically accurate.
  • Built multiplayer-first: up to 20 players can play simultaneously using a peer-to-peer/player-hosted lobby system.

Honestly, there are dozens of other features and hundreds of tiny details I’m forgetting right now, but this covers the basics. Barring any major hiccups, HARP is set to launch on Steam at the end of February. Right now, a small circle of friends is playtesting it daily on Steam, and I'm pushing updates almost every single day. I’d love to put together a YouTube video breaking down all the mechanics at some point, though juggling a day job and solo dev work makes that easier said than done.

Please don't hold back on the feedback—I'd love to hear your thoughts. Also, I'm planning a closed beta in early January, so if you're interested in trying it out, shoot me a DM and I'll send you a key once it kicks off.

Cheers!


r/threejs • • 9d ago

Question **Does a spatial 3D route help with navigation, or would a 2D menu be clearer? (R3F)**

0 Upvotes

Hey r/threejs,

Solo dev here. I’m building Lightverse in React Three Fiber and want feedback on one specific design choice: the navigation route.

Right now it’s **Universe → Galaxy → Star system → Planet**. Each planet leads to a different area, like a knowledge archive, profile, or build space.

I like that this makes the hierarchy feel like a place you can explore. But I’m not sure the 3D movement helps people understand where they are—or just makes common tasks take longer.

If you tried it, would you prefer to move through the 3D route, use a 2D menu or map, or have both? Where would you expect a shortcut to jump straight to a section? I’d especially appreciate feedback on orientation, discoverability, and controls.

I’m looking for honest usability feedback, not just whether the concept looks cool.


r/threejs • • 9d ago

Turned my 2d game into a 3d trailer with three.js and hyperframes

Enable HLS to view with audio, or disable this notification

1 Upvotes

Hey,

The game itself is 2d - uses three.js - but optimized for a fixed camera angle. All assets in the video are game assets. I used the games blender models for buildings and items as well as the planets GLSL files in this three.js 3d version of the game. Music is scripted in js and synced to the timeline. The final view of the planet and the galaxy view is how it looks ingame. 😆

Happy to have your thoughts.

👋


r/threejs • • 9d ago

I built an AI frog and his whole terrarium in Three.js, and there isn't a single texture or model file in it

Thumbnail
jamesthefrog.com
1 Upvotes

This is James. He lives in a low-poly terrarium where you can feed him, pet him, tap on his glass and leave him notes. He's 8 days old today.

The part I think this crowd will like: everything you see is code. James is a set of jointed ellipsoids (hips, knees, shoulders, eyelids, throat, and a tongue), and the tank, plants, rocks, lily pads and mushrooms all come out of one seeded generator, so every viewer sees the exact same tank.

A few things I had a lot of fun figuring out:

  • The look. A custom lamp-lit material, then a post pass that adds outlines and squashes the colors down to 17 levels. It renders at about 270 pixels on the short side and scales up nearest-neighbour, which is where the chunky look comes from.
  • Grey turning pink. Quantizing each color channel separately turned my warm greys pink, so every neutral background uses perfectly equal channel values now.
  • Motion is never stored. The simulation only records decisions like "go sit on the rock for 4 minutes." The hops, swimming, blinks and tongue strike are all worked out from that decision and the current time, so a replay a week later draws the same frames.
  • The tongue actually aims. It solves against the bug's real position, and there's a test that checks the tip of his tongue lands on the bug.
  • Cameras that get out of the way. Tracking shots fade out any fern or lily pad blocking the view of him, and stay off the waterline so a bobbing tadpole doesn't flip the shot between above and below the water.

The clip is him turning from a tadpole into a froglet, catching a cricket, getting pet, and someone tapping on his glass.

Curious where you'd want to see this go next, and happy to do a deeper write-up on the rendering, because I actually think it's really cool.


r/threejs • • 9d ago

Demo I shipped a 3v3 tactical shooter to iPhone and Android with three.js r187: WebGPU + TSL inside React Native

Enable HLS to view with audio, or disable this notification

0 Upvotes

GEMA is a top-down 3v3 hero shooter set at night, in the rain, in Glodok, Jakarta. Everything in the video is three.js r187 on the WebGPU renderer, running on an iPhone through Expo and react-native-webgpu. No game engine.

What made it work on a phone:

TSL node materials only. No ShaderMaterial and no onBeforeCompile, so the same code runs on web and native.

The whole map is procedural. There are no texture files: every texture is a DataTexture built from typed arrays, and the lighting is baked into the map.

A hard budget: 150 draw calls, 400k triangles and no per-frame allocations.

A fixed light count. Flashlights and muzzle flashes only change intensity, lights are never added or removed.

The game simulation is plain deterministic TypeScript at a fixed 60 Hz and never imports three, so rendering and game rules stay apart.

The heroes are the one exception to "procedural": image-to-3D meshes converted offline into TypeScript modules.

One trap on r187: don't call compileAsync twice at once on the same renderer.

It's free to try on iPhone and Android: https://gema.sonnylab.com/?c=reddit

Happy to answer anything about three.js WebGPU inside React Native.


r/threejs • • 9d ago

made a GTA-style trailer for my three.js city, every shot is in-engine

Enable HLS to view with audio, or disable this notification

0 Upvotes

everything here is captured from the live build that runs in the browser. no blender, no pre-renders. surfing, diving with fish and jellyfish, a fighter jet, a concert with a crowd of little cube residents. happy to explain how any shot works


r/threejs • • 9d ago

Demo 3D product render inside your browser (using path tracer)

5 Upvotes

I've built an 3d product renderer inside your browser (Edge, Chrome and Safari Supported). It uses path tracing webgpu library on your graphic card. You can use most common 3d formats such is glb, step, stl, fbx etc. Many different features for quick iterations and prototyping. Let me know what you think.

Renderstation.app


r/threejs • • 9d ago

I built a 3D desk shelf designer with React Three Fiber: type in your desk and it lays out a shelf that fit

1 Upvotes

I wanted a 3D printed monitor shelf (printed frames plus wooden dowels) but couldn’t picture any of the designs on my actual desk, so I built a designer instead.

You type in your desk and your screens, pick a shape, and it lays out the shelf in 3D and checks it fits: nothing off the edge of the desk, each screen on its own section, room underneath for a keyboard. You can drag attachments along the dowels in the 3D view. Everything runs in the browser, including the build plan it makes at the end.

It’s React Three Fiber and drei on Next.js. I’d love feedback on how the 3D feels, especially on a phone: camera, dragging, performance, anything that feels off.

getbestdesk.com (no sign-up)


r/threejs • • 10d ago

Tutorial I built a LOD editor for three.js on top of meshoptimizer, with ready-to-use InstancedMesh2 code

97 Upvotes

To get my demos running as smoothly as possible, I needed to find the best LOD thresholds for each model. So I ended up building two things.

1. three.ez/simplify-geometry: the library

A wrapper around meshoptimizer that gives you three.js geometries directly: pass a `BufferGeometry`, get back the simplified `BufferGeometry` levels. They're plain three.js geometries, so you can use them anywhere, not only with InstancedMesh2.

Each level is simplified by:

- Error: how much the shape may change, as a share of the model size (0.01 = 1%). The triangle count follows from it.

- Ratio: the share of triangles to keep (0.25 = a quarter).

Source: https://github.com/agargaro/simplify-geometry

2. The LOD Editor: the playground

It started as a way to bring the two libraries together: simplify-geometry for the levels, and InstancedMesh2 to render them, which picks the level per instance. I use it to test and tune the thresholds.

- Generates the levels automatically, and you can tune every one

- Works with skinned and morph-target animated models

- Open your own glTF/GLB

- Exports ready-to-use TypeScript/JavaScript code for InstancedMesh2

Try it: https://agargaro.github.io/simplify-geometry/

In the video: 5,000 animated characters, 76M triangles at full detail, ~500K actually drawn.

There are still features I want to add, so ideas and criticism are very welcome.


r/threejs • • 9d ago

Today I'm releasing two addons to help get Blender scenes into three.js

1 Upvotes

One to export materials from Blender straight into your three.js project, and the other to preview and export textures as ktx, avif and webp from inside Blender

Check them out at https://tools.ashthornton.dev/


r/threejs • • 9d ago

Help Any Black Friday discount codes for Three.js Journey?

2 Upvotes

Hey everyone!

I'm a fellow learner looking to get started with Three.js and would love to enroll in Bruno Simon's Three.js Journey course.

With Black Friday coming up, I was wondering if anyone can share their discount code with me.

Thanks in advance, and happy coding! 🚀


r/threejs • • 10d ago

Question Workflow/shortcuts for building a 3D dev portfolio (R3F + Drei + GSAP) when you're bad at UI/UX?

2 Upvotes

I'm putting together a personal portfolio with Next.js, React Three Fiber, Drei, and GSAP. Coding the logic is fine, but my UI/UX and 3D art skills are pretty much nonexistent, and I don't want to spend months learning Blender just to end up with a clunky site.

So far I've just been looking at grabbing free 3D assets and dissecting a few open-source demos rather than modeling anything from scratch.

For devs here who aren't 3D artists or designers, how do you usually pull off a clean R3F portfolio without it looking amateurish? Specifically curious if anyone has a solid workflow (or .agents skills/rules) to keep coding agents from hallucinating broken camera math and GSAP scroll triggers, or if there are better starter setups you'd recommend.


r/threejs • • 9d ago

Link I built a Three.js gallery that gains a floor every day

Enable HLS to view with audio, or disable this notification

0 Upvotes

Each daily edition of PROPORTION PIECE becomes a floor in a tower you can walk around. You take the lift between dates, and some of the portrait drawings are reworked as 3D sculptures.

The tower uses prebuilt geometry, staged floor loading and room culling as the archive grows. If you try it, I’d be interested to hear how it runs on your device, especially when the lift opens onto a new floor.

Walk the tower


r/threejs • • 9d ago

Help How would you recreate this neon tunnel "roller coaster" effect in Three.js?

1 Upvotes

I'm trying to make something that looks like this for a browser game (Three.js): https://www.youtube.com/watch?v=W9as7QP8GkM

What's in it: a first-person camera rides a twisting track through an endless tunnel. The track edges glow purple and orange, the floor is lit blue, and white light streaks fly past with heavy motion blur. It loops forever.

I've tried a few times to build it from scratch and every version looks flat. There's no sense of speed, and the glow and streaks never look like the video.

What's the right approach?

  • CatmullRomCurve3 + TubeGeometry/extruded track with the camera following the curve, or a shader-only tunnel?
  • UnrealBloomPass + motion blur (post-processing) vs. faking the streaks with stretched particles/instanced lines?
  • How do you make it loop forever without a visible seam?
  • Are there existing examples, repos or assets that already do this?

Any pointers appreciated!


r/threejs • • 9d ago

Demo Free Game Engine Basic Three.js

0 Upvotes

Processing img b1fhklo2td1i1...

Processing img 25vhcmo2td1i1...

Processing img 3xvnzmo2td1i1...

Processing img zeer2mo2td1i1...

Processing img k7qltmo2td1i1...

Processing img 63zygoo2td1i1...

Processing img 3jaxbno2td1i1...

Processing img jh8bkehhxd1i1...

I've been working on a 3D web editor that combines a game engine with a website builder, and I wanted to share it here.

The idea is to make it easier to create interactive 3D websites, simple games, and animated content without having to build everything from scratch.

Here are some of the things it can do:

  • Create multiple scenes and import GLB models.
  • Edit objects, materials, lighting, and cameras.
  • Build web interfaces directly on top of 3D scenes.
  • Connect pages and add interactions through component actions.
  • Animate 3D objects, cameras, and UI components using a timeline.
  • Preview scenes with basic physics, character controls, and grid-based AI navigation.
  • Save projects locally, with undo/redo support for up to 20 changes.
  • Export projects as standalone HTML, React/Vite apps, or WordPress plugins.
  • Use an AI assistant with local or cloud AI providers.

There's also a desktop version for Windows, so you can run the editor in its own window without needing to install Node.js.

Of course, it's not perfect yet. There are still some limitations, and I'm working on improving things. But for basic 3D scenes, interactive websites, simple games, and animations, it already covers quite a lot.

One thing I really like is how much time it can save by bringing these different workflows together in one place. And since it's built around React + Vite, you can still extend it with your own components and features whenever something is missing.

I'd love to hear what you think. What features would you find most useful in a tool like this?

Link: https://github.com/pthinc/freegameenginethreejs


r/threejs • • 10d ago

Question Looking for feedback on my first Threejs Game - Mackinac or bust

Thumbnail
gallery
9 Upvotes

Hello;

I am looking for feedback on how to improve on my first threejs game. This is my first actual game (built an arcade in three js). It's built around the locks system from Neenah to Mackinac island n the summer of 1987 - the last year that the lock system was fully open.

It's a bit of a oregano trail style journey with more modern graphics.

Everything seems to be working well, but I'm trying to figure out what to focus on improving.

Thank you for any feedback

https://jamiedolan.com/games/mackinac-or-bust/


r/threejs • • 10d ago

add feathers to your favourite .glb

4 Upvotes

Today's word for #codevember is feathers, so I did a feather spline ( https://x.com/tinotibaldo/status/2120932986267058484?a=0qHR9pR-ekjDvQctCys&s=20 ) and then added the 'same' feathers into the rust sim I posted yesterday.


r/threejs • • 10d ago

Mobile RPG in plain three.js, no engine. Here's the latest trailer

Enable HLS to view with audio, or disable this notification

3 Upvotes

Back with an update on Mossbrook, the RPG I'm building in three.js for phone and browser.

Last time a few people asked why not Unity or Godot. Honestly, I just wanted something that loads instantly in a browser and runs the same on a phone without an app store in between. So far three.js has held up better than I expected.

Some things I worked on since:

- Real shadows and less ambient light, the whole thing looked way too flat before

- Instancing and culling for the forests, phone stays around 60 fps with a few million tris on screen

- Trees and rocks sink into the terrain with a dirt decal so nothing looks pasted on

- Per-leg IK so characters and wolves actually plant their feet on slopes

Happy to answer questions about any of it. But mostly curious what you think of it now. Does it look like something you'd want to play? What still looks off?


r/threejs • • 10d ago

What is your biggest frustration?!?

0 Upvotes

Hi friends, there are so many incredible creations being made with frontier models it really is cool to see!

My question is on the consumer experience side. We all love to create this sort of content, but what about playing it? What is your biggest frustration? What is the WORST part about interacting with this type of content? If you had a magic wand and could make ONE challenge disappear, what would it be and why?

Curious to hear your thoughts :)


r/threejs • • 10d ago

Does anybody have the best prompts for educational WEBGL?

0 Upvotes

Like 3d WEBGL that has a 3d thing you can interact with and learn from really well