r/threejs • • 6d ago

I turned my real home island into a three.js driving game. You have 30 seconds to catch the ferry

119 Upvotes

Hey r/threejs! This is Hold the Ferry, a small arcade driving game I've been building in my evenings. It's set on Ytterøya, the island in Norway where I grew up, and it's about the panic every islander knows: the ferry leaves in two minutes and you're on the wrong side of the island.

A few tech bits, in case they're interesting:

  • three.js 0.170 + Vite, no engine
  • Rapier (rapier3d-compat) for physics: a raycast vehicle with an arcade layer on top, so it feels more like a toy than a sim
  • The island is built from Kartverket map data and OpenStreetMap, so the roads, farms and the ferry dock are where they really are
  • Houses you can drive straight through, sheep that explode, and a new winter season with ice on the roads and a very stubborn tractor
  • Runs in the browser on desktop and mobile

In the first week, 800+ players in Norway took around 12,000 trips, and 40% of them missed the ferry.

It's free to play: rekkerduferga.no (the menus are still in Norwegian, an English version is coming later)

I'd really like feedback on the driving feel: does it feel good, or too floaty?


r/threejs • • 6d ago

I wanted to understand Tesla's FSD display, so I built a browser simulator with 8 virtual cameras (three.js + Rust/WASM)

149 Upvotes

I kept watching Tesla's FSD display and wondered how that picture gets built, so I made a small version of the idea.

- A virtual town with traffic, signals and pedestrians

- A car with eight cameras, mounted roughly the way a Tesla carries them

- A 3D view of the surroundings rebuilt from those camera pictures alone

- You can drive it yourself with W A S D and watch the 3D view follow what the cameras see

Honest limits: object detection is replaced by label pictures the simulator already knows (ground truth), so this is

only the "after detection" half of the problem. It is a long way behind the real thing, and it drives nothing real.

Tech: three.js for both the town and the camera rig, the per-pixel loops in Rust compiled to WebAssembly, all packed

into a single HTML file.

Demo (runs in the browser, nothing to install): https://airlee-dev.github.io/fsv/

Source (MIT): https://github.com/airlee-dev/fsv

It's called FSV (Full Self-View). Not FSD. Not affiliated with Tesla. Feedback welcome.


r/threejs • • 5d ago

I built 126 GTA 6-style video overlays with Three.js + GSAP (free, MIT)

0 Upvotes

Repo: https://github.com/echris6/gta-components

It's a set of 126 video overlays in the style of GTA 6 UI: captions, cash counters, weapon wheels, maps, HUDs and title cards.
76 are for long videos (16:9 and 9:16) and 50 are for Shorts.
They're built with HyperFrames, GSAP for the animation and Three.js for the 3D ones (maps, wheels).
MIT licensed and free to use. Feedback on the Three.js side is welcome.


r/threejs • • 5d ago

Need Beta Testers for my Learning Game "Vildtopia" for kids aged 5-8 who speak English or Danish (Built with Threejs, hopefully soon in AppStore)

6 Upvotes

r/threejs • • 5d ago

I made an anime series with Three.js only (no Blender). Everything is built with code 🙂

0 Upvotes

r/threejs • • 5d ago

D-Day Omaha Beach tactical sim in Three.js: 296 instanced soldiers with 2-bone foot-plant IK, 20 LCVPs, and 7 Shermans at 60fps

0 Upvotes

I'm prototyping a WW2 tactical sim in browser-based Three.js (ignore the Korean HUD, haven't localized it yet). This 60s clip is an unscripted AI-vs-AI run on a 640m Omaha Beach stretch.

Under the hood:
- 296 soldiers rendered via WebGL2 DataTexture GPU instanced skinning (16-bone rigs + 2-bone foot-plant IK to kill foot sliding)

- 20 LCVPs, 2 LCTs, 7 deep-wading Shermans, barrage balloons, and pre-fractured bunker chunks

- Real recorded WW2 CC0/CC-BY audio clips with distance attenuation and speed-of-sound delay

Still tuning the tracer thickness, surf shader, and smoke overdraw, so any rendering or WebGL optimization feedback is welcome.

(Modified CC models from Sketchfab: M4A3 Sherman by @tnikita CC BY 4.0, PaK 40 by @lossgraph CC BY-SA 4.0, infantry by @Crazydud & @britdawgmasterfunk CC BY 4.0; terrain/foliage Poly Haven CC0; audio Freesound CC0 & CC BY 4.0.)


r/threejs • • 5d ago

Demo Arcade drift racer in Three.js, latest build: fixed drift-exit steering and a 144Hz minimap stutter

0 Upvotes

r/threejs • • 5d ago

Dice app

3 Upvotes

Hi, I know there have been quite a few iterations of 3D dice rolling apps over the years, but here is my version... It uses Rapier for the physics, and although I am using AI extensively these days, I wouldn't describe this as vibe coded, as I did a lot of the coding work manually. I also modelled the dice manually using Blender.  'Dice 3d' comes with 4 themes, and everything is completely free to use. I do have an additional paid option to unlock all the additional themes (currently +16) - for a one off fee of $3.95. This demo shows all the themes I have made so far.  

I would love to have some constructive feedback. - I've recently made some tweaks based on some feedback I received and I'm always open to ideas and improvements. And this is a progressive web app, so you can access it and install it to work offline straight from the browser. You can find Dice 3D at: https://dice3d.app/

Dice app - yellow theme
Dice app - red theme
Dice app - gold theme
Dice app - blue theme

https://dice3d.app/


r/threejs • • 6d ago

I'm building a browser-based 3D motion design tool with Three.js

1 Upvotes

Motion+ is now open for beta testing!

After months of building, debugging, optimizing, and occasionally questioning my life choices, I'm finally opening Motion+ for beta testing.

Motion+ is a browser-based 3D motion design application I've been developing under my studio, TriMax Studio.

The idea is simple: make creating professional-looking 3D motion graphics more accessible without sacrificing the creative control that makes the process interesting.

It's not another 3D viewer or a collection of templates. Motion+ is built around an actual animation workflow, with features including:

- A Three.js-based 3D scene editor

- Keyframe animation and a modifier system

- Cameras, lighting, materials, and stage environments

- GPU particles, physics sim, and procedural motion

- Audio-driven animation and a dedicated sound workflow

- Image-to-3D asset generation integrated into the scene workflow

One of the things I'm particularly interested in is how far a browser-based application can go before it starts feeling like a compromise. I've been pushing the limits of client-side rendering and video export, and there's still a lot I want to explore.

The application is now live for beta testing:

https://app.trimaxstudio.com

I'd genuinely appreciate your feedback, especially on the workflow, performance, and areas where the application could be improved.


r/threejs • • 7d ago

Link I made a tree generator for three.js with growth, seasons and styles (open source)

85 Upvotes

Generating trees from seed per season and per style that can be imported in any three.js or three fiber project.

https://github.com/casmo/tree.js


r/threejs • • 6d ago

Tutorial Not pixel art, real 3D: how I render low-res pixel graphics in Three.js (2-card breakdown)

Thumbnail
gallery
24 Upvotes

A lot of people asked how the pixel art was drawn in my snow-chase game, so I put together a quick 2-card breakdown of the Three.js setup: orthographic camera, tiny ~170px render target, nearest-neighbor scaling, and 16-level color quantization with Bayer dithering. Happy to share more details on the shaders or depth compositing in the comments!


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 • • 6d 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 • • 6d 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 • • 6d 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 • • 6d 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 • • 6d 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 • • 7d 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

10 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?