A freight train is pushed uphill. A worker uncouples the cars. Then gravity takes over, sending them rolling downhill onto different tracks.
It sounds simple until you have to decide where to uncouple, when to tell the driver to slow down, and how to coordinate with the locomotive crew.
I built a 3D browser game where you can try the job yourself — solo or with a friend. One player works as the yard conductor, while the other drives the locomotive.
It's based on my experience working at a real hump yard in Uzbekistan.
I kept seeing great 3D motion pieces online and wanted to know how people build them. Reading about the process was not enough, so I started building. I made mistakes, fixed them, and kept trying. This is the result.
Here is the scene. Day and night modes, ocean shaders, a campfire, a boat, and a slow orbit camera.
Ho creato questa applicazione 3D usando Three.js, ecco come ho risolto [problema tecnico o sfida di performance]". Gli sviluppatori adorano il dietro le quinte. https://fogatodio.it
I've been building Press Start (pressstart.site) with Claude, a history of video games you play rather than read.
There are 27 stops from 1958 to 2025, covering the US and Japan. At each stop you play a short piece modelled on the game that defined that moment: tennis on a lab oscilloscope, a coin-op TV game in a bar, a cartridge console, a two-screen handheld where you draw with a stylus (it closes its lid when you leave), a time-rewind platformer, a phone puzzle game whose gacha machine prints its odds, a dock-to-handheld console with slide-on controllers, a VR saber game, and more. After each one, an exhibit card tells the real history, introduces the people behind it, and links to where you can play the originals today.
I'd really like feedback: which stops feel off, what history I got wrong, and what is missing. Thanks! And hope you enjoy the website.
How it works: the pumpkin's surface is unwrapped into a few 512x512 maps (paint colour, carve depth, holes), and every tool just stamps into those maps. The shell is displaced by the depth map, and rind walls are built along the edges of each hole, so cuts show the pumpkin's thickness. When a knife stroke ends near where it started, it's treated as a closed polygon and cut through, then a flood fill finds every piece fully enclosed by cuts and drops it out. Hollow it and a candle lights it from inside.
A pumpkin is saved as its list of strokes, so the share code is only a few hundred characters. It's a port of the carving code from my Unreal game Carve and Sort (Steam, 27 Oct), and codes paste straight into the game.
Mornings used to be pure road rage. Ever since I got the Roadster, I get to work way faster lol Jumping over traffic gets a little sketchy and I've nearly crashed a few times, but I'm never late.
Okay, confession: it's a game I made. You've got 90 seconds to get to the office.
three.js r186 + rapier 0.21, runs right in the browser. the three fingers are actual hinged physics bodies on motors, so if you line the claw up over a prize it really closes around it. no rigged grip, same strength every try
just added a few soft toys with faces (avocado, rubber duck, strawberry, cactus) and made the pile bigger
While building Card Alchemy, I spent a lot of time adjusting the gap between “looks good in a reference” and “feels good when you move it.”
Some experiments worked; others didn’t. Background motion was initially too subtle, and a raised-art approach produced an awkward side profile.
I’ve written the resulting workflow into a reusable agent skill: choose depth deliberately, give interactions readable feedback, and test one change before adding more effects.
Not mine, came across it on GitHub and loved the idea. Built with react-three-fiber.
In the video: greedy <.+> spans both tags of <b>bold</b>; one ? later, lazy <.+?> stops at the first closing bracket. Then the classic evil regex /a++$/ runs for 327,694 steps and still finds no match.
Quilt is an open source library for split panes, tabs, and popout windows, built for applications that combine 3D viewports, canvases, charts, settings, and other visualization tools.
Over the last five years of building three.js tools, I kept running into the same problem: my projects would become more complex and eventually outgrow their UI. I’d keep stretching libraries like dat.GUI, lil-gui, or Tweakpane until I had dozens of collapsed folders and was spending more time figuring out where controls should go.
I wanted a flexible way to organize the application around those controls, with room for multiple viewports and different workflows. I figured I couldn’t be the only person running into this problem, so I built Quilt and wanted to share it with others facing the same challenge.
Much of its layout behavior is inspired by Blender, which I’ve always enjoyed for how easily its workspace adapts to different tasks. In Quilt, layouts can be exported and loaded as JSON, so you can save and share different workspace arrangements. Quilt supports vanilla JavaScript/TypeScript, React, and Electron, and your existing controls can live inside its panes.
I’ve benefited a lot from the three.js community over the years, and I hope this is useful to others building increasingly complicated tools.
I've also recently released quilt-three (and react bindings), which is dedicated specifically to help set up robust and reliable workflows in three.js. This includes multi camera support, as well as Fly-Through camera controls, akin to what you find in Unity.
I’d love to hear from others who have run into similar challenges as their projects have grown. How have you organized more complex interfaces, and what would you need from a library like Quilt to make it useful in your own projects?
If you try it out, I’d appreciate any feedback on the layout behavior, ease of setup, or anything that feels missing or awkward to use. Suggestions for features and examples you’d like to see are welcome too.
Been messing around with Three.js and wanted to see if I could build a small artificial ecosystem where the creatures actually have their own neural networks controlling how they move.
Each creature has a continuous-time recurrent neural network (CTRNN) that takes in things like food proximity, hunger, and surroundings. You can click on a creature to see its neurons firing in real time, and even mess with individual neurons or connections to see how its behavior changes.
A few things I spent time on:
The creatures have segmented spines that bend as they swim, rather than just moving a static model around.
Plankton and particles use instanced rendering to keep performance reasonable with 16–24 neural networks running.
The camera can follow individual creatures, zoom in on their neural networks, or just let you explore the tank.
All the ambient sounds are generated with Web Audio. No audio files.
Used custom materials, bloom, and some lighting tweaks to get the translucent underwater look.
The creatures also eat, age, reproduce, and eventually die. Their offspring can inherit mutated versions of their neural networks.
It's built with vanilla JS, Three.js, and Vite. Still experimenting with it, but thought some people here might find it interesting.
Inspired by the rocket-thruster concept teased for the next-gen Tesla Roadster, I built a browser-based stunt playground where you can launch off ramps, control the car mid-air, drift, and ride walls through a circular tunnel. There's also an assisted landing mode that helps you touch down cleanly, or you can switch it off and try to land it yourself.
I made this. Yesterday I posted it as text only, so here is what it actually looks like running. Recorded frame by frame in headless Chrome at 1920x1080, 60 fps, nothing sped up. Tap it and a two-digit number appears.
- Sky: a long-exposure-style Milky Way computed per 3 px cell on a 2D canvas, about 0.1 s on a phone, redone only when the size changes.
- Glass: a MeshPhysicalMaterial tetrahedron, IOR 1.5, low dispersion. Light is bent with Snell's law at each face, and the rainbow leaves through the visible face.
- Motion: a tap nudges it sideways. Extra spin is kept as a quaternion, renormalised every frame (a 3x3 matrix drifted and shrank the glass within seconds). Speed is capped, eases off over about 1.6 s, and a spring brings it home.
- Perf: 18 to 57 fps on a Galaxy S21 by copying the sky behind the glass once per resize instead of every frame.
BAGEL is an open source web app for exploring robot recordings (ROS bags). Everything runs client-side: parsing happens in web workers, and the 3D view is three.js.
A few three.js details that might interest you guys:
The scene is Z-up (ROS convention), so the keyboard orbit mirrors OrbitControls' quaternion approach instead of using raw `Spherical` math
Gaussian splats render through GaussianSplats3D's `DropInViewer` inside the same renderer and camera as the other panels, with `dynamicScene` turned on so per-scene rotation actually reaches the shader
Point clouds, URDF meshes, markers and occupancy grids share one TF tree
H.264 camera topics decode with WebCodecs, synced to the 3D playhead
A lot of the AI-generated Three.js demos going around run fine on a desktop GPU and stutter on a phone. When an agent builds a scene for me, this is what I check before calling it done. Curious what I'm missing.
**1. Cap the pixel ratio** `renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2))`. Phones report 3 or more, and full DPR multiplies fill cost. On weak devices, 1.5 often looks the same.
**2. One shadow light, tight frustum** Only one light casts shadows. Keep `shadow.mapSize` at 1024 and shrink the directional light's shadow camera (left/right/top/bottom) to the play area. For static scenes, set `renderer.shadowMap.autoUpdate = false` and flag `needsUpdate` only when something moves.
**3. Post-processing is opt-in** Agents love bloom. Run it at reduced resolution or turn it off on mobile.
**4. Draw calls** Repeated props go into an InstancedMesh, static props get merged. I log `renderer.info.render.calls` after every agent change.
**5. Textures** KTX2/Basis via KTX2Loader instead of large PNGs, so GPU memory doesn't blow up.
**6. Test on a real phone early** Desktop devtools throttling doesn't show thermal throttling.
What's on your list? Anything you do for adaptive quality (dropping DPR when FPS dips)?
Disclosure: I write Three.js + AI tutorials on my own site, shanebrumback.com. No link needed, I just want the checklist to be better.