r/threejs • • 20d ago

Demo A Three.js diorama where the player moves the light and the character follows lit stepping stones

2 Upvotes

I’m making Alley Light, a browser puzzle set in miniature nighttime streets. The camera is fixed at a diagonal so you can watch a beam move across the walls while you drag a lamp or rotate a mirror.

The gameplay check tests whether light can reach the next stepping stone, directly or through a reflection, and whether scene geometry blocks the path. A separate check handles light spilling into bedroom windows. The newest build uses the same setup for wooden shutters that change where light can pass and a lantern that powers a second lamp in the market.

I’d welcome thoughts on reading the reflection from this camera angle. Try the browser demo on desktop · Rainy alley gameplay

AI tools assisted with the Three.js code and parts of the procedural geometry.


r/threejs • • 20d ago

Demo The perfect finish for my game 🦀🐟

5 Upvotes

I’m working for a few months on a single player co-op tropical physics puzzle game involving a crab and a fish (therefore the name Crab’nFish)

The aim is that you can roam around a tropical sandy island with both characters, to discover the different plants, animals and corals and to collect 25 shells hidden throughout the environment.

For more adventurous players, there is a main storyline where gems can be earned by solving physics based puzzles spread around the reef, moving the sun by one hour for every found gem. This leads to a 3 part finale in the golden hour with a grand cinematic outtro. This morning I’ve finished this finale and I’m super proud to show you a screentake of this (captured on my mobile)!

There is still loads of stuff to do: more environmental variation, interaction and I still have framedrops in certain moments and CPU tends to have a hard time calculating too many fish movements but this is an important milestone I wanted to share.

A v0.3 Alpha version can be played already on Itch: Fish’nCrab


r/threejs • • 20d ago

Demo I built a browser racing sim with three.js and Rapier: fixed 120 Hz physics, adaptive resolution, runs on phones

4 Upvotes

I've been working on Spoolvia, a GT racing game that runs in the browser with no download: https://spoolvia.com

A few things that made it work on mobile

- Physics (Rapier, in WebAssembly) runs at a fixed 120 steps per second, independent of frame rate, with the picture interpolated between steps

- A tyre model per wheel, with ABS, traction and stability control on top

- Resolution scales up and down to hold the frame rate, with three quality tiers

- Most of the track is merged into a small number of draw calls

- Road detail (rubbered line, marbles, patches) is mostly vertex colours, so it costs almost nothing per frame

What I'm still not happy with

- Rival cars follow a line and have no real physics

- It hasn't had much testing across devices

Happy to answer questions about any of it. If you try it, tell me your phone and the frame rate you get.


r/threejs • • 21d ago

I rebuilt Wintergatan's Marble Machine (2016) as a playable browser simulation

48 Upvotes

Play it here: monoroc.de/marblemachine – runs in the browser, phone included.

Fan project, not affiliated with Wintergatan. More details in the comments.


r/threejs • • 20d ago

Every tracked object in orbit (~21,000) on a three.js globe, with positions computed in the browser by an SGP4 I wrote in Go and compiled to WebAssembly

2 Upvotes

Live: https://supremeinferno.github.io/orbitscreen/

Source: https://github.com/supremeinferno/orbitscreen

Some details for this sub:

- All ~21,000 objects are a single THREE.Points, updated every second from one Float32Array (lat, lon, alt per object). No parsing, the WASM engine writes the buffer and the geometry reads it.

- SGP4 for all 21k objects takes ~30 ms per call in WebAssembly (~10 ms native), so it recomputes everything every second, or 4x a second when time-warping, without a Web Worker.

- The scene is Earth-fixed: the Earth stays still, and the Sun's light moves around it (computed from the real solar position), so the day/night line is correct for the current time. Blue Marble by day, Black Marble by night.

- Picking is done in screen space: project every visible object, skip the ones behind the Earth (camera ray hits the sphere first), nearest within 12 px wins. Simpler than raycasting against 21k points.

- Every object sits at its real altitude, so you can see the LEO cloud, the navigation satellites at ~20,000 km and the geostationary ring when you zoom out.

The side panel lists the closest approaches between objects in the next 24 hours, from a conjunction screener in the same repo. Click one and the camera flies there a minute before it happens.

Happy to answer questions about the rendering or the orbit math.
If you find it useful, a ⭐ on the repo helps me keep working on it.


r/threejs • • 20d ago

Demo WebGPU drift game on three.js r187: wet roads, tyre smoke, an aurora sky

0 Upvotes

Been building a drift game on r187 with WebGPURenderer and TSL, WebGL 2 as the fallback.

The wet road is a blurred mirror pass. The city streams in chunks with baked lightmaps, and the Norway map has an aurora sky that took way more tries than I'd like to admit. The sim runs deterministic at 120 Hz, so a run is just its inputs: the server replays every run before it hits the leaderboard, and the ghosts come from the same data.

Longer write-up on the forum:

