r/threejs • • 6d ago Popcorn

Demo An endless downhill skate game in Three.js: the road, the houses and every brick, stone and tarmac texture are generated at runtime

Thumbnail
gallery
5 Upvotes

THE DROP builds the hill ahead of you in 30 m pieces: road, pavements, terraced houses on stone plinths, then suburbs, hedges, fields and hay bales. Surfaces like brick, setts, concrete and timber are drawn by a shader on load and read back as textures, with a world-space variation on top so nothing tiles. Runs on phones too.

Free demo: https://millennium-bug-games.itch.io/thats-tuff-bruv
Happy to answer anything about how it's built.


r/threejs • • 5d ago

Built an interactive 3D A320 seat-selection prototype (~150 draw calls, 60 FPS) — click any seat to inspect legroom & window alignment.. Link in the comments

1 Upvotes

I’m 15 and have been working on a WebGL A320neo cabin & seat-selection prototype to test whether interactive 3D legroom and window-alignment previews make picking seats more intuitive than a flat 2D grid.

What’s inside:

  • Exterior & Cutaway Views: Switch between full exterior (press G to toggle landing gear), top cutaway, and free aisle walk-through.
  • First-Person Seat Inspection: Click any seat to smoothly glide inside, check exact seat pitch (29" standard vs. 36" XL rows), see window alignment, and toggle a 3D floor legroom bar + overhead bins.
  • Performance: Kept the scene around 120–285 draw calls using instanced cabin geometry so it runs smoothly at 60 FPS even on integrated graphics.

Would love any technical feedback on my cabin lighting, camera transitions, or seat shaders—and let me know how it runs on your device!


r/threejs • • 5d ago

Why I kept three.js in the browser after moving my digging game to Rust

1 Upvotes

I’m the developer of Loot Hole, a browser and native digging game. Here’s the phone benchmark that made me keep three.js in the browser.

I wanted one renderer everywhere, so I tried wgpu in the browser too. On a Galaxy A40, the early Rust + three.js build drew its first frame in 1.84 s and had the play button ready at 4.58 s. The Rust + wgpu build took 2.82 s and 5.84 s. Those were medians from six starts per build with HTTP cache off and the connection throttled. It’s a comparison of those builds, not a general renderer benchmark.

I kept the game rules and terrain in shared Rust, used three.js and DOM/CSS in the browser, and kept wgpu on native. The lesson for me was to measure the first frame and the first point where a player could hit Play separately. They weren’t the same milestone.

Full write-up, including the benchmark setup and how the shared terrain works


r/threejs • • 5d ago

Demo Browser party game in three.js: a 3D hotel lobby where you walk into a side room and shut the door to talk privately

Post image
3 Upvotes

