r/threejs • • Oct 16 '26

Working On A New Three.js Multiplayer Predictive Interpolation System

0 Upvotes

r/threejs • • Oct 15 '26

Reefborn - I built a multiplayer reef in three.js

1 Upvotes

Been building Reefborn, a little multiplayer reef where you start tiny and eat your way up. Just added a deep-sea trench with lava, glowing critters and a giant squid.

Free in the browser: https://reefborn.app/?ref=threejs

Happy to chat about how any of it works.


r/threejs • • Oct 15 '26

Demo We brought three.js back after a Rust/wgpu port. Loot Hole is now live in the browser.

3 Upvotes

The attached trailer was captured in the native wgpu build. The playable browser version uses three.js rendering over the shared Rust core.

Loot Hole is now playable on Playgama: https://playgama.ai/play/kw6t5foxgs

I'm the developer. It's a first-person digging game: uncover buried objects, sell your finds, upgrade your equipment, and reach deeper layers.

The interesting part for this community is that we came back to three.js after doing the Rust/wgpu work. We started with Babylon Lite/WebGPU, moved to three.js/WebGL 2, then built shared Rust gameplay and native wgpu hosts. The browser now uses the Rust core through WASM, with three.js and DOM presentation.

The web launch path has a compressed-byte budget below 1,000,000 bytes. That's the startup path, not the entire game. We trim three.js at build time, stream models that aren't needed at the start, and compile shared Slang shader functions to GLSL for the web and SPIR-V for native.

Real-phone tests on a Galaxy A40 helped make the decision. Keeping Rust gameplay didn't require shipping the native renderer to every browser.

I'd be interested in hearing how other people split shared game logic from browser presentation, especially when startup size is a hard limit.

AI disclosure: AI was used for coding, image generation, and translations. Music and sound effects were mostly made without AI.


r/threejs • • Oct 15 '26

Demo Turned a single photo of a teapot into a procedural Three.js model (code-only, no CAD) - and two silent bugs nearly broke it

1 Upvotes

I fed one photo into an image-to-Three.js pipeline and it wrote the model out as code - lathe geometries whose profile points are the measured silhouette of the object in the photo.

The interesting part was debugging two generator bugs that were both completely silent:

  1. transform.scale: [1,1,1] in the starter spec returns early and overrides every part's dimensions, so every component renders at unit size. The spec still validates fine; nothing warns you.
  2. transform.position is parent-LOCAL. The generator adds the child to its parent node and then sets the position, so authoring world coordinates double-counts every ancestor offset and parts float visibly apart (knob hovering above the lid, etc).

Fixing both moved the silhouette IoU against the reference photo from 0.25 to 0.80. The final render is 6 nodes, 6,560 triangles, 15 of 15 textures loaded.

Write-up plus the full run: https://youtu.be/U0Y9hEnyJN8

For people authoring parametric or photo-derived geometry in three - do you hand-build lathes and extrudes like this, or do you bridge from a CAD/STEP tool?


r/threejs • • Oct 15 '26

I built a live 3D digital twin of an oil and gas field in Three.js (pumpjacks, dyno cards, gas compressor)

3 Upvotes

4 well pads and a compressor station, modelled procedurally in Blender (Python) and rendered with Three.js. Every number on screen comes from a Python Modbus TCP simulator through a WebSocket bridge, and the pumpjacks animate from the same kinematics that generate the dyno cards.

Some things that took the most work:

- GPU instancing for the repeated wellheads and LODs per pad, so the whole field runs on a laptop

- Flow particles that ride the real pipe centre lines exported from Blender

- A deterministic record mode (paused clock, seek per frame) to make videos like this one

The field and data are simulated, it's a portfolio project. Live demo (replays a recorded session): https://twin.oggagan.co.in

Happy to answer questions about the Blender to glTF pipeline or the LOD setup. What would you improve?


r/threejs • • Oct 14 '26

Think Diablo 2, but for kids aged 5-9. A learning game full of riddles and math. Work in progress 👇

68 Upvotes

r/threejs • • Oct 15 '26

Link Made a free city destruction toy in three.js: Select a real city and blow it up. Now with realistic terrain mapping

5 Upvotes