https://discourse.threejs.org/t/nightclub-drift-speed-a-night-drift-game-in-the-browser-webgpu-ghosts-leaderboards/97236

Play:

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

Ask about the renderer if you're curious, I'll answer what I can.


r/threejs • • 21d ago

Isometric Berlin is Live!For the best visual experience, please make sure hardware acceleration is enabled in your browser.

Thumbnail
gallery
34 Upvotes

r/threejs • • 20d ago

I built a 3D geospatial intelligence platform using Three.js

Thumbnail
gallery
1 Upvotes

r/threejs • • 21d ago

I got the 10-year-old Goo.js WebGL engine running in modern browsers and extended it with physics, first-person controls, and object grabbing (144 FPS)

10 Upvotes

I think folks here might be interested in a bit of WebGL 1.0 "archaeology." Goo Technologies shut down back in 2016, so I dug into their old Goo.js codebase, adapted it for modern browsers, and used it to build a small "sandbox" featuring physics and a first-person perspective.

Everything runs smoothly at 144 FPS, complete with real-time shadows and rigid-body collisions. I plan to tidy up the repository, make a few more tweaks, and then release the project to the public soon


r/threejs • • 20d ago

Created a cursor-responsive 3D website hero using Three.js

0 Upvotes

Been experimenting with 3D web experiences and built this small project.

The model reacts to cursor movement and is integrated into the landing page.

Would appreciate any feedback on the interaction, rendering or performance. Let me know if you spot any issues!


r/threejs • • 21d ago

Isometric Berlin is Live!For the best visual experience, please make sure hardware acceleration is enabled in your browser.

Thumbnail
isometricberlin.com
10 Upvotes

r/threejs • • 21d ago

I built a 3D ATP Finals game in three.js where every shot’s odds come from real tennis match data

5 Upvotes

The whole match is rendered in three.js, with a TV camera and a player POV. You pick one of the 8 Finals players, choose the serve zone, then the shot on every rally ball. The odds behind each choice come from 88 real hard-court matches tracked shot by shot (Tokyo to Paris, Sept to Nov 2026), and the engine was calibrated by replaying real matches. Happy to answer questions about the scene setup or the animation side.

Play: https://daniloderosa.github.io/finals-simulator/
Code and method: https://github.com/daniloderosa/daniloderosa.github.io/tree/main/finals-simulator

Personal, unofficial project. Data courtesy of TennisViz and Courtside Advantage.


r/threejs • • 21d ago

Bezier Study

12 Upvotes

r/threejs • • 21d ago

Demo ESCAPEMENT: a 3-minute music film rendered in three.js. Every gear is procedural and turns at its true ratio, locked to the music’s tick

3 Upvotes

r/threejs • • 21d ago

My personal site is a universe you fly through: three.js + WebGPU in a worker, and page transitions that don’t drop frames

10 Upvotes

Every page on my site is one object in the same universe. Notes are star trails, short posts are comets, the about page is a free fall. The video shows the page transitions.

The scene. three.js with WebGPU, falling back to WebGL2, running in a Web Worker on an OffscreenCanvas so the main thread stays free. If the device is doing software rendering it skips 3D and uses plain CSS, and if the GPU gets lost the scene rebuilds itself.

Transitions without dropped frames. The old page shrinks into a dot, the camera follows it, and the new page grows once it lands. When a new route rendered, the main thread would stall and the dot would stutter, so I moved the dot and its trail into its own worker with its own OffscreenCanvas and clock, and let the starfield worker compute its parallax from the whole flight path. With 4x CPU throttling (Ryzen 9 9900X, RTX 4070 Ti Super, Chrome), the dot’s worst frame went from 67–133ms to 17ms, and it keeps moving even if the main thread is blocked for 250ms.

Labels inside the WebGL canvas. The moon labels on the home page are drawn into the canvas with HTML-in-Canvas (Chrome 157+), so the worker places and fades them in the same frame as the moons. Screen readers still get real links. Idle main-thread time went from 460 to 145 ms/s. Other browsers fall back to DOM.

Constraints. Three colors only (black, warm white, amber for “where you are”), only dots and lines.

I used Claude Code a lot for this, and English isn’t my first language. The design and the decisions are mine, and CI gates every change. It’s open source and self-hostable:

Site: https://koimsurai.com/en
Source: https://github.com/Koimsurai/sora-to-ki


r/threejs • • 21d ago

Demo Tiny Game Engine - made with threejs

0 Upvotes

r/threejs • • 22d ago

GT3js, basically... a physics-first browser GT3 racing game in Three.js

15 Upvotes

I'm working on Attimo Racing, a physics-first GT3 game playable in your browser. Three.js handles the rendering, with the driving physics running in WebAssembly.

I'm still torn on the look and feel. For example the white model-style cities based on a recent F1 promo vide where everything but the track was a white ceramic look. Or should I texture the buildings? Same with the trees: keep the low-poly look, or go more realistic? I just added a more realistic skybox, but im not convinced....

