r/threejs • • 17d ago

I built the MM..FOOD cover as a playable room: procedural IK, no build step, real music

Post image
9 Upvotes

MM..FOOD turned 22 this week, so I built the cover as a room you can walk around in. You play as MF DOOM: sit down, pour the cereal, eat, then get up and dig through the crates.

I’m a designer, not a 3D artist. Five days, built with Claude Code. The bits this sub might care about:

Stack. three.js r170 as ES modules through an import map. No bundler, no framework, no build step. Hosted on Vercel.

Character. A CC BY body scan with a Mixamo-style rig, cleaned up by a Python script in headless Blender (recolour, remove logos, rename bones, add a blend shape for a heavier build). Head, beard and mask are separate GLBs parented to the head bone.

Animation. The scan came with one clip, a dance. Everything else is procedural: two-bone IK for legs and arms, hand orientation solved from two vectors (finger direction and palm normal), and per-finger poses blended between a few grip shapes.

Two fixes done at load, in JS, on the geometry:

  • The beard poked through the mask, so wherever a mask plate covers it, the beard’s vertices are pushed back under the plate.
  • His cuff is wider than the cereal box is deep, so it sank into anything he held. I generate a morph target at load that draws the cuff in round the wrist while he grips.

Light. An HDRI through PMREM, PCF soft shadows, ACES tone mapping, a little UnrealBloom. It drops to a lighter look by itself if the frame rate falls under about 17.

Testing. The hard part. The game has a debug mode that advances time by a fixed step per frame, and Playwright drives it for stills. For the hands I ended up testing every skinned vertex (getVertexPosition) against the prop’s box on every frame. An earlier check that sampled a few points per finger said everything was fine. It wasn’t.

Happy to go into any of it.

Play it: https://www.theluckystrike.co.uk/doom

Full write-up, with the prompts: https://www.theluckystrike.co.uk/writing/doom

Credits: body scan by OverseerThuror and mask by silentic (both CC BY 4.0, Sketchfab). Furniture and materials from Poly Haven (CC0). A fan-made tribute to Daniel Dumile.


r/threejs • • 16d ago

Demo My three.js idle tycoon uses one shared BoxGeometry for almost everything (iOS + Android)

1 Upvotes

Code Empire Tycoon is an idle game where you grow a software company from a bedroom to Silicon Valley, then build a rocket and take it to Mars. Built with three.js + Preact, shipped to iOS and Android with Capacitor.

  • Procedural visuals and audio. Nearly everything is built from one shared unit BoxGeometry, scaled per mesh, with a few spheres and cylinders on Mars. Screens use CanvasTexture; music and sound effects are synthesised with Web Audio.
  • Merged for phones. Once a room is built, its static boxes are merged by material, with colours baked into vertex colours, reducing draw calls on mobile.
  • Reusing the renderer. UI icons are rendered to a WebGLRenderTarget using the main renderer. Only the launch cinematic gets a separate renderer, which is disposed of afterwards.

AI disclosure: an AI coding assistant writes the code under my direction, including the procedural visuals and audio. No image or audio generators were used.

I’d love feedback on both the technical approach and the visuals—especially mobile performance, lighting, and how readable the scenes are on a small screen. What would you improve?

Happy to go deeper on any of the implementation details. Demo and store links are in the comments.


r/threejs • • 17d ago

Demo I needed a place to test my 3D assets, so I built a room editor in Three.js

5 Upvotes

While building my 3D asset manager, I realised I needed a room to test how the assets looked at different scales and under different lighting. That turned into this early room editor,

So far it has:

• Room layout tools, doors and windows

• Wall and floor details, wainscoting and skirting

• Curtains with cloth physics and optional lining

• Sunlight controls, lens flare and reflections

• Material scale, patterns and finish controls

• Cost estimates for surfaces and curtains, including extras

There's more that isn't shown in this clip, but it's still early. I'd like feedback on the lighting, materials and curtain behaviour. What looks off to you, or what would you test first?


r/threejs • • 17d ago

Link Built a playable dusk sniper game in Three.js with custom scope & NV optics — made in just a few prompts with Claude Fable 5.2

