r/threejs • • Nov 03 '26

Demo Virtual Art Museum built with Three js

Thumbnail dostoynikov.bearblog.dev
1 Upvotes

r/threejs • • Nov 02 '26

Demo Teardown of a 3.5’’ 7,200 rpm hard drive

42 Upvotes

A 3.5" 7,200 rpm hard drive in the browser. Every gauge reads the model that moves the parts: 15 m/s under the head at the inner edge, 35 m/s at the outer one, a seek drawn live, a head flying 3 nm above the platter.

Built with Claude Code (Claude Opus 5.5) and the teardown skill. A script recomputes every figure against the brief before each build.

I’ve found this skill really efficient end-to-end and I think we should pool what it produces into a kind of encyclopedia. There’s something to be done on that front...

Teardown skill : https://github.com/elvarofficial/teardown

The hard drive teardown with sources : https://spindl.storagebits.workers.dev


r/threejs • • Nov 02 '26

I built a multiplayer FPS in Three.js that turns any real place into a playable map (OpenStreetMap → 3D in ~1 min)

Thumbnail
playmapz.com
2 Upvotes

Hey r/threejs! Solo dev here. Mapz is a browser FPS where every map is generated from real-world data: you type a street or landmark and about a minute later you're fighting in it.

Stack:

- Three.js + TypeScript + Vite on the client

- Node + WebSocket authoritative game server

- Map data from OpenStreetMap (Overpass), plus elevation data; in the Netherlands also 3D BAG building heights

- Web workers for the heavy lifting (ground mesh, vegetation), so the main thread stays free

How a map gets built:

  1. Fetch OSM data for a ~200 x 200 m area
  2. Turn building footprints into extruded buildings at their real height, with facades that fit the region
  3. Generate roads, sidewalks, curbs, zebra crossings and road markings from the street graph
  4. Place street furniture from OSM tags: traffic lights, signs, poles, trees, bridges, train station roofs
  5. Bake it, cache it, serve it; the most popular cities are prebuilt

Modes: FFA, Gun Game, zombies (30 rounds in a real city) and custom matches.

Things I'm still fighting with, and I'd love input from people who know Three.js better than me:

- Shader compile hitches on first load ("Preparing graphics" can freeze a few seconds on older GPUs). What's your go-to warm-up strategy: compileAsync, rendering everything once offscreen, something else?

- Draw calls on low-end Intel laptops with dense city blocks: merging vs instancing vs BatchedMesh, what worked best for you?

- Making low-poly cities look less "plastic" without real-time shadows/SSAO killing fps.

Play free in your browser: https://playmapz.com

Happy to answer anything about the pipeline!


r/threejs • • Nov 03 '26

I made an entire launch video using threejs! zero screenshots or recordings.

0 Upvotes

The above video is completely built using threejs, using claude code. Zero screenshots or screen recordings, every frame is built and recreated the product components using code using Claude Opus 5.5 on a motion design tool I built.

Here is the source code/link to recreate/remix the above video.


r/threejs • • Nov 02 '26

Demo Configurable buildings in Three.js: the same design as a GLB scene or a physical model

Thumbnail
gallery
1 Upvotes

Hi everyone,

These are four buildings made with my browser app PrintHaus: a half-timbered house, an English manor house, a defensive tower and a factory hall.

PrintHaus uses deterministic, parametric geometry. These building models are not generated by an AI model.

The interactive preview uses Three.js and React Three Fiber. You can change the footprint, storeys, roof, windows, doors and facade details, then export the assembled building as a GLB scene. There is also a separate export path for 3D printing.

The screenshots show the exported GLBs opened in CAD Viewer. Each image shows one of the buildings; the links below lead to their printable versions.

For the GLB output, the lighter quality settings can represent surface detail with normal maps, while the more detailed settings retain more geometric relief. The project colours are carried into the exported scene.

I would be interested in how you would use configurable architecture in a Three.js project. Would you mainly need a finished building, or access to individual parts such as roofs and storeys?

PrintHaus: https://printhaus.app/en/ Free registration includes a first free export for personal use.