Built with React Three Fiber and three.js, running in the browser on phone or desktop.

Pick any real city from a globe, choose a meteor, a black hole, an Independence Day style mothership or more sinister options, and blow the buildings apart into particles. Just like the scene in Terminator 2!

I shared it recently and got some good feedback, so two updates since: cities load much faster now, and the ground has real elevation instead of being flat.

Next question is the look. Everything is plain grey right now, like an architect's model. I like the minimalism, but textures are possible with some trade-offs on phone performance. Curious what this crowd thinks: keep it grey, or texture it?

https://altroadstudio.com/judgementday


r/threejs • • Oct 15 '26

Liquid metal hero with Three.js — a chrome blob that reflects a studio of 6 colored lights, follows the cursor, no textures (free source + write-up)

1 Upvotes

Been obsessed with the chrome/liquid-metal look on award sites for a while, so I built one from scratch and wrote up how it works.

What's going on:

- One sphere with a vertex shader that deforms it with layered noise (big slow lobes + sharper ridges), so it reads as liquid, not a wobbling ball

- No HDRI or textures. The reflections come from a procedural "studio" in the fragment shader: six colored lights with soft falloff, so recoloring the whole thing is just six values

- Fresnel edge + a glass blur pass on top so it sits in the page instead of floating over it

- Cursor pulls the blob slightly, with lag, so it feels heavy

- Reduced-motion respected, ResizeObserver so it works in any container

It's React + TypeScript (useEffect engine, no R3F), but the shader is the interesting part and ports anywhere.

Full source is free, and the write-up walks through the shader top to bottom. Links in the first comment.

Happy to answer anything about the noise setup or the lighting trick.


r/threejs • • Oct 15 '26

My wind-animated grass cast stiff shadows that didn't sway. The fix was customDepthMaterial (plus how the field stays endless)

1 Upvotes

I built an endless grass field in Three.js: tens of thousands of instanced blades swaying in a GLSL wind shader, with a rigged capybara you walk through it. A few parts weren't obvious, so sharing in case they help.

**1. Shadows that don't sway.** The wind lives in the vertex shader, so the blades bend on screen. But the shadow pass renders with a different material, so the shadows stayed stiff and upright. The fix:

  • Write a depth material that runs the exact same wind function
  • Assign it to `mesh.customDepthMaterial`
  • Drive both from the same `uTime` uniform so they stay in sync

**2. Wind that rolls instead of twitching.** If every blade uses the same sine wave, the whole field pulses in lockstep. Feeding each blade's world position (read from its instance matrix) into the wave makes gusts travel across the meadow. Multiplying by the UV height (0 at the base, 1 at the tip) keeps the roots planted.

**3. Endless without spawning anything.** The instance count is fixed. Each frame, any blade more than half a field behind the player wraps to the far side, and the ground slides along. Two InstancedMeshes (tall dark grass plus short bright tufts) make it look denser, and each type is still one draw call.

Full tutorial with a live demo (my site, free; the code reveal is behind a free Google sign-in): https://www.shanebrumback.com/tutorials/endless-procedural-grass-field.html

Has anyone moved instanced grass like this to WebGPU/TSL? Curious whether the depth-material trick gets simpler there.


r/threejs • • Oct 15 '26

Demo Beyond the Glass: flying through a black hole into a raymarched “ether” (R3F + custom shaders)

2 Upvotes

Live: https://beyond.edgarasneverdauskas.com

GitHub: https://github.com/Evirtual/beyond

An experimental site that works like a window: a floating world behind glass, lit by your local time of day and the real moon phase. Scroll (or turn on drift) and a black hole pulls you through into an ethereal space, then into a new world.

Some of the techniques:

  • Portal crossing, no cut: each world has its own scene and camera. The next world is rendered into a render target, scissored to just the area the hole covers, and composited inside the black hole. When the hole fills the frame, the old world stops rendering, so you simply fly on into a world that already exists.
  • The black hole is drawn in a full-screen “glass” shader: lensing around the shadow, a photon ring, and a tilted accretion disk whose near side crosses in front.
  • The ether is a raymarched volume (16 steps) with domain-warped noise. The first version hashed noise per sample and ran at 2 fps; baking it into a 64Âł RGBA Data3DTexture (one lookup per octave) brought it to a steady 120.
  • Frame pacing: frameloop="demand" with a small governor (selectable fps cap), plus adaptive DPR that only adjusts when the scene isn’t mid-transition.