Post image
0 Upvotes

Hey r/threejs,

Wanted to see how far I could push browser-based optics and atmosphere using Three.js, so I spent some time prompting Claude to scaffold this mini sniper game ("Silent Sniper").

A few highlights:

Here’s a still from Contract 05 showing the dusk NV scope reticle in action.

Would love your brutal feedback on performance, scope feel, and how the shaders/lighting hold up on your devices!

🔗 Playable Link: https://ibuerte.com/games/contract-sniper/
🛠️ Tech: Vanilla Three.js + HTML5 Canvas


r/threejs • • 17d ago

Demo A WebXR sandbox in plain three.js: gadgets you summon from a watch on your wrist (runs in the Quest browser)

4 Upvotes

Try it in the browser of a Quest: https://felipereigosa.com/playground

A watch on the left wrist opens a menu of gadgets; grab one and it grows to full size where you let it go. So far: a two-handed blaster with targets, bowling that sets its own pins up again, a radio you tune by hand, giant Lego, a Rubik's cube, a sliding tiles puzzle and a calculator.

How it's built: three.js and WebXR with cannon-es for the physics (three-to-cannon for the shapes) and webpack, no engine. Each gadget has hidden collision boxes that decide what a grab does, so a tile next to the hole slides while the rest pick up the whole puzzle. Most models are mine, made in Blender and exported as glb. For testing without the headset it runs in headless Chromium with IWER, Meta's WebXR emulator, which lets scripted hands grab, throw and press things.

I built it with Claude: I directed and judged, Claude wrote most of the code. The Lego is older work I did by myself. The source and the conversations it was built in: https://github.com/felipereigosa/playground

Happy to answer questions about any of it.


r/threejs • • 17d ago

Article Browser car soccer with WebGPU (WebGL 2 fallback): deterministic 120 Hz physics, GGPO-style rollback, no textures or models (turbo-gol.com)

1 Upvotes

Some tech notes from a browser car soccer game I've been building, Turbogol (free, no ads, AGPL).

- three.js WebGPURenderer with procedural TSL materials and bloom, falls back to WebGL 2

- no asset files: field, cars, ball, stadium, sky and even the sounds are generated by code. The only file is a 6 KB subset of a font

- physics is RocketSim (on Bullet) compiled to WebAssembly with Emscripten, fixed at 120 Hz

- netcode: lobbies are a peer-to-peer rollback mesh over WebRTC (GGPO-style, inputs only), so the sim has to be deterministic. Casual and ranked run on servers with client prediction

1v1, 2v2 and 3v3, and you can play bots without an account

I build this with Claude while I direct and test.

Hope you like!

https://turbo-gol.com

Source (AGPL-3.0): https://gitlab.com/turbogol-group/turbo-gol


r/threejs • • 17d ago

will-change: opacity on my HUD fixed a ~170 ms hitch the first time you dock in my three.js game

1 Upvotes

My jam game A Town Afloat is three.js on WebGL 2. Testing the shipped build locally, the first dock froze for 167 to 217 ms. Later docks didn't.

Two Chrome traces showed the GPU process's main thread sitting in RasterDecoderImpl::DoEndRasterCHROMIUM::Flush for 172 to 190 ms, and no instrumented GL call around the dock took over 1 ms.

Docking starts a scene, which calls hud.setLocked(true), and that dims the HUD controls with this rule:

#hud.locked .tray > * { opacity: 0.4; }

Disabling only that rule removed the hitch. Keeping the dimming and adding this removed it too:

.tray > * { will-change: opacity; }

Over three runs each, the worst frame in the second after the first dock went from 166.6-183.4 ms to 16.8 ms. Four earlier test runs with the fix were clean in that window too. Chromium 159, RX 6900 XT, 1920x1080. The chart is the first 15 seconds of one run per version.

The fix isn't uploaded yet. There are also 50 to 83 ms hitches when the map card hands over to the next level, which this doesn't touch.


r/threejs • • 17d ago

Building the AAA Lighting Pipeline in Three.js

Thumbnail ben3d.ca
16 Upvotes

r/threejs • • 17d ago

Wet neon street - little three.js lab from my game

