r/threejs • • 22d ago

Three.js r187 released 🍎

450 Upvotes

r/threejs • • Sep 08 '26

Three.js r186 released đŸ„

277 Upvotes

r/threejs • • 2h ago

My office is now a level in a toy-plane dogfight game (made from 40 phone photos)

13 Upvotes

As a kid I loved alot Airfix Dogfighter where toy planes fight inside a house. This week I tried to make one set in my own office instead of a made-up map.

How I took the photos

iPhone 15 Plus, so no LiDAR and no scanning app. Just the normal camera.

  • I walked around the room at standing height with the 0.5x ultra-wide lens until every wall and corner was covered.
  • Then I crouched down and took a set of low shots from about knee height: what a toy plane would actually see flying under the desk and along the sofa.
  • Last, a few 1x close-ups of the things with texture: the desk wood, the rug, the sofa fabric, the printer.

About 40 photos in total, all with the same room lights on.

What Fable did with them

  • worked out the room's real size and layout from the photos (the floor tiles helped a lot)
  • pulled the textures out of the photos: rug, curtains, desk wood
  • rebuilt every object in Blender from code: desk, monitors, chair, sofa, gym equipment, the 3D printer
  • moved the room into Three.js and built the game around it
  • made things react to the fight: glass cracks, fabric tears, metal dents
  • did the sound design: music by mood (menu, combat, boss), real recorded effects for each hit

It also turned my 3D printer into an enemy factory that prints tanks, missile trucks, helicopters and jets. That one wasn't my idea.

Single-player missions, and online multiplayer running on a free Render server. It plays in the browser, on phones too.

The video is one take, no cuts. Next I'm photographing the rest of the house so the whole place becomes the map.

Happy to answer anything about the photo-to-level part.


r/threejs • • 11h ago

Solved! Headless Chrome was maxing out all 16 CPU cores on my machine. Here's how I fixed it.

Post image
30 Upvotes

Something I've noticed since using Three.js on a project is how heavily my coding agent relies on headless Chrome to perform rendering checks.

My machine's fans were running constantly, and I mean CONSTANTLY. I checked CPU usage and all 16 cores were sitting at 100%, for hours at a time. Not surprisingly, the machine was becoming unstable and occasionally crashing.

The culprit turned out to be headless Chrome. Depending on its configuration and environment, Chrome may or may not have access to GPU acceleration. In my case, it looked like the 3D rendering workload was falling back heavily on the CPU, hammering all available cores during tests.

The fix: I now launch Chrome through a small wrapper (scripts/chrome.mjs) that uses Linux's systemd-run to limit its CPU usage and lower its scheduling priority:

systemd-run --user --scope -p CPUQuota=1120% nice -n 10 chrome ...

This caps Chrome at roughly 70% of my 16-core machine's total CPU capacity and gives other processes room to breathe. It all happens automatically, so there's nothing to remember.

A couple of useful options:

  • Change the limit: CHROME_CPU=50 node scripts/sample-thumbs.mjs ...
  • Disable the limit: CHROME_CPU=off

One thing worth knowing if you use CPUQuota yourself: the percentage is based on a single CPU core, not the entire machine. So 100% means one full core. On a 16-core machine, 1120% is roughly 70% of total CPU capacity.

This might save someone else a few hours of wondering why their workstation sounds like it's preparing for takeoff.


r/threejs • • 4h ago

Demo Threejs Dunes

9 Upvotes

r/threejs • • 22h ago Mindblown

I made Wikipedia into a game with Three.js. Here’s how it’s looking now.

135 Upvotes

I posted my Wikipedia museum game here a while back and thought you might enjoy seeing how far it’s come.

Since then, I’ve given it a huge overhaul with better graphics, more varied rooms, basic multiplayer and puzzles scattered across the museum. Every Wikipedia article becomes a room, with its links turned into doorways.

I’m aiming to launch The Endless Museum on Steam early next year. Happy to answer questions about how it works!

If you’d like to follow along, you can wishlist it on Steam: https://store.steampowered.com/app/5533190/


r/threejs • • 26m ago

Open Source : Looking for someone to finish my browser-based psychological horror game(HTML/CSS/Three.js)

1 Upvotes

Je suis actuellement Ă©tudiant en informatique et je travaille sur un jeu d'horreur psychologique basĂ© sur le navigateur construit avec du HTML, CSS et Three.js. J'ai atteint un point oĂč je ne peux plus avancer tout seul, donc je publie ce que j'ai et je cherche quelqu'un qui serait intĂ©ressĂ© Ă  le reprendre, le remixer ou le finir.

Le Concept & Histoire