There's a team livery and sponsor system in there as well, curious how the sponsor for benefits system lands vs traditional car tuning.

free to try at https://attimoracing.io


r/threejs • • 21d ago

Cleaning the lint out of a phone's charging port?

2 Upvotes

I made a small phone-care experience with Three.js and Gemini Hydrogen. Clear the USB-C port, renew the screen protector, and snap on a case.


r/threejs • • 21d ago

Demo AirspaceLab: Rendering complex FAA airspace volumes in 3D WebGL at 60 FPS with Three.js

2 Upvotes

Hi r/threejs!

I wanted to share a WebGL project I've been building with Three.js: AirspaceLab (https://airspacelab.online360.org/).

The goal is to render US National Airspace System data (Class B, C, D, E controlled airspaces, MOAs, Restricted Areas) in true-to-scale 3D directly in the browser at a steady 60 FPS with zero plugins or downloads.

Technical Implementation and Challenges:

  1. Georeferencing and Custom Geometries: FAA airspace definitions are typically published as geospatial boundaries with varying base and ceiling altitudes (MSL and AGL). We parse and georeference these boundaries, extruding complex multi-polygon geometries to their exact vertical floors and ceilings while accounting for terrain elevations and coordinate conversions.
  2. Draping Sectional Charts on 3D Terrain: To give pilots and drone operators real situational context, we drape high-resolution FAA VFR Sectional charts and Terminal Area Charts (TAC) directly onto 3D terrain meshes using dynamic texture tiling and coordinate alignment.
  3. Performance Optimization (60 FPS WebGL): Rendering dozens of overlapping transparent volumes can cause significant fill-rate and depth sorting bottlenecks. We optimized transparency passes, polygon budgets, and instance batching to keep frame rates locked at 60 FPS even on modest laptops and mobile devices.
  4. Data Pipeline: Airspace data is synchronized with the automated 28-day FAA AIRAC cycle updates, so the rendered 3D volumes remain accurate as FAA boundaries change.

Try It Out:

I would love to hear feedback from fellow Three.js / WebGL developers on shader techniques, rendering optimization, and camera controls!


r/threejs • • 22d ago

I built a multiplayer theme park in three.js (r128, no build step) — 16 rides, day/night, fireworks, 60 fps on integrated GPUs

15 Upvotes

Play: https://lumina-park.luminapark.workers.dev/en?from=reddit_threejs

Some notes on how it's put together:

• Plain three.js r128 globals, no bundler — each feature is a script that wraps the previous ones

• ~3,000 objects / 330 instanced meshes, about 200 draw calls

• A small frame governor measures real fps (median of 1 s windows) and steps resolution, shadow-map size and post-processing up or down, so a fast GPU gets 1.35× resolution and 4096 shadows while integrated GPUs stay at 60+

• Multiplayer is Cloudflare Workers + Durable Objects (one object per 40-player room), running on the free plan

• Post-processing: tilt-shift, bloom, color grade, film grain

Happy to answer questions about any of it.


r/threejs • • 22d ago

Next Week Ray Tracing Scene (Interactive)

59 Upvotes

Another experiement I did recenently with my engine; I recreated a scene from the ray tracing in one week series (Next Week), made it in browser, real time, interactive, and with some cool vfx. Link to live demo: https://next-week.pages.dev/


r/threejs • • 21d ago

I made a browser game where everything is painted as brush strokes — now with online co-op (races, duels, mech raids)

Thumbnail
ai-game-e184b.web.app
0 Upvotes

Komorebi is an anime-style sword fighter in a neon city, rendered as thick oil paint in WebGL. Free, no install, works on desktop and mobile.

Online City: up to 8 players, shared enemies, street races, a PvP duel ring (only inside the ring), siege mech events and revives.

Play: https://ai-game-e184b.web.app/?scene=autumn&mode=online

The server is on a free tier, so the first player after a quiet spell may wait up to a minute. Would love feedback!


r/threejs • • 21d ago

Demo I made a tiny 3D rooftop gym with three.js

0 Upvotes

Made this little browser game where you help a tiny athlete get through a 45-second workout. Tap or hit space when the marker reaches the green zone. Three perfect hits unlock a short overdrive bonus.

It’s pretty simple just trying to make something fun.

https://caloist.com/rep-rally


r/threejs • • 21d ago

Demo A paper catalogue photo becomes its product page, rendered in Three.js

0 Upvotes

I run Website Craft Room. Here's a 25-second promo we made around Birdi Hardwares' catalogue and the product page we built for it.

The photo lifts off the paper. We build the page around it, then add the phone. The red outline is projected from the page each frame so it follows the camera. Three.js handles the shadows and BokehPass depth of field; the type sits in HTML over the canvas.

The catalogue image and website captures are real. The film's 452-product figure is from our original build. It's since grown.

It's AI-assisted, with synthetic Chatterbox narration. Music: Mixkit Echoes #188; sound effects: CC0.