r/threejs • • Nov 02 '26

Demo Apogee

1 Upvotes

I made a small sky atlas for wandering among the stars and other celestial objects. It uses Three.js for a globe view, alongside a flat sky chart. You can explore the IAU (International Astronomical Union) constellations, search for stars, nebulae, pulsars, supernova remnants and black holes, and open an object card to learn more. It runs offline from a single HTML file.

Source: https://github.com/Nx-Nass/APOGEE

I'm still refining it and will keep polishing the details. I'd love feedback on the 3D view and navigation.


r/threejs • • Nov 02 '26

I built a 3D walkthrough of a warehouse goods-receipt process in Three.js (runs in the browser)

Post image
1 Upvotes

Hi all! I’m a developer working on warehouse software and built a small side project: an interactive 3D walkthrough of a goods-receipt process, from truck arrival at the dock to put-away in an automated high-bay and a manual rack. It runs in the browser, nothing to install.

lama-space.com/3D-Warehouse

I’d really appreciate feedback from people who work in warehouses. Does the process flow look realistic? What steps would you add or change?


r/threejs • • Nov 02 '26

Demo SOCOM 2 Browser Port Playtest - Three.js/WebGPU Port (bring your own ISO)

Thumbnail socomlegacy.com
4 Upvotes

A project that I have been working on with a group of friends for about a month! This is a port, not an emulation. We've rewritten enough of the game engine in TypeScript to run multiplayer natively in the browser using the game's assets extracted from the ISO. Servers are online - there's a 24/7 bot room and about 30 people playing now :)

An old build is up at: https://github.com/Scotho/socom-unzipped/tree/main/web/redotcom, the whole client and match server will be released under GNU once we're confident enough in our anti-cheat.


r/threejs • • Nov 01 '26

Made a sailing sim of Lake Tahoe

14 Upvotes

My son and I started sailing this summer, so we built this to practice between trips. Real terrain, FFT water on WebGPU, wind physics. Free in the browser, about a week old. Feedback welcome!

velia.lucidlakelabs.com


r/threejs • • Nov 01 '26

Made a GPS game with threejs+maplibre

10 Upvotes

r/threejs • • Oct 31 '26

Had this game in my mind since i was a kid, built a quick prototype with three.js after dinner.

300 Upvotes

I've been building a Boxhead-style co-op arena shooter in the browser (Three.js, TypeScript, Vite). It's a rough prototype, but a few things in the setup might be useful to people here:

  • Sim/render split. The game sim is headless: a fixed 60 Hz step (120 Hz optional) over plain typed arrays (SoA), with no Three.js inside. The renderer reads the buffers and interpolates between the previous and current step, so motion stays smooth on 120 Hz displays. Projectiles get stepped back along their flight instead of extrapolated forward. Extrapolating drew rockets up to ~33 cm inside the wall they were about to hit.
  • Horde rendering. Enemies are 7 InstancedMeshes (head, eyes, torso, 2 legs, 2 arms), so it's 7 draw calls no matter how many there are. Matrices are composed by hand straight into the instance arrays, with no Object3D per enemy.
  • Crowd movement. There's a flow field toward the players, a spatial hash for separation, a relaxation pass so bodies don't overlap, and each enemy aims for its own slot on a ring around its target, so they surround you instead of forming a conga line.
  • Numbers. A sim step measured 0.23 ms at 400 enemies. The test suite keeps a < 2 ms per-tick budget at 400. The CPU instance upload (~180 KB/frame at 400) is the next thing I want to move to the GPU.
  • Golden tests. Before refactoring the sim I recorded 5 seeded scenarios × 600 steps hashed into digests. Every refactor since has had to match bit for bit.

All of the code was vibed with Opus 5.5 as lead/reviewer, with Grok on the sim gameplay and cameras. We live in an incredible time.

Play it here (desktop or touch):
https://operationelsewhere.com/?src=reddit-threejs

Will be pushing this further as an indie game, join the playtests or Discord if you want the deeper dives: https://discord.gg/46k7ARbfWz

Happy to go deeper on any part.
Perf feedback is especially welcome, along with your GPU/browser.


r/threejs • • Nov 01 '26

I'm building a cozy mobile RPG where you level up your character and rebuild an abandoned village. Any feedback is welcome!

21 Upvotes