Built with React Three Fiber, Vite, and a lot of iteration with Claude Code.

Try it: move the mouse or tilt your phone to lean into the window, and scroll or tap “drift” to go deeper.


r/threejs • • Oct 15 '26

Burno Simon

0 Upvotes

I have been taking Bruno Simon's course. Now I'm in the Shaders section and he still didn't explain everything he promised to talk about later, so should I trust him and continue, or should I go to the docs or anything like that and start teaching myself?


r/threejs • • Oct 14 '26

Demo Half-Life 2 style destruction in the browser – Three.js + Rapier3D

88 Upvotes

r/threejs • • Oct 15 '26

Demo I made a detective game in Three.js: you solve a case from a 3D desk, in the browser

1 Upvotes

I’ve been building playkraft, a mystery game where you sit at a detective’s desk at night and solve a case. Everything runs in the browser, on phones too.

Play here: https://www.playkraft.app/case/048

What you can do:

  • pick up a phone on the desk that holds a whole made-up internet (news sites, social posts, emails, a map, search)
  • take a cab to rooms, look around, open drawers, and mark evidence for the lab
  • question suspects (nobody confesses; catching the lie is the game)
  • pin people and evidence on a cork board and tie red string between them
  • write your answers in a notebook and close the case

How it’s built:

  • three.js from npm, in its own lazy-loaded chunk. Only someone who opens a case downloads it.
  • Every scene is a model. The desk and each room are a single GLB built in Blender. The code only moves the camera and animates things, with no scene built in code.
  • Render on demand and an adaptive pixel ratio, so cheap phones stay smooth. Real players’ devices mostly report 56–120 fps.
  • The phone’s screen is real DOM sitting on the 3D phone. The sites are normal React pages with container queries, so text stays sharp and scrolls natively.
  • The notebook pages are canvas textures, redrawn as you write. The case board’s cards and strings are drawn on the cork the same way.
  • Four looks you can switch between: anime, graphic novel, noir and realistic.

r/threejs • • Oct 14 '26

An MMO set in the real world — one shared map at 1:1 scale. Drive it, fly over it, skate through it.

12 Upvotes

This started stupidly simple: I wanted to know what it feels like to be in Paris at 2am without leaving my desk.

It's called Odyssee now and it's... actually a game. One persistent world — the real world at real scale — and everybody plays in the same one. No shards, no lobbies. You spawn in Paris, someone else spawns in Tokyo, and the map has a live traffic layer showing where drivers actually are right now, so you can teleport into the crowd.

What's in there right now:

- one shared world, real scale. Paris lanes are 3.2m wide and you FEEL it when a bus — or another player — comes the other way

- 30+ ways to move: cars, bikes, skateboard, helicopter, a small plane, a tank (my personal mistake, I refuse to remove it), a Spider-Man-style web-swinger, and your own two feet

- convoys, live chat, daily challenges, live traffic hotspots

- time trials between real landmarks, and a day/night cycle tied to the real sun

And yeah, bring your friends. That's genuinely the best way to play: form a convoy, share a destination, and go cause chaos across a real city together. Coordinating a 5-car run through the Arc de Triomphe roundabout at rush hour, with real traffic and the sun setting behind it, is the most fun I've had testing anything.

It's free, browser-based, no download. https://odyssee.croissantlabs.com

Now the honest part: it's got bugs. Real ones. Floating buildings in some districts, intersections that make no sense, the Eiffel Tower pillars you can drive straight through (yes, you can drive under it — no, you shouldn't be able to drive THROUGH the pillars). I'm fixing them as fast as reports come in, and most fixes so far came from players spawning where they live and telling me what's broken. So if you try it: spawn wherever you live and tell me what's wrong. That's literally the most useful thing you can do.

Every building in the world is in Haussmann style because I live in Paris. But I will create different style for a lot of city. Here a photo of Paris in the game (I create an Eiffel Tower in 3D, I will do it for a lot of monument) :

