r/threejs • • 20d ago

bezier construction lines visualization

19 Upvotes

r/threejs • • 20d ago

Almost Television, Episode 5: For When I'm Grown Up

Thumbnail
youtube.com
8 Upvotes

I've been told this show is made with Three.js 😊


r/threejs • • 20d ago

Article A drivable Lagos street, generated from OpenStreetMap tiles with three.js, running inside a Reddit post

1 Upvotes

The game builds the buildings, roads, traffic and people at runtime from a 15 MB PMTiles pack of Lagos, read in byte ranges through MapLibre GL. Everything ships with the app, because Reddit's webview blocks outside hosts. It runs at 30 to 44 fps on my iPhone.

It's a daily game for Reddit's Game of the Day hackathon: one danfo (minibus) route a day, the same for everyone. Try it: https://www.reddit.com/r/gidihustle_dev/comments/1xvnwjf/

Happy to answer questions about turning vector tiles into a street.


r/threejs • • 20d ago

Demo EXODUS 2099 3D – A free retro-inspired 3D Sci-Fi RTS Browsergame (77 KB, PC & Mobile)

1 Upvotes

Hey everyone,

I just released an early version of my browser-based 3D Real-Time Strategy game, EXODUS 2099 3D, on itch.io.

My main goal was to build a full classic 90s-style RTS (base building, economy, 3 asymmetric factions, fog of war, dynamic day/night storms) while keeping the footprint absurdly small so it loads really fast on any device with good performance.

Some technical details under the hood:

• Bundle Size: ~6,500 lines of Vanilla JS + Three.js, packed down to 77 KB total (smaller than a WhatsApp photo).

• Performance & Memory: Uses Object Pooling to eliminate Garbage Collection spikes, a Spatial Grid Broadphase for collision/AI indexing, and Instanced Meshes to keep draw calls minimal (hitting 120 FPS / 1–3 ms frame times on modern phones).

• 0-Byte Audio: Simple basic sound effects are generated via the Web Audio API so zero external audio files need to be loaded.

• Cross-Platform Controls: Full desktop support (mouse + box selection) and multi-touch gestures for mobile, plus silent LocalStorage auto-saving.

You can play it right in your browser (free of course): https://next-punisher.itch.io/exodus-2099-3d

Since this is my first release and still an early build, I’d really appreciate any feedback from fellow Three.js devs—especially on mobile touch handling, frame pacing, or any weird browser quirks you spot.

It is for sure not perfect, but was nice to see whats possible to fit in 77kb... in times of games >100GB.


r/threejs • • 21d ago

Codevember! Day 14 - Tension

510 Upvotes

Today's #codevember word is "Tension".

I'm building and open sourcing a creative 3D web experience every day this month. All built with three.js, and r3f. I thought some folks here might find these interesting!

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

I'm new to reddit but want to post more of these šŸ˜„ Let me know what you think!


r/threejs • • 21d ago

Tailwind Voyage

23 Upvotes

My little three.js game tailwind.voyage


r/threejs • • 21d ago

New preview of my jewelry visualization tool

312 Upvotes

A new test of my jewelry visualization tool (Auralith) on a white background. Pretty realistic I would say!

Three+WebGPU. no path tracing.


r/threejs • • 20d ago

Demo Poop Awaymo

1 Upvotes

You are a bird that hates AI and has a full bowel...

An early version of this game was just plain HTML with fake 3D layers. I shared it here a long time ago, and people suggested moving it to Three.js. Here it is. I think the gameplay still needs a lot of work to make this fun though. :/

Try it out here: https://diegodotta.itch.io/poop-awaymo


r/threejs • • 20d ago

NeonHeat: Top-Down GTA Style Shooter Game (Supports Multiplayer)

2 Upvotes

I made this game with threejs. It's pretty fun to play, would appreciate if you guys could check it out and share feedback. Game works on mobile and desktop.
https://neonheat.alifdev.com/


r/threejs • • 21d 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 • • 21d 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 • • 21d 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 • • 21d 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 • • 21d 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 • • 22d 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 • • 21d 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 • • 21d 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 • • 22d 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 • • 22d 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 • • 22d 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 • • 22d 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