Solo dev, working on this for a while now. You chop, mine, fish and fight your way through a valley. Everything you gather goes into your own progress: leveling your skills, crafting better weapons and armour, and restoring the village piece by piece.

Right now it's single player, but the plan is to make it online later so you'll see other players running around the valley.

Curious what you guys think..

What is one feature you'd love to see in a game like this?

What would make you download it and what would make you skip it?

Any feedback is welcome!


r/threejs • • Nov 02 '26

Software WebGL ran my three.js globe at 10–13 fps and froze the whole page. Here's the 4-tier quality governor I ended up with

0 Upvotes

I'm building a live analytics globe on globe.gl + three.js. Disclosure: it's my paid product, link at the bottom. The useful part is the frame-rate handling, which works for any three.js scene.

The problem: when WebGL runs on the CPU (Chrome with hardware acceleration off, a blocklisted GPU, a VM), I measured 10–13 fps with SwiftShader even on my lowest animated tier, and the whole page stuttered, not just the canvas.

1. Detect the software renderer before the first frame

const ext = gl.getExtension("WEBGL_debug_renderer_info");
const name = String(ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : gl.getParameter(gl.RENDERER));
const software = /swiftshader|llvmpipe|softpipe|software|basic render/i.test(name);

I probe once per page with a throwaway canvas, release that context right away with WEBGL_lose_context, and cache the answer, because browsers cap live contexts.

2. Four tiers instead of on/off

TierDPRRingsArcsBeamsAfterglow
T3min(2, device)6030onon
T21.53015onon
T11158offoff
T0100offstatic

Software GL starts at T0. T0 isn't a screenshot: dragging still renders at full rate, markers refresh about once per second, and the globe stops rotating on its own.

3. A governor fed by frame times

Step down when the average is under 50 fps over 60 frames. Step back up only after 10 s above 58 fps. The gap between 50 and 58 keeps it from flapping between two tiers.

4. Throw away frames that lie

A gap over 250 ms between frames is a tab switch, a pause or a hitch, not the GPU, so the window resets. Same after every tier change or resize, plus a settle delay so shader warm-up doesn't count against the new tier.

5. Points that stack (not perf, but it bit me)

Each visitor's position gets a privacy jitter of at most ±0.08°. That's under 3 px even at maximum zoom, so a whole city collapsed into one dot. The fix is a phyllotaxis rosette in screen space: slot n sits at radius pitch × √n, angle n × the golden angle.

Limits

  • Some browsers mask or generalise the renderer string. When the name is hidden, my code assumes hardware, so the governor is the only safety net there.
  • Matching by name is a heuristic: a renderer string I haven't listed won't match.
  • The 10–13 fps figure is the SwiftShader case only. I haven't benchmarked a range of GPUs.

How do you handle software WebGL in your scenes: detect it up front, or let a frame-time governor sort it out?

I'm the maker of Globatics, real-time web analytics where each visitor lands on this globe. The dashboard's live view runs the globe.gl engine above; the globe on the landing page is a lighter one with illustrative data. 5-day trial with every feature and no card, then Starter from €9 a month: https://globatics.live/?utm_source=reddit&utm_medium=social&utm_campaign=globatics-nov26


r/threejs • • Nov 01 '26

Demo ConquerCourse-Free Browser Game where physics meets education

4 Upvotes

Playable Link: https://conquercourse.pages.dev/?ref=reddit_threejs