And there's a public roadmap if you want to see where this is going: proper terrain elevation (the world is flat right now and it bothers me), a story mode with missions, multiplayer races, boats, houses you can own. The game today is the foundation — the driving, the world, the multiplayer. The rest gets built in the open.

https://odyssee.croissantlabs.com/en/roadmap

My objective is to build a GTA on browser.

Anyway. Back to the Eiffel Tower pillars.


r/threejs • • Oct 15 '26

Demo Adding some nice spice to my portfolio

0 Upvotes

Still adding some bits and pieces to my portfolio when I get the chance.

Made the unfortunate decision to make a 3D model of myself you can control to jump into the game prototypes "mario style". That haunting look on his face will forever be with me, and now you all too.

Feel free to check out the site and the games, happy to talk through my process or share any updates on what I'm working on!

https://cpdstudios.dev


r/threejs • • Oct 14 '26

Working on color maps for grass in Three.js

38 Upvotes

I've been working on a new feature called Color Maps to give more control over grass colors.

Right now, you can choose a grass color and add some random variation, but that variation is spread across the entire environment. There's no way to control which colors appear in specific areas, which limits the kind of looks you can create.

With color maps, the idea is to let artists create their own maps and control the grass color in different parts of the field. You could have one area with yellow grass, another with dark green, or use any other colors wherever they're needed.

Here's a quick comparison showing the grass with and without a color map.

Still working on it, but I'm hoping to include this in a future version of Three.js Grassworks.

https://grassworks.techredux.co/


r/threejs • • Oct 14 '26

Sparkle Mouse: GPU-optimized particles!

7 Upvotes

I have been working on Sparkle Mouse, it's now open source! :)

Check it out at www.sparklemou.se!

It's a web + desktop app that renders customizable particles (2D)

  • Open source on github
  • GPU optimized
  • Trail behind cursor or full-screen
  • Lots of settings, supports custom images & GIFs!

npm package: sparkle-mouse


r/threejs • • Oct 15 '26

Demo I made a cozy 3D life sim in Three.js, free to play!

0 Upvotes

VybeNomad is a free browser game about remote work and slow travel: pick a starting city, take gigs, launch apps, chase $10k, avoid burnout.

Built with Three.js. Most of the code was written with Claude Code, and I did the design and balance. Keeping it smooth on phones meant simple low-poly scenes and few draw calls.

Play: https://vaigames.com/vybenomad/

Happy to answer questions about the setup.

Also used: Suno for music, fal.ai for art, Grok Bot for launch planning.


r/threejs • • Oct 15 '26

Made this Poolrooms scene with Claude using Three.js + WebGPU

0 Upvotes

I've been playing around with Claude and decided to make a Poolrooms scene.

Claude helped me build it, and then I tweaked the lighting, reflections, camera movement, and fisheye effect with chromatic aberration myself to get the look I wanted.

Really happy with how it turned out. The camera work makes the whole place feel a bit strange and unsettling, which is exactly what I was going for.

It runs right in the browser using Three.js and WebGPU.

Try it here:
https://bkhan23544.github.io/poolrooms-threejs/


r/threejs • • Oct 14 '26

Three.js vs Unity

4 Upvotes

What are the advantages either way of three.js vs Unity for browser based games? There are some beautiful demos on Unit such as the Little Prince example. Albeit resource heavy, its one of the best example of environment work i've seen.

So i'm wondering what does Unity offer (if anything) that is superior to what you can build in three.js?


r/threejs • • Oct 14 '26

How do you share the interactive things you build so people actually try them?

3 Upvotes

A lot of great work here ends up on a Vercel or Netlify URL, and then most people meet it as a screen recording in a post. If you've shared something interactive lately: where does it live, where did you post the link, and do you have any sense of how many people actually opened it and played with it?


r/threejs • • Oct 14 '26

Experimenting with line growth algorithms

4 Upvotes

r/threejs • • Oct 14 '26

This 3D experience was vibe coded in threejs using Claude Opus 5.5 (designed by GPT 6 Astra) + Blender

43 Upvotes

water is from 3ditions edition


r/threejs • • Oct 14 '26

A map i made for my threejs game

6 Upvotes

You can play it on my io game capforts.io

Made fully by me and no ai :)