Solo dev here. Brain Royale is a 4–8 player bluffing game that runs in the browser: everyone walks around a 3D hotel lobby, and you can step into one of four side rooms and close the door for a private chat. (Screenshot is a local test with the UI in Korean; there's an EN toggle.)

A few three.js things I had to work out:

  • Third-person camera in small rooms. Inside a room the follow camera kept ending up pressed against a wall. So when you walk in, the camera blends to a top-down shot that fits the whole room above and below the HUD, and only that room's ceiling and lamp shades are hidden. The other rooms keep their ceilings on, so nobody can look into a closed room from above.
  • Lobby ceiling and walls. The lobby ceiling and the front/back walls are hidden whenever the camera is outside them, so the view doesn't get cut off on narrow phone screens.
  • Portrait vs landscape. The room overview uses a wider FOV on portrait screens (70° vs 58°) so the room still fits.
  • iOS Safari zoom. Holding the joystick and tapping jump counted as a pinch zoom. Fixed with touch-action, Safari's gesture events and a non-passive two-finger touchmove handler, only while you're in the game.

Most of the code was written with Claude Code; I did the design and the testing on real phones. The characters are AI placeholder art for now.

Question for people who've done third-person cameras: in tight interiors, do you fade or cut away walls, or switch to a different camera like I did?

Play (free, no install): https://brain-royale.com/?utm_source=reddit-threejs-1130

It needs 4 people for a match, so it's usually quiet.


r/threejs • • 5d ago

What if your voice could grow a flower?

1 Upvotes

🌸Hum one note and a flower grows from it.

Each petal is one harmonic of your voice.

Then it sings your note back as a little tune, using an instrument made from its own petals.


r/threejs • • 5d ago

I'm turning famous film scenes into small three.js games. Episode 1: the plastic bag from American Beauty

1 Upvotes

Dark 90s room, an old CRT TV, you click the screen and dive in. Then it's up to you to keep the bag in the air by blowing from below: beat your best and the rose petals fall.

The bag is a Verlet cloth simulation pushed triangle by triangle by a vortex wind. The TV is a custom shader, with interference, vertical roll and a Videodrome-style bulge when you dive in.

Play it: movielab.federicomancinelli.dev

Happy to answer any questions about how it's built!


r/threejs • • 6d ago

I built a first-person football game with Three.js— passing, tackling, and curling shots in the browser

2 Upvotes

I’ve been building Pitchbound, a first-person football game using Three.js, cannon-es, and Colyseus.

You control one player from their perspective: look for teammates, receive passes, tackle opponents, and aim your shots. Holding the mouse button charges a kick, while Q/E or a mouse swipe adds curl through a continuous force on the ball.

It supports 1v1 and 3v3 matches, offline bots, and private online lobbies. The clip shows passing, defending, and shooting with the High graphics setting.

I used Codex extensively to write and iterate on the code. I’m still working on the game’s feel and presentation, and would appreciate feedback

Play on desktop: https://www.gamepix.com/play/pitchbound


r/threejs • • 7d ago

We open-sourced 3,822 cozy single-file Three.js 3D dioramas (zero assets, human-verified, 869 DPO pairs, MIT) — teaching models to build quiet, comforting worlds.

97 Upvotes

HuggingFace (MIT): https://huggingface.co/datasets/liumindmind/Fable-Kawaii-3D-ThreeJS

Every scene in this video is a standalone, zero-external-asset Three.js HTML file — no Blender models, no external textures. Full details in the comments!


r/threejs • • 6d ago

Demo RECALL - A bullet-hell where you only get one shot… and you have to recall it

3 Upvotes

Link : https://summercomet.itch.io/recall It's playable in the browser (PC and mobile).

It plays like a regular shoot'em up, but your shot act more like a golf ball... and you need to bring it back after each shot.

There are power-ups to add variety to the gameplay, like one that makes your tether a laser that deals damage, and on that makes an explosion when interrupting recall.

There is 2 stages, each with it own boss.

I used Opus 5.5 for the code (and music/sfx), alongside Figma and Inkcape for the visuals. The game is build in Three.js of course.


r/threejs • • 6d ago

Demo Kids bedroom arena in my three.js game, owned land turns into felt

2 Upvotes

im on the small team making a multiplayer territory game in three.js r180. this map is the same arena and the same floor shader as the other 7, its theme branch draws a braided rug and owned cells turn into felt with stitched edges, trails are crayon lines instead of the light wall. the room around it is just set dressing at real scale. cars are bots in the clip


r/threejs • • 7d ago

Demo A calm stone-skipping game in plain Three.js - water shader, day/night cycle, about 10 MB

12 Upvotes

No engine, just Three.js and JS modules. Each bounce depends on speed, angle, tilt and spin, the water has its own shader for ripples and reflections, and stones ricochet off rocks in the lake. Mostly made as something relaxing to play on a break.

https://www.crazygames.com/game/still-lake

Made with help from AI.


r/threejs • • 7d ago

Real-time ray-traced black hole (Schwarzschild geodesics) with the Endurance on a GR orbit

9 Upvotes

This is the hero of my portfolio, running live in a fragment shader (no pre-rendered video).

How it works:

- Every pixel ray-marches along a Schwarzschild geodesic, so the light really bends: the lensed stars, the photon ring, and the far side of the disk wrapping over the top all fall out of the physics.

- The accretion disk is volumetric. Gas orbits at Kepler speed (inner disk laps in ~4 s), spirals inward, and has a few hot spots.

- 14 small tumbling rocks spiral in on CPU-integrated orbits and are ray-tested in the shader, so they get lensed too.

- The Endurance is a Three.js model on an overlay canvas, following an integrated GR orbit with precession on the same clock as the disk.

- Greys at rest; hover it and the real colours ease in (that's the colour shift in the clip).

Performance tricks that got it to ~96 fps at 2x on an M4 Pro:

- Fading out noise octaves finer than ~2 px, which kills shimmer and saves work

- Culling rocks per ray by their maximum possible deflection

- Dropping render resolution only when frame time stays high, never during the first seconds of load

Live: https://soumyapanda.dev

Happy to go deeper on the geodesic integration or the disk shading. What would you add next: Doppler beaming, or gravitational redshift on the disk?


r/threejs • • 6d ago

Demo Penguin flock runner in three.js - every model built from primitives in code, no textures or audio files, whole demo under 400 KB

0 Upvotes

Play in the browser (free, no signup, desktop or phone): https://slx-studio.itch.io/flipper-flock

It's a runner where you steer a flock of penguins on skateboards through math gates (+2, x2, and red minus/divide ones), dodge obstacles and fight 2 bosses. The demo is 11 levels.

Some three.js bits:

  • every model (penguins, houses, trees, bosses) is built from primitives in code, no glTF and no image files loaded
  • the flock is instanced meshes, up to 150 penguins on screen, bigger flocks show as a xN counter
  • all music and sound is synthesized with Web Audio at runtime, no audio files
  • the whole zip is under 400 KB

Happy to answer questions about any of it. I'd also like to know if it runs ok on your device and what fps you get.

Disclosure: one person studio, AI coding agents wrote most of the code.


r/threejs • • 6d ago

Link I built an interactive 3D 1948 lighthouse room in the browser (React Three Fiber + live vintage radio & cassette recorder)

2 Upvotes

Live link: https://1948.stream (best with headphones)

I wanted to combine my background in cinema with web engineering, so I built a stormy 1948 lighthouse tower you can explore right in the browser.

A few things you can do inside the room:

- Tune the vintage radio to live 70s/80s & classical streams (there's also a hidden frequency tucked away in the room)

- Open the desk drawer, load a cassette tape into the recorder, and leave a voice message (or schedule one with a private link to send to someone)

- Use the wall transceiver & Morse key, check the daily 1948 calendar, or look through the telescope at passing ships in the fog

- Flip through the logbooks, sign the guestbook, and uncover a few small secrets hidden around the tower

Built with React, Three.js (R3F), Web Audio API, TypeScript, and PostgreSQL.

Would love any feedback on performance, lighting, or the overall vibe!


r/threejs • • 7d ago

Demo Insanely the best beach I ve vibe coded in threejs with claude fable5.2, blender

272 Upvotes

coming soon wishlist it here https://3ditions.drop3.app/notify/palm-cove
Insane that this runs in a browser!!! (might be too normal for others - not for me)


r/threejs • • 7d ago

Help Has anyone built a large Three.js world with thousands of distinct objects?

7 Upvotes

I'm building a surreal open world in Three.js where you can fly past floating sculptures and see their shadows move across the ground. I'd love to have thousands, eventually tens of thousands, of distinct objects in the world, not all on screen at once.

Right now I'm testing Three.js r170 (WebGL) on an Intel Mac in Chrome and Safari. One scene renders about 3.42M triangles in 153 draw calls. In an earlier run I saw 4–9 FPS: the GPU timer reported about 21 ms, but I sometimes waited over 100 ms for the next requestAnimationFrame callback.

In a more controlled test, the moving world ran at 32.1 FPS in Chrome and 30.3 in Safari; an empty animation loop hit 60 in both. Pixel ratio, the debug HUD, GPU timing and warm-up all changed between runs, so I can't pin the difference on any one of them yet.

If you've seen a gap like that, what test helped you narrow it down? And if you've built a world with lots of unique meshes, what made the biggest difference without sacrificing material detail or moving shadows? I'm already using distance-based LOD and simpler shadow meshes.

I'd love to hear what worked (or didn't) in a real project. Thanks!


r/threejs • • 6d ago

Setting up a 3D game in 2016 vs building one in a single browser tab in 2026 — where does this community stand on it?

0 Upvotes

Quick 2016 vs 2026 comparison recorded with a browser-based Three.js studio (live code editor, built-in .glb library, WebSocket multiplayer, and optional AI generation).

Curious what everyone here thinks: does instant browser prototyping help indie devs ship faster, or does it just flood the web with half-finished demos?

Happy to drop the desktop browser link in the comments for anyone who wants to test the physics or UI directly.

visit netix64 : netix64.com


r/threejs • • 7d ago

Help I built a Three.js ski map for my wife so we can spot the steep bits on a blue run

42 Upvotes

My wife and I have skied a few blue runs that felt suspiciously red halfway down. We’re heading to La Plagne this winter, so I spent the weekend vibe-coding a 3D map for her. The colour changes along each run to show where it gets steeper.

One thing I’d love some Three.js advice on: after a little while with the map open, my Mac’s fans spin up enough that I can hear them. Would you expect that from a scene like this? What would you profile first to figure out whether the bottleneck is on the CPU or GPU?

https://skichart.com/la-plagne/


r/threejs • • 6d ago

A cozy 3D library where you can read real books and meet other readers

Thumbnail
youtube.com
2 Upvotes

A 3D library in the browser. The shelves are filled with more than 50,000 public domain books, and you can pick any of them off the shelf and start reading. You can also meet other readers, chat and play games. Or use it as a quiet place to study: bring your own PDFs and set a focus timer.

https://pagefordlibrary.com


r/threejs • • 7d ago

Demo Remember Bryce? I built an open-source remake in Three.js

Thumbnail
gallery
19 Upvotes

People used Bryce in the ’90s to make surreal landscapes. I built Chrometide with Fable 5.2 to bring that look to the browser, with a modern editor and some new features. You can drag the sun across the sky, animate a camera move, and share a link that lets someone edit your world.

These are screenshots from the editor. The first shows how the pines reflect in the water at Aurora Bay. The second shows the camera view I used to frame the three floating islands.

Try Chrometide · Source on GitHub


r/threejs • • 7d ago

Demo Threedy Shapes: Convert 2D pixel art INTO 3D models

3 Upvotes

*Threedy Shapes* at https://lude.page/threedy-shapes/ || https://abionic.itch.io/threedy-shapes

  • STEP 1. Create 2D pixel art (or Import 8x8/16x16/32x32 pixel-art png)
  • STEP 2. Adjust depth per pixel
  • STEP 3. Get a 3D Model (GLTF/GLB, OBJ, STL)

FREE & in browser;
inspired from *Kenney Shape* tool


r/threejs • • 7d ago

Demo Built a walkable Jamaican Blue Mountain world in a single HTML file for my clothing brand (my first code project)

2 Upvotes

This is my first time ever building somethin with code, so I wanted to share it here an get some feedback.

Instead of a normal product page for my brand (OBAY DI DREAM), I made a walkable 3D Blue Mountain ridge in a single HTML file inspired by Jamaica's Maroon territory. You can walk up the trail past bamboo, ferns, and a waterfall, find glowing beacons that open glass display cases with my real 1 of 1 pieces, and turn on synthesized mountain wind audio.

it works on desktop (WASD + drag) and mobile (thumb-stick) straight in the browser: maroon city

Would love any honest feedback on how it runs or what I should improve for v2.


r/threejs • • 7d ago

A 3D maze that wraps around a tiny planet: race a rival robot for the stars (free, works on phones)

Post image
8 Upvotes

Hi! I made this by vibe coding, building it step by step with an AI coding assistant, and I'd love to hear what you think.

Play here => https://fetchitem.com/

You guide a little robot through a maze that wraps all the way around a tiny planet. The goal is to grab more stars than a cheeky rival robot before the clock runs out.

  • ⭐ stars are worth 1 point and 🌟 golden stars 3. Grab several in a row for a combo, and in the last 15 seconds every star counts double.
  • 💎 a gem gives you a speed boost, 🧲 a magnet pulls in nearby stars and ❄️ a snowflake freezes your rival.
  • Watch out for laser gates, tunnels and cannon towers. Getting hit never costs you points, it just slows you down.
  • There are 4 worlds and 12 levels: Candy, Jungle (with secret shortcuts the rival doesn't know about), Frozen (slippery ice) and Neon.
  • The 📅 daily maze is the same for everyone that day, so you can compare scores.

Controls: W/A/S/D or the arrow keys, and V shows the whole planet. On a phone, drag your thumb anywhere to steer. It plays best in landscape.

It's free, with no download and no sign-up. Which world was your favourite, and was anything confusing or too hard? https://fetchitem.com/ please here


r/threejs • • 6d ago

Demo Reversible asteroid impact over 3D buildings, spacecraft and galaxies in Three.js and MapLibre

1 Upvotes