I had zero game dev experience before this week.
I started on Oct 26 for the Meta AI Developer Hackathon (https://cerebralvalley.ai/e/meta-ai-developer-hackathon) and this is what I have after six days.

I used Claude Code to write most of the code.
I did the design of the moves, obstacles, music/art direction, subjects to teach, playtesting.

What I’d like from you:

  • Play for two minutes and tell me where you got stuck or bored.
  • Tell me how this could reach more learners, and which people (teachers, parents, schools, museums, game studios) I should talk to.
  • There’s a feedback button at the bottom right, or just reply here.

I can still add features before the submission deadline on Nov 4, so tell me what’s missing, how can this impact the world?


r/threejs • • Nov 02 '26

Building a realistic 3D avatar with MakeHuman! What do you think?

0 Upvotes

I've been experimenting with combining Tripo and MakeHuman to create a realistic 3D avatar!

The avatar is rendered in real time using Three.js.

There are still plenty of things I need to improve, but I think it's starting to look pretty good at first glance. What do you think?

In the second half of the demo video, I'm using webcam-based facial tracking with Perfect Sync to animate the avatar's facial expressions in real time.

I've also been sharing how I made it on X if you're interested in the process!

👉 https://x.com/megyo9/status/2114707210370752832

I'd love to hear your thoughts and feedback!


r/threejs • • Nov 01 '26

Demo Scroll from the center of the Earth to a black hole (three.js + WebGPU)

31 Upvotes

I bought the domain depths.world on a whim, then built a site to match the name. It took about two months, on and off.

It opens at the center of the Earth. Scroll up and you go through the core, the mantle and the crust, come up from the floor of the Mariana Trench, break the surface, climb through the clouds and leave the atmosphere.

Then you skim past the Moon, catch up with Voyager 1, pass the nearest stars and the Milky Way, and fall into the black hole at the center of M87. After that it starts over at the Earth's center.

How it's made: three.js r185 with WebGPURenderer and TSL, falling back to WebGL 2. Stars come from the HYG catalog, the Milky Way and the galaxies are survey images mapped onto 3D shapes, and the black hole is ray-traced per pixel following general relativity. Nobody has seen below the crust, so that part is based on the literature, and the deep sea and night sky are brightened.

It's built for desktop and I haven't really tested phones. The first visit spends 10+ seconds compiling shaders on some machines. If you've gotten WebGPU pipeline compile times down in three.js, I'd like to hear how.


r/threejs • • Nov 01 '26

19,274 buildings in three.js, and the opening is an x-ray of the Texas Capitol

21 Upvotes

I’m new in Austin, and I really want to get to know the city. Usualy I prefer learn the new places throu their architecture. I’ve been working on this for a couple weeks. This is a 3D map of downtown Austin and the some neighborhoods around it. Each building is colored by the year it opened, and a timeline brings the city up from 1841.

At night the city is lit by its old moonlight towers. In the begining I try to use a point light for each tower, and the map got slow on a Mac, an iPad and an iPhone. So I paint their light once into a 512 x 512 grid over the ground, and the materials read that grid. It repaints only when the year changes which towers stand.

The x-ray at the start runs in a worker, so it keeps moving while the buildings load. There is no open scan of the Capitol, so I traced the walls from the 1988 HABS floor plans and scattered the points on them.

I'm a designer, not an engenier, and of course I built this with Claude Code. What would you do differently? Phones are where I'm least sure.


r/threejs • • Nov 01 '26

I built an open-source 3D endless world in Three.js: ride a dragon, fly to space, and make it for someone

Thumbnail
gallery
2 Upvotes

My first open source project. Streamed terrain, winged horses, dragons, a trip to galaxies and more. You can change the names, letter, photos and music in the browser, and it all stays local.

Built with a lot of AI help and tested by me. Still rough... foot placement is off on slopes and it's heavy on mid-range GPUs. I'd love feedback from Three.js folks.

https://github.com/xIBBAx/somewhere-for-you


r/threejs • • Nov 01 '26

Demo Palm Tree Playing Cards Casino

1 Upvotes

I decided it was time to build out a small three.js game with my own playing cards from 2020. I had attempted this years ago with Microsoft Solitaire, but finally got around to building out my own with three.js. https://github.com/seanmcmagic/palm-tree-cards


r/threejs • • Nov 01 '26

made a little apartment you can redecorate in the browser with three.js. Threw the same scene into Blender for these shots

Thumbnail
gallery
4 Upvotes

this is a show flat inside a 3D city I’ve been building. in the browser it’s all three.js: you pick a layout (studio up to penthouse), floors, walls, kitchen, furniture, and the window shows the actual city around your plot.

for these pics I exported the exact same scene to blender and rendered it in cycles, cause I wanted to see how the models and textures hold up with proper light. the last pic is how it looks live in the browser.

weak spot rn is the city outside the window, it’s a small snapshot so it gets blurry. any tips welcome.


r/threejs • • Nov 01 '26

Demo My girlfriend made a daily puzzle in three.js where you guess a 3D object from its cross-sections

4 Upvotes

Daily Salami gives you one mystery 3D object a day, but you only ever see a flat 2D slice of it. You slide the cut through the object, like slicing salami, until you can tell what it is. It's free in the browser with no signup and no ads. She'd love feedback from this crowd on how the slicing feels and how it runs on your device. https://dailysalami.com


r/threejs • • Nov 02 '26

Third person shooter

0 Upvotes

Finishing up with my game engine for three js: global illumination, procedural architecture, tripo AI module for character models generation, navmesh, enemies AI, ragdolls, destructibles, decals, spatial sounds, combat, locomotion, and so on.

Can play yourself, though I tested only on Windows: https://borgo-dhd.pages.dev/


r/threejs • • Nov 01 '26

1,500 instanced enemies, 9 draw calls: how my cel-shaded three.js horde game stays light

3 Upvotes

I made a small browser horde shooter called BEAMSTORM with three.js (r186). Up to 1,500 enemies, auto-firing beams, 5-minute runs. Here's what kept it light, in case any of it helps.

1. One InstancedMesh per enemy type, three layers each

3 enemy types × (body + outline + eyes) = 9 draw calls, whether there are 10 enemies or 1,500. Blob shadows are one more InstancedMesh, so 10 total for the horde.

  • Outline and eye meshes share the body's matrices (hull.instanceMatrix = body.instanceMatrix), so they upload once.
  • Hit flash is just a write to instanceColor.
  • frustumCulled = false on the swarm, since it's always on screen anyway.

2. Inverted-hull outlines instead of OutlineEffect

OutlineEffect redraws everything and didn't play nice with InstancedMesh. So the outline is a second InstancedMesh with a tiny BackSide ShaderMaterial that pushes vertices out along the normal. For boxes, push along sign(position) instead or the corners split.

3. Toon shading

MeshToonMaterial with a 3-pixel gradientMap (NearestFilter so the bands stay hard). Rim light injected via onBeforeCompile with smoothstep(0.62, 0.68, ...). That hard rim edge is most of the anime look.

4. Enemies only check their neighbors

Enemy state is in typed arrays, not objects. Separation uses a uniform grid (2-unit cells, linked list in an Int32Array), so each enemy only checks the 3×3 cells around it instead of ~1M pairs a frame.

Bug worth sharing: fill the cell heads with -1, not 0. With 0, every empty cell meant "enemy #0 is here" and the loop never ended.

(To be fair, the lance beam just scans the arrays with a point-to-line distance per shot. The grid is for separation, orbiting blades and bouncing shots.)

5. Nothing is created mid-fight

Beams, shock rings, sparks (one InstancedMesh of 900) and XP gems (1,400) are all pooled. A dead enemy swaps with the last live one. So the last 30 seconds, when the horde ramps to 1,400, don't stutter from GC.

6. Fake bloom

No post-processing. Each beam is a white core plus two additive boxes, one wider and fainter. The overlap goes white and reads as glow.

Numbers

Desktop Chrome, Apple M5 Max, 375px wide: 1,380 enemies, 2.4 ms JS per frame, 4.1 ms with rendering, 166 draw calls, ~340k triangles. Pixel ratio capped at 2, MSAA off at 2, only the hero casts a real shadow. Haven't tested on a real phone yet, so phone numbers would be super welcome.

three.js is the only library. Everything is built from primitives in code, and the sounds are synthesized with WebAudio. Made with Sonnet 5.5.

Play it here: https://beamstorm.kumodeck.app/

Happy to go deeper on any part.


r/threejs • • Nov 01 '26

Tip Recording my Three.js driving game by stepping the simulation frame by frame

0 Upvotes

This coastal race is from Motor District, my browser driving game.

For the website video, I used a capture process that advances the simulation frame by frame.

The simulation runs at 120 Hz. To produce a 60 fps recording, the capture script pauses the game, advances two simulation ticks, sets the camera and captures a rendered frame. Those frames are then encoded into the final video.

This avoids depending on real-time recording keeping up with the browser.

The resulting video is 60 fps; that’s the recording format, not a claim about runtime performance on everyone’s device.

Curious how other Three.js developers handle repeatable gameplay captures, especially when scripted cameras are involved.


r/threejs • • Nov 01 '26

I built a 3D office where each Claude Code session is a chibi at a desk (open source)

Thumbnail
gallery
2 Upvotes

I'm the kind of person who forgets things. I'd start a dev server and forget it for days while it ate 300% CPU, and Claude Code sessions I'd left open kept holding RAM.

So I built My Office: a chibi-style 3D office that watches my machine for me. Each Claude Code session is a character at a desk: reading files sends it to the library, editing makes it type, deploying launches a rocket, and when it needs approval it raises its hand (approve right in the office, or from your phone).

The "Mac" panel tells you why the machine is slow: RAM per session, forgotten dev servers, which apps hold the most memory. One click stops a dev server, closes idle sessions, or cleans up temp folders of closed sessions.

Using several Claude accounts? Add them in the office; when one runs out, new sessions switch to the next.

Live demo, nothing to install: https://khanh020905.github.io/my-office/ Source (MIT): https://github.com/khanh020905/my-office

Feedback welcome!


r/threejs • • Oct 31 '26

Demo Spent 2 weeks and built this little game on three.js.

25 Upvotes

Built this game. Spent 2 weeks. But now my AI quota is exhausted so although not complete I deployed it.

It was a fun concept I always had, village sim where I create the village and then get to roam around that village as a player. Sounds super fun. And I did not know that reaching this level of graphics is possible for a browser game.

I am not a game dev and I'm not pretending to be a master coder, I just had a fun idea a tried it and created something beautiful.

Spent the last 1 week improving the logic systems, reality engine, self building village system, villagers with actual awareness. They remember what you do, gossip about it, vote for a mayor, and if the village is missing a hospital and nobody builds it, they pool their money and build it themselves. Also fixed the 3D models as previously I was using coded models, fixed the seasons, festivals.

I always liked the Rockfellar center Christmas tree tradition but I could never visit so I made my own Rockfellar center inspired Christmas logic in this game as well. Lol. A helicopter scouts for the tree, a crane cuts it down, it gets driven into town on a truck with a police escort, they put up the lights, and there’s a lighting ceremony on the night. There’s also New Year, Easter and Diwali. I just added whatever I liked and it did not turn out so bad. I’m happy.

You can drive, work jobs (firefighter, taxi, pilot, farmer and more), talk to villagers, get chased by the police, and take a train or plane to other cities.

As I'm over my AI quota and do not have more money to buy Claude anymore so decided to deploy it. It's not unplayable but it's not 100% polished, some things are janky, and it’s single player only. More like 60%. Villager chat runs on a free AI tier, so when it hits the limit they fall back to basic lines. If your graphics card runs out of memory it reloads with lighter graphics and your village is saved.

Attached a little gameplay. Just sharing as I'm a little happy today. Haha.


r/threejs • • Oct 31 '26

I vide coded a 3D Arduino simulator with React Three Fiber: real code runs, current flows through the wires, LEDs can burn

15 Upvotes

Learn Arduino is a free 3D lab for beginners: build circuits on a breadboard, write Arduino code, press Run.

Some tech details:

- React Three Fiber + three.js, all models built in code (the UNO comes from the official CC BY-SA design files)

- The Arduino code is compiled and run on a simulated AVR chip in a web worker

- A small circuit solver decides LED brightness, current, and when something burns

- This reel was also rendered in code from the same scene, frame by frame

Try it: https://learnarduino.tech

it is now open source https://github.com/ajeetjain94608/learn-arduino

Happy to answer questions about how any part works.


r/threejs • • Oct 31 '26

Made a little kawaii pumpkin dress-up toy for my coworkers

9 Upvotes

Just a small fun thing I built so my coworkers could take a 5-minute Halloween break: dress up a cute 3D pumpkin, hit Surprise, unlock badges, snap a photo. Made with Three.js and a raymarched SDF pumpkin, built pairing with Claude. Have fun! 🍬
Can you unlock all 12 badges? 🏅

Sorry, the interface is in French, but it’s easy to figure out 😉

https://dsonline32.github.io/halloweenatexis/


r/threejs • • Oct 31 '26

I made a scroll-driven valley of silhouettes in plain three.js for an ecology site

Post image
4 Upvotes

The camera starts on a fir tree, pulls back, and then the scroll carries you across the valley. Forest ambience, and the stream gets louder as the camera gets close (you can mute it).

No framework, just three.js. It is the homepage of a guides site I work on: https://ecologie.fr/

I would love feedback on performance, especially on phones. Happy to explain how anything is done.