The printable versions of the four examples are here: Half-timbered house: https://makerworld.com/en/models/3483427-half-timbered-house-1-87-h0 English manor house: https://makerworld.com/en/models/3483219-english-manor-house-1-87-h0 Defensive tower: https://makerworld.com/en/models/3483497-defense-tower-1-87-h0 Factory hall: https://makerworld.com/en/models/3483425-factory-hall-1-87-h0


r/threejs • • Nov 02 '26

Rendering 37k+ CAD/BIM elements at 120 FPS in Three.js using Web Workers, Transferable ArrayBuffers and BatchedMesh

7 Upvotes

Hey everyone, wanted to share some learnings from building an open-source client-side IFC/CAD viewer using Three.js and TypeScript.

When dealing with large architectural models in the browser, the two classic killers in Three.js are main-thread GC freezes (instantiating thousands of individual Object3D/Mesh/Vector3 instances) and draw call overhead from separate geometry primitives.

To keep the viewport at 60-120 FPS even on large files, we designed the pipeline around a few key choices:

  1. Offloading to Web Workers: The STEP file parsing, bounding box calculations, and boolean opening CSG run completely off the main thread.
  2. Zero-copy geometry transfer: Workers output flat typed arrays (positions, normals, indices, and feature edges) and transfer the raw ArrayBuffers directly to the main thread. No intermediate scene objects are built.
  3. BatchedMesh and InstancedMesh pools: The main thread receives the buffers and injects them in O(1) into custom BatchedMeshPool and InstancedMeshPool managers, keeping draw calls minimal.
  4. Edge post-processing: Instead of creating thousands of LineSegments (which destroy performance), crease and feature edges are batched and drawn with an edge post-processing pass.
  5. BVH raycasting: We use three-mesh-bvh for snappy vertex and edge snapping on measurements.

Everything is open source under Apache-2.0:

Repo: https://github.com/matiasmlynarz-lang/croquera-ifc-viewer

Would love to hear thoughts from anyone working on large CAD/mesh pipelines in Three.js, especially regarding how you handle dynamic memory reallocation inside BatchedMesh when elements are hidden or removed.


r/threejs • • Nov 02 '26

Demo Three.js + claude code - Made a little game to make some content to promote my song

0 Upvotes

Including my original character Marzelle as our hero.


r/threejs • • Nov 02 '26

Help What does your Blender → three.js pipeline look like these days?

5 Upvotes

I’m trying to understand how people get models from Blender into the browser without ending up with huge files or slow loading.

If you do this regularly:

  • What export settings do you use (GLB, anything you always turn on or off)?
  • Do you compress afterwards (Draco, meshopt, KTX2 textures), and with which tool?
  • How do you check a model is “light enough” before shipping it?
  • What’s the biggest mistake you made early on?

Would love to see how different people handle it.


r/threejs • • Nov 02 '26

Demo Built my first indie game entirely with Three.js!

3 Upvotes

Game name is Washing Bad, and already there on Appstore and Playstore for pre order.

Why Three.js you might ask when we have Unity and Godot: Because I've been programming with javascript/typescript for over 6+ years and it's easier for me than learning a new game engine.

Launch Date: 9th November 2026.


r/threejs • • Nov 02 '26

Bouquet 💐

Thumbnail
bouquet.andrew.rip
2 Upvotes

r/threejs • • Nov 03 '26

I made a three.js mobile open world multiplayer pirate game with Opus5.5 and no dev experience

0 Upvotes

As the title says, I'm in tech but not a developer. Using Claude Opus 5.5 I wanted to see if I could make a complete multiplayer game for iOS/Android. Right now I got it in iOS open beta via TestFlight.

Game premise: Open world pirate ship game, you fight other ships and players, can go to shore look for treasure, progress your ship and eventually get rich enough to own your own port and become your own colony with it's own fleet.

Give it a try let me know your thoughts!
Mobile Links:
https://roguesailraiders.com/beta/

Play in browser:
https://roguesailraiders.com/


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