Le jeu commence comme une interface web apparemment normale et minimale—un simple jeu d'Ă©checs—qui se corrompt lentement et brise le quatriĂšme mur au fur et Ă  mesure que vous jouez.

Acte 1 (La Corruption) : L'interface d'Ă©checs bug, entraĂźnant le joueur dans un labyrinthe claustrophobique oĂč il est chassĂ© par une entitĂ© humanoĂŻde.

Acte 2 (La Cabane & La ForĂȘt) : S'Ă©chapper du labyrinthe mĂšne Ă  une cabane isolĂ©e dans une forĂȘt sombre, transitionnant vers un niveau en 3D non procĂ©dural (construit dans Three.js) oĂč le joueur doit explorer et collecter six pages cachĂ©es tout en Ă©tant suivi.

Limitations & Pourquoi je passe le relais

J'ai utilisé de l'IA pour ce projet et le code est littéralement cassé :/

Limites techniques : Garder tout lĂ©ger dans un environnement en un seul fichier/navigateur avec Three.js sans rĂ©duire les performances (surtout en ce qui concerne l'Ă©clairage, le brouillard et la dĂ©tection de collision dans la forĂȘt).

Design des assets & du son : Je suis principalement un codeur/étudiant, donc créer des modÚles 3D personnalisés, des animations et une ambiance sonore complÚte à partir de zéro est devenu un goulet d'étranglement majeur.

Temps : Entre mes études en informatique et d'autres engagements, je n'ai plus la bande passante nécessaire pour donner à ce projet la finition qu'il mérite.

Lien vers le code / https://github.com/alex12-hub/video-game.git

N'hésitez pas à le forker, à décortiquer le code ou à prendre l'histoire dans votre propre direction. Si quelqu'un décide de travailler dessus, j'aimerais voir ce que vous en ferez !


r/threejs • • 19h ago

Plasma ball with MediaPipe: TSL Shaders and WebGPU

33 Upvotes

This one was really nostalgic, I loved these growing up so much. I needed to make it so that I could touch it. I hope you enjoy!

Lightning filaments generated on the CPU and shaded with TSL on WebGPU, glowing inside Fresnel glass with an analytic gas glow, and following fingertips tracked by MediaPipe in a web worker.

Play with it: https://adamwebsite.com/codevember/21-bolt/
Code: https://github.com/acher249/codevember-2026


r/threejs • • 45m ago

I turned a 360° photo of an attic into a Lego room you can visit with friends

0 Upvotes

I had a dream as a kid about playing Lego on the floor with friends. I grew up in Kerala, where Lego wasn't really a thing, so I built it. The room is one 360° photo with a depth map from Depth Anything, rebuilt in three.js. The bricks, toys, sky, snow and Santa are real three.js on top. You can bring three friends in and see each other's cursors. One HTML file, no build step. littledream.vercel.app/?via=r-threejs

Happy to answer how any part works.


r/threejs • • 47m ago

Demo I turned my Claude Code sessions into a live Three.js office. Every sub-agent walks in, works at a desk and walks back to report when it's done

1 Upvotes

Side project I've been building: Agent Office. It reads the local logs Claude Code writes and turns every session into a team lead and every sub-agent into a character that walks in, sits at a role-based desk and reports back when it's done. Idle ones end up on the sofa or the console in the lounge.

Some three.js bits that might be interesting:

- low-poly articulated characters with animations per activity (typing, reading, walking over to a colleague)

- A* pathfinding so they walk around the desks instead of through them

- the monitors are canvas textures that change with what the agent is doing (code, terminal, search)

- the server rack LEDs blink with the share of busy agents, and the floor LED strip turns yellow when someone is waiting on me

- rendering slows down when the tab is unfocused and stops when it's hidden, so it can stay open all day

React 19 + three.js r170, fully local, MIT.

Live demo (made-up data): https://zinkxx.github.io/agent-office/

Code: https://github.com/zinkxx/agent-office

Happy to answer questions. What would you add to the office?


r/threejs • • 1h ago

Demo Built a lightweight 360° 3D & WebAR product catalog in Three.js — would love feedback on mobile load speed

1 Upvotes

Hey everyone! I've been building Follow3D Web (https://follow3dweb.com/catalog) — a browser-based 360° interactive 3D & WebAR product catalog pipeline using Three.js/WebGL for jewelry, furniture, and hardware brands (no app download needed).

Would love honest feedback from the Three.js community:

  1. How smoothly do the 3D models load and orbit on your mobile device?
  2. Any lighting or shader tweaks you'd recommend for gems/metals?

Happy to share technical details or test a sample GLB if anyone is working on similar e-commerce viewers!


r/threejs • • 5h ago

Demo I made a wooden block puzzle in Three.js

2 Upvotes

Tap a block to slide it along its arrow. Drag to look around the stack.

I take blocks out of the raycast targets as soon as they start moving, so their exit animation doesn't get in the way of tapping the next one. The wood grain and arrows are canvas textures.

Play Grain Shift

I wanted taking the stack apart to feel satisfying. Does it work for you? I'd love ideas for new block types or rules, too.


r/threejs • • 7h ago

I built Popfold: scroll-driven 3D "pocket homes" that unfold as you read (open source, three.js)

3 Upvotes

The video is Dopamine Spaces, the first site made with it. For the last few months I've been building Popfold, a three.js engine for pages where the 3D is the story: as you scroll, a little home opens up. A case lifts its lid into rooms, a tower lights up floor by floor, or a pop-up book turns its pages and the paper scenes fold up (they really fold: every piece is posed from the angle of its two pages, so it runs backwards when you scroll up).

Some things that were fun to solve:

  • Folding, not popping. Pop-up pieces (V-folds, box folds, stands) are posed every frame from the two page angles, so they never cut through a page.
  • Repeatable stills. A headless Chrome captures one picture per beat, and a capture is kept only when two shots agree, so popfold stills --check works as a visual test.
  • A page without 3D. The same HTML gets the stills and every story written in, for search engines, screen readers and people without WebGL.
  • A studio that moves, adds and restyles pieces and saves them into a JSON file (and an MCP server, so an agent can do the same).

Examples:

Code (MIT): https://github.com/popfold/popfold · pnpm dlx u/popfold/engine init my-site

It's alpha: things will break before 1.0. Feedback on the API and the docs very welcome.


r/threejs • • 2h ago

Using threejs for a Berlin city driving game

Post image
1 Upvotes

I’ve had a few ideas over the years that I never thought I could build on my own. With a bit of time and some help from AI and threejs, I’ve been able to make them reality. This is far away from a professional game and I will not monetize it. In fact, it's an open-source one-person passion project with open code.

I the beginning, it all started with a question: what else could you do with Berlin’s 3D mesh provided by the city government and the datasets the city provides as open data? Then I thought, well, why not make a GTA-inspired driving game out of it, but with a way more relaxed vibe solely focussed on the city and its sights?

Driving Berlin is a laid-back driving game where you can take a car through a 3D digital twin of Berlin. If you want, you can collect bear items along the way or find the numerous easter-eggs I included. Pick a street, take a turn, and see what you recognize along the way.

The game runs in your browser on mobile and on faster laptops and desktop PCs. The code is open source. I am happy for feedback and questions, I have to admit testing it fully as one person is close to impossible. Surely you will discover quite a few hiccups here and there.

Take a drive through Berlin


r/threejs • • 12h ago

I built a walkable art museum with Three.js to learn art history

5 Upvotes

I’m an indie developer who wanted to learn art history. I could picture paintings I liked, but I rarely knew whose name to search for. That’s why I built Galler around walking into a room and stopping at whatever catches your eye.

The clip shows the transition from the homepage into the museum. If you have a desktop browser handy, try the entrance. What’s the first thing you try when you want to walk up to a painting? I’m curious where the camera or controls do something you didn’t expect.


r/threejs • • 8h ago

Link A volumetric clay sculptor in Three.js with curve and radial tools

2 Upvotes

I'm the maker of Clayground, a browser clay studio built with Three.js. This update adds a Curve tool: draw a path to lay a tube, or spin a profile into a cup, vase or hat. Gizmo moves, turns and sizes a layer, and can repeat it in a row or ring. There’s also toon shading with stepped light bands and an outline, plus a phone layout that gives the canvas most of the screen and keeps tools within reach. Dense project backups are now smaller and quicker to reopen.

The modeling approach is volumetric clay rather than polygon editing: push, pull, erase, smooth, mirror and layer, then export GLB, OBJ or print-ready STL. It runs in the browser with mouse, pen or touch. Demo: https://www.clayvr.com/sculpt

Three.js folks: what would make a volumetric sculpt workflow easier to extend, and does the phone tool layout make sense?


r/threejs • • 9h ago

Link [SHOWCASE] Paper Soccer — a 3D football game in the browser with three.js + Phaser 3 (made with AI in ~3 hours)

Post image
1 Upvotes

Paper Soccer is a free browser game (no signup): paper-style football on a 3D pitch rendered with three.js, with Phaser 3 + TypeScript handling the game logic and UI. Online 1v1 or vs AI, cups and leagues.


r/threejs • • 11h ago

El Niño Surfer: a big-wave tow-in game in three.js (sneak peek)

1 Upvotes

Most water in games use a heightfield: a flat grid where each point can only move up and down. That can't make a wave that curls over itself, because the curl needs two heights at one spot.

So draw the wave side-on instead, as a single slice (trough, face, lip throwing forward), and repeated that slice every 4 m along the reef. Each slice is a little further into breaking than the one beside it, which makes the wave peel down the line. The surfer rides on those same slices.

Water, sky and spray are custom ShaderMaterials, with no postprocessing. Interaction has auto camera angle adjustment and manual controls. I had to build a follow camera for tubes, and first person view felt worthy as well. Claude and Codex in the build -- I have a pretty involved custom harness that makes the two work well together. GIS and published video data used to ground simulation code to last week's crazy surf at Pillar Point, aka Mavericks, mixed with lots of shortcuts.

Playable in the browser: mindbendingpixels.com/elninosurfer/app/

Graphic upgrades coming in native app!


r/threejs • • 3h ago

Demo I turned my portfolio into a 3D galaxy: each project is a planet, each tech stack a star system

0 Upvotes

Built with three.js and OrbitControls, no framework. The galaxy is ~18k points in three spiral arms, planets get procedural band textures drawn on a canvas, and labels are real HTML buttons projected every frame, so it works with the keyboard and screen readers. There's a list-view fallback when WebGL is missing or reduced motion is on.

Happy to answer questions about any of it!

https://startout1.alwaysdata.net/portfolio/?ref=reddit-threejs


r/threejs • • 1d ago

I fully vibecoded a 3D electronics lab simulator in Three.js & TypeScript using Gemini and Antigravity so my batchmates can practice before next week's lab exams

24 Upvotes

Live demo (desktop/laptop): https://lab-ubu.vercel.app/

I am a 1st year CSE student and this is my first time touching Three.js. Our electronics lab exams are next week and practicing without hardware in the hostel is rough, so I vibecoded our entire lab setup in the browser so my batchmates and I can practice wiring breadboards, testing 74-series chips, and checking oscilloscope waveforms.


r/threejs • • 22h ago

Demo My island runs on hexes. I wanted the roads to look good with the camera down at wagon height

Thumbnail
gallery
5 Upvotes

I made this little volcanic island for a strategy match between ChatGPT and Claude. The wide shot and the wagon shot are the same Three.js scene. The sim keeps a hex map, and each vertex on the terrain mesh gets its height from the cells around it.

For the roads I draw their centerlines into a 2048px texture with soft edges. The bends still read from overhead, and up close you can see the dirt fade into the grass. Here's what it looks like moving: https://youtu.be/b4Zsyu0eBrI


r/threejs • • 5h ago

Demo I've spent 4 weeks building a multiplayer pirate game solo, and it runs in your browser đŸŽâ€â˜ ïž

0 Upvotes

Hi all, I'm Lee, and I'm building Brittlevale on my own: a multiplayer pirate game that runs in the browser (Three.js).

This clip is a fight with a navy cutter: broadsides, crew, and the hit sounds are all in. Last night I finished a shipyard where you build your own ship piece by piece and launch her down a slipway.

It's not playable yet. I'm finishing the first island and tutorial before anyone tries it. Happy to answer questions, and I'd love to hear what you'd want in a pirate game.


r/threejs • • 1d ago

I built a walkable Japanese shrine in three.js - toon shading, ink outlines, plays on phones

33 Upvotes

Play it here (free, no sign-up): https://app.omairi.online

A few things that might interest this sub:

the koi are built in code, no model file: one instanced mesh for the whole pond, 638 triangles a fish, twelve varieties painted per instance in the fragment shader, swimming as a travelling wave in the vertex shader. Their paths are a function of a shared clock, so every visitor sees the same shoal.

the anime look is a 3-step toon ramp plus an ink-outline pass drawn from a kept list instead of walking the scene twice a frame

trees are procedural (sakura, maple, ginkgo, pine, cedar, bamboo) with four seasons that follow the real calendar

each area is baked into one toon mesh; far stations are hidden until you get near

online presence runs on Cloudflare Workers + Durable Objects

In the video: 0:17 running as a shiba, 0:22 flying as a bird, 0:26 diving into the koi pond, 0:39 lantern night, 0:47 fireworks over the sea.

The shrine clock runs on Japan time, so fireworks are at 20:00 JST and the yokai parade at midnight.

Solo project; the code is written with AI coding assistants that I direct and review. Happy to answer questions about any of it, and I'd love to hear how it runs on your device.


r/threejs • • 1d ago

Made a storm-survival battle royale in Three.js that runs in the browser — YeetNite (free)

2 Upvotes

Another one of my browser games, also built with Three.js. YeetNite is a free storm-survival battle royale you can jump into with friends in a browser tab, no download.

Play: https://dryeet.com/games/yeetnite/

Happy to answer questions about the rendering, the storm, or keeping it running smoothly in a browser.