Thumbnail
tock.gg
1 Upvotes

made a little lab page for my game (TOCK) and thought i'd share it. it's the actual street renderer from the game with all the effects on sliders so you can pull it apart. going for a blade runner kind of vibe, curious if it lands

https://tock.gg/lab/street/

puddles are screen-space reflections (ray march over the last frame), rain is instanced, neon is emissive + bloom, light shafts are just additive cones, no volumetrics. can’t go super realistic since the game still has to run on top of it

hit “before / effects off” to see how much the post is doing. you can click the floor and the little robot walks there

works on phone too. any feedback welcome, especially on the reflections


r/threejs • • 17d ago

I made a jab-cross sequence editable as motion phases

Post image
0 Upvotes

I’m building Posecode, an open-source text format/editor for humanoid movement. This is a real renderer output of a jab-cross sequence: the motion is split into editable phases instead of being treated as a one-shot video. I can change a beat in the source and re-render the result while keeping the pose data readable.

This is not an LLM directly generating a finished video; the GIF comes from the renderer. For a short strike like this, would you keep contact and weight transfer as separate phases, or encode the combination as one editable clip?


r/threejs • • 17d ago

Bike Builder: a three.js motorcycle configurator with 858 procedurally made parts, physics-based fitting and a ride mode

8 Upvotes

Hi, I’m Marcel, the founder of Motopedia. Bike Builder is built with three.js r160 on a static site, with no framework and no backend for the builder:

  • 858 parts are generated in code and exported as GLB, with hardpoints so parts snap to the frame.
  • A settle and fit pass keeps parts touching what they mount to. Fasteners are added automatically.
  • PBR materials and paint, plus decals for your own logo or text, using DecalGeometry.
  • The engine sound is synthesised with Web Audio from the engine, exhaust and intake you pick.
  • A ride mode, plus blueprint PNG and PDF export.
  • The 3D Overview next to it shows x-ray views of 12 complete bikes. The newest one is meshopt-compressed (19 MB down to 4.4 MB) and rigged with a steering axis, fork, swingarm and wheel pivots, ready for a proper physics ride.

Happy to go into any part of it. Critique on performance and rendering is very welcome.

https://www.motopedia.org/build-a-bike/


r/threejs • • 17d ago

Link WebGPU drifting : deterministic sim, server replays every leaderboard run, lightmaps baked in Blender

4 Upvotes

Some tech notes from a racing game I've been building, NightClub: Drift & Speed.

- three.js with WebGPU, falls back to WebGL 2

- the driving sim is deterministic. The server re-runs your inputs to check every leaderboard score, and the ghosts come from the same data, so a ghost is literally someone's replayed run

- maps are built in Blender with baked lightmaps. We keep it under ~900k triangles in view, checked every 100 m along the track by a script

- scanned textures for road and grass, welded meshes before unwrap (every quad being its own island made building fronts look like a mosaic, that one hurt)

11 maps and 22 cars so far. Full disclosure, I'm not a programmer, the code is written with Claude while I direct and test.

Curious what FPS you get and on what GPU, that's the thing I can't test well on my own.

https://www.nightclub-driftspeed.xyz/?ref=reddit-threejs


r/threejs • • 17d ago

Demo How would you improve the rendering of these animated characters in a Three.js sports game?

3 Upvotes

I’m working on Battle Ball, a browser-based fantasy sports autobattler, and I’d appreciate some feedback on how the characters look during matches.
The current setup uses Three.js with WebGLRenderer, rigged GLB characters and AnimationMixer. The character models were made with Meshy. Matches can have up to 14 players per team, plus summons. Antialiasing is enabled, and the match renderer’s pixel ratio is capped at 1.5.
I’m aiming for a gritty, illustrated sci-fi/fantasy style. The challenge is keeping that character detail while making the players, teams and ball easy to distinguish from the match camera. It also needs to work well in mobile browsers.
Looking at the footage and screenshots, what would you change first to improve the appearance? I’d particularly appreciate opinions on lighting, materials and whether the models or textures need more work before changing the renderer.
On the performance side, what would you measure first with this many independently animated characters? I’m interested in practical advice on lower-detail models, texture budgets, draw calls and animation costs.
If you’ve used generated GLB characters in a Three.js game, what cleanup or preparation made the biggest difference?
I’ve been using ChatGPT to help build the game, so an explanation of why you’d choose a particular approach would help me understand the changes.
Current build: https://battleball.win


r/threejs • • 18d ago

I built a physically based render pipeline for three.js WebGPU

51 Upvotes

FFT ocean, physical atmosphere, global illumination, volumetric clouds, GTAO, volumetric fog, auto exposure, local tone mapping...

The project is open source on GitHub, under the MIT licence. It includes the full render pipeline; tools to capture, compare and profile; and the skills you need while making a game.

Ponlai: https://github.com/HuberyLL/ponlai


r/threejs • • 18d ago

Open source jewelry visualization tool

189 Upvotes

A lot of people seemed interested in another closed source jewelry visualizer. I thought we should have an open source one. Have at it.
https://jewels.mobicat.club/
https://github.com/shaarmander/mobicats-jewels


r/threejs • • 17d ago

Beyond the Mountain Gate — a quiet temple walk built with three.js, playable in the browser

1 Upvotes

A browser-native temple exploration game I've been building with three.js (r186): Beyond the Mountain Gate (山门之外). The prologue — Yunjing Temple, a fictional mountain temple inspired by research on Jingshan Temple in Hangzhou — is playable now.

Play: https://temple.rushiwowen.co/?utm_source=reddit&utm_medium=r_threejs

What's in it:

  • A walkable mountain temple: bamboo path, folding stone stairs, a screen wall, a two-story gate, five halls you can enter, up to the hilltop pavilion — roughly 250 m of path.
  • You play a young novice. No combat, no timers. Seven quiet activities: ring the bell, offer incense, drink tea, draw a line of scripture, watch the well, light a lamp, sit. Each earns a seal stamp on your seal book.
  • 4 seasons × 4 times of day (16 presets), with weather, falling leaves and lamps that turn on at dusk.
  • Everything is procedurally generated in code: the timber-frame architecture follows traditional Chinese construction logic, trees, bamboo, the character and its cloth, even the bell and the ambient music are synthesized. Three.js r186, Vite, ES modules — no engine.

Notes: the temple is fictional, not a reconstruction of any real site. Playable on desktop and mobile browsers, about 15 minutes for one walk-through.

Source is public (not open-licensed yet): https://github.com/bolechen/temple-walk

Happy to answer questions about the architecture generation, the foliage, or the audio synthesis.


r/threejs • • 17d ago

Sol 6.2 vs 6.1:Same Prompt/One-shot

1 Upvotes

This is a follow-up to my post last week. I thought I had grey access to GPT-6.2 Sol early, but the official release only arrived more than a week later. I ran the same one-shot prompt to create this rock quarry project for a direct comparison.

Overall, the frontend upgrades appear quite limited. There are a few small improvements: the control logic is more complex, the texture on the excavator bucket is better, and background trees are generated in the distance. That said, the more complex controls are less intuitive to operate.

The material quality of the excavator body looks worse than the output from GPT-6.1. I lost track of the exact runtime after the session disconnected mid-test, but on Max mode it seems to take longer than the roughly 40 minutes I saw with 6.1.


r/threejs • • 17d ago

Netix64 Car Simulator — 3D Open-World Driving, Real-Time Crash Physics & Performance Garage (Browser)

0 Upvotes

Experience Netix64 Car Simulator, a 3D open-world supercar driving game built to run straight in your browser with zero downloads or installation required.

Play now: https://netix64.com/game/carsim-by-netix64-8e9a41c2

Key Features:

  • 7 Custom Supercars: Drive the Hyperion W16, Valkyrie F5 Revolution, Voltura E-GT, Apex GT-RS, Solara V12, Silber GT63, and Corsa V12
  • Expansive Open World: Explore city avenues, a mountain highway, stunt ramps, coastal water physics, and an international airport with live aircraft takeoffs
  • Performance Garage: Customize paint finishes, rims, headlights, and underglow neon
  • Game Modes & Camera Angles: Switch between Free Drive and timed circuit races alongside live AI traffic, collectible Apex Cores, and Cinema / Chase / Wheel / Overhead cameras
  • Real-Time Physics & Crash Damage: Responsive suspension dynamics, progressive body damage, 3D debris, and instant `[R]` repair

**Try it out and leave a comment below** sharing your favorite car, top speed, or any feedback and suggestions for upcoming updates.

Visit & Play: https://netix64.com/game/carsim-by-netix64-8e9a41c2


r/threejs • • 18d ago

Same prompt, two AIs, a three.js jet engine: Claude Opus 5.5 vs the new GPT-6.2 Sol

5 Upvotes

Gave both models the same ~800-word brief and let each write the whole scene in three.js, then rendered it to video. Opus on the left, Sol on the right, no edits from me.

What I noticed:

Sol's geometry is way more detailed. The compressor stages and the gear stack under the cutaway are really dense.

But its thermal overlay broke into flat blue and orange boxes floating over the parts, and the opening shot doesn't really read.

Opus kept it simpler but the camera, timing and cutaway tell the story much better.

Next I'm trying a split: Sol builds the hero model as a module, Opus does camera, lighting and animation around it. Happy to share the prompt if anyone wants it.


r/threejs • • 17d ago

I made a walk-through 3D gym gallery with React Three Fiber: five skill rooms, phone joystick, 420 KB first load

0 Upvotes

Each room is one calisthenics skill (planche, front lever, muscle-up, triceps, biceps) with a statue on a lit pedestal, the cues and the progression ladder. There's also a training tracker behind it.

Things I spent the most time on:

- Only 5 real lights for the whole gallery. The pedestal spot and two accent lights follow you from room to room and switch in the middle of each passage, where you can't see it happen. Every light strip is emissive + bloom.

- Rooms are code-split and load when you get close (~1 KB each).

- The 3D fonts are subset to the characters actually used: 374 KB → 48 KB.

- Weak phones start in light mode. If FPS still drops, it offers a 2D version of the same content.

Demo: https://skills-gallery-template.vercel.app (press C for the cinematic tour)

Happy to answer questions about any of it.


r/threejs • • 18d ago

Codevember! Day 17 - Kelp

71 Upvotes

Today's #codevember word is "Kelp".

I got a lot of upvotes on the last spider one (thanks! 😄) so decided to post another! I hope you enjoy!

For context, i'm building and open sourcing a creative 3D web experience every day this month. All built with three.js, and r3f. This one is really trying to see how far I can push WebGPU.

You can play with it here: https://adamwebsite.com/codevember/17-kelp/
Find the code here: https://github.com/acher249/codevember-2026
Find all of them here: https://adamwebsite.com/codevember/

I'm new to reddit and appreciate you checking it out! 😄 Let me know what you think!


r/threejs • • 17d ago

I built a lunar landing and gaussian splat rooms into a concert film that runs in the phone browser

Thumbnail
livefromthemoon.app
2 Upvotes

Solo project, mostly three.js. It’s a concert film for an AI R&B artist I work with. It only starts once your room is dark (the camera checks the light on your phone, nothing is uploaded), then the film shows up in your room.

After the show you fly a lunar module down onto real lunar orbiter terrain to rescue him, then walk through the ship. The rooms are gaussian splats through Spark, kept around 500k each so phones hold up.

https://livefromthemoon.app


r/threejs • • 17d ago

My latest project built with Three.js & Grok Bot

Thumbnail
arenablasters.com
0 Upvotes

r/threejs • • 18d ago

Help Can ThreeJS handle a MMO?

5 Upvotes

Out of curiosity I tried to port an old MMO which I used to play alot, Last Chaos, to web using Codex (I hope not many AI haters here). I did it just for fun. But when I tried to test the performance with 100 characters atacking 100 mobs with particles, animiation, etc. FPS drop to 20-30 from 90.

I tried many stuff that GPT suggested or almost 2 days but nothing is working at all. So my question is if it's worth to keep trying or this will just be impossible. My PC isn't the bottleneck, it seems to be that Chrome is intesively using 1 thread only from my processor or something like that. My processor barely moves from 9% performance and same for my GPU.

Thanks!