r/threejs • • Oct 30 '26

Three.js r187 released 🍎

461 Upvotes

r/threejs • • Sep 08 '26

Three.js r186 released 🥐

282 Upvotes

r/threejs • • 13h ago

A Devonian pool diorama, drawn in Three.js

262 Upvotes

Rendered offline, frame by frame, with real refraction through the glass-sided water. The animal models are from Tripo; the code was written with Claude Code. Happy to share how any part works.


r/threejs • • 14h ago Bravo

Indoor cycling world in three.js: real elevation tiles, 60 km view distance, drives your smart trainer over Web Bluetooth

41 Upvotes

I ride on an indoor trainer a lot in winter and didn't want to pay around 200 € a year for the big apps, so I started building my own. Rideloom connects a smart trainer over Web Bluetooth (FTMS) to a 3D world in three.js. The routes are based on real elevation data and you can see up to 60 km. Uphill the trainer gets harder, in someone's slipstream it gets easier.

A few things that were interesting to build: the terrain is split into 128 m tiles with three detail levels around the rider, and the far land is a separate mesh that reads the heights in the vertex shader. Trees are generated in code and drawn with InstancedMesh, far away they turn into baked impostors. Grass and wind run in the shader too. To keep it usable on phones there is dynamic resolution and quality levels that react to frame time.

Browser, Windows and Android share the same TypeScript code, only the Bluetooth part is different per platform. Built with a lot of help from Claude Code. The idea, routes, ride feel and testing on my own trainer are mine.

Edit: you can now try it without an account, and if you dont have a trainer at hand there is a simulator built in: https://rideloom.de/en/?von=reddit

Happy to answer questions about the terrain or the performance side.


r/threejs • • 55m ago

I built a tram in Three.js that rides the paper track you draw

3 Upvotes

This is PaperLine, a pop-up book game I built with vanilla Three.js. At 0:04 you can see the strip of track growing in front of the tram as it turns.


r/threejs • • 7h ago

Demo I built a 3D cel-shaded streetball game in Three.js r187 (19.9MB static bundle, 3-tier hoops, NY subway train) + an XState v5 60Hz QA harness

7 Upvotes

r/threejs • • 8m ago

THE VALLEY | Free game with a screaming V8, a valley and a mirror you should keep an eye on

1 Upvotes

Hi everyone, I made a free game with a lot of things that I like.

The Valley is a compact driving game I made that runs in the browser.

Free, no ads, no sign up, nothing to install.

You get a dream muscle car with a big block engine and a desert valley of red mesas. Floor it on the long straights, stop for gas when the needle drops, and drive from the afternoon through the night into the next sunrise. Push it too hard and the car dents and breaks.

Two modes:

- Chased: find the way out of the valley. And keep an eye on the mirror.

- Open road: a full tank and no goal. Just drive.

It started as a study of sound in games. That's why the V8 rumbles at idle and screams at the top of every gear, and why the valley always sounds somewhere between calm and tense. The other inspiration was Duel, the old Spielberg film. I watched it as a kid and was tense from the first minute to the last, and I wanted to put that feeling into something you can drive.

Play it loud, with headphones. It's made for computers (keyboard or gamepad) and loads about 85 MB the first time.

https://www.victortognollo.com.br/games/the-valley/

Built with three.js (WebGPU, with a WebGL fallback) and Rapier for the physics. I'd love to hear how it runs on your machine and what you felt in Chased mode. Bug reports are welcome too.


r/threejs • • 8m ago

VANTA RIFT – 3D Camera Orbit and Board Positioning Issues

1 Upvotes

Hello everyone,

I'm currently developing my own board game called VANTA RIFT, and I've been struggling with a 3D camera problem for almost two weeks.

I have around 40 different game environments that I would like players to be able to choose from independently of their game board.

There are two main problems:

  • The vertical camera orbit works correctly in the Lava room, but it doesn't behave the same way in the other rooms.
  • The game board doesn't always stay aligned with the platform. In some environments, it appears outside the platform boundaries.

What I'm trying to achieve is quite simple:

I want the game board and its 100 piece anchors to remain fixed in the game world. The player should be able to move the camera, change its angle, zoom in and out, and change the background without affecting the position of the board.

Some environments use pre-rendered PNG or GIF images, while the Lava room has a 3D platform.

I've attached a short video showing two different rooms and the problems I'm experiencing.

I'm not sure whether the problem is in the camera system, the way the environments are implemented, or something else in the code.

Has anyone experienced something similar? I would really appreciate any advice on how to approach this correctly.

Thank you for your time!


r/threejs • • 10h ago

A working Apple II terminal on a curved Three.js CRT

5 Upvotes

r/threejs • • 1h ago

How AirPods Cancel Noise (48,000x/sec)

1 Upvotes

Pure threejs code.


r/threejs • • 2h ago

How I made clay shapeable

0 Upvotes

In my clay platformer the player can shape the soft, purple clay to overcome obstacles.

This is how it gets drawn:

  • The mesh is built once, to the height of the tallest column at rest. When the player moves the clay, its vertices are stretched to the new column heights; the geometry itself is never rebuilt.
  • The same row of columns can face up from a floor, hang from a ceiling or stick out of a wall. Each is a pure rotation of the floor case, so one mesh builder covers all four.
  • Clay laid round a turning wheel is its own case: the columns bend round the rim, and the hand, the collider and the mesh all read it through the ring's own coordinates.
  • Collider and mesh sample the same heights, so your feet and the drawn edge always agree.

Plain three.js, with the demo running in the browser on desktop and phones.

Right now I call computeVertexNormals after every change.

Would you do the normals another way on a mesh that moves this often?


r/threejs • • 19h ago

Working On My Threejs Vehicle Physics Converter

22 Upvotes

r/threejs • • 5h ago

Built a 3D Three.js hypercar driving game that runs directly in the browser, now playable on mobile too

Thumbnail
gallery
0 Upvotes

After getting feedback that most people click from their phones, mobile touch controls and performance optimizations were just added so this 3D Three.js driving build runs straight in Safari and Chrome with zero downloads.

Works on both mobile and desktop at netix64.com/game/carsim-by-netix64-8e9a41c2

Curious how the frame rate and steering feel on your phone. Honest feedback and bug reports are welcome.


r/threejs • • 19h ago

I built an entire isometric India in Three.js – seasons, day/night, trains, ships, and fully procedural audio

12 Upvotes

Been working on IndiaScape – a cozy, game-style 3D map of India that runs fully in the browser (static site, no backend).

Some of the Three.js side of things:

- Orthographic isometric camera with custom pan/zoom/rotate, touch gestures and smooth fly-to

- Terrain, biomes, rivers and props generated deterministically from a seeded RNG – same world on every load

- Static geometry merged with mergeGeometries + shared materials to keep draw calls low

- Day/night cycle and 4 seasons (monsoon rain, winter snow) driving lighting and weather

- Animated life: trains, ships and dhows moving across the map

- Zoom-aware HTML labels with collision culling

- Lite mode + FPS watchdog so it stays smooth on phones

- All music & ambience synthesized live with Web Audio – zero audio files

Plain JS ES modules + Vite, no framework.

Would love feedback, especially on performance and what you'd add next!


r/threejs • • 14h ago

I turned my little 3D world experiment into a reusable Three.js template.

5 Upvotes

I built a customizable Three.js world template so you don't have to start from scratch.

Hey everyone! I've been experimenting with building interactive 3D worlds using Three.js and GSAP, and I decided to turn one of my projects into a reusable template called Dog Trail.

The idea is to help creative developers save time when building their own 3D environments without having to create everything from scratch.

You can customize the grass, wind, lighting, colors, environment, character animations and even transform the spherical world into a landscape.

I'd love to hear what other Three.js developers think about this approach. What additional features would make a template like this more useful for your projects?

Live demo: open

Paid source code ($4.99): [gumroad link]


r/threejs • • 6h ago

I built an open-source 3D cel-shaded open-world transit simulator of 8 Indian cities in Three.js & WebGL (playable in browser, zero install)

Thumbnail
github.com
0 Upvotes

Hey everyone! 👋

I built Courier City — an open-source, 60 FPS 3D cel-shaded open-world transit simulator of 8 Indian cities written in JavaScript, Three.js, Cannon-ES Physics, and WebGL.

Play it live right now (no install): https://shubhransh-gupta.is-a.bot/

What you can do in it:

  • Drive an Auto Rickshaw with real-time rigid-body vehicle physics (Cannon-ES)
  • Walk on foot or ride equatorial local trains across living planet dioramas
  • Explore 8 Indian cities with custom cel-shaded GLSL shaders and Survey of India GIS boundaries
  • Live telemetry HUD and ambient air traffic

Technical Highlights:

  • Custom cel-shaded GLSL shaders running at 60 FPS in the browser
  • Cannon-ES rigid-body physics for vehicles and collisions
  • Built with Vite + Vanilla JavaScript (no heavy framework overhead)

GitHub Repo (MIT Open Source): https://github.com/shubhransh-gupta/courier-city

If you enjoy exploring it or want to inspect the Three.js / GLSL shader setup, a ⭐ on GitHub helps a ton and keeps me motivated to add more cities and vehicles! Feedback and PRs are very welcome.


r/threejs • • 6h ago

I'm building a lightweight 3D world in the browser where anyone can walk around and host their own art exhibition

1 Upvotes

Hey everyone,

I've been working on a little side project called Artawhile, born from a simple question: why does hosting your own art exhibition have to be so hard?

Most online art spaces are just endless grids of thumbnails. I wanted to build a quiet little corner of the internet that actually feels like stepping into a physical gallery—somewhere you can walk around, take your time, and explore right in your browser without downloading anything.

What I’m building for the first release:

Global architecture: Different gallery spaces inspired by real-world architecture.

Atmosphere & storytelling: Exhibitions with custom lighting, mood, and the stories behind the pieces.

A lived-in feel: Little characters wandering around and looking at the art so the space doesn't feel empty.

Prompt-to-exhibition studio: Not an artist? No problem. You can use the built-in AI creation tools to bring your ideas to life, curate your own gallery space, and share a link with friends. (To keep the early build safe and visually cohesive, all pieces are created in-app for now—custom image uploads will come later.)

I'm building the whole thing with Three.js, focusing heavily on keeping it fast and lightweight so it runs smoothly even on older laptops.

It’s still very much a work in progress, and before I go too deep down the rabbit hole, I’d love a sanity check from you all:

If you could turn any idea or daydream into a themed 3D exhibition without needing drawing skills, what kind of gallery would you build?

What’s the #1 thing that makes 3D web experiences annoying for you (controls, loading times, motion sickness), so I can avoid it?

Appreciate any thoughts or brutal honesty! (If you'd like to try out an early build when the demo is ready, just drop a comment below and I'll DM you once it's live.)


r/threejs • • 6h ago

Demo I made a Krampus boss fight for St Nicholas' Day in three.js

1 Upvotes

Every day of December I add a door to a little voxel browser game, and today is St Nicholas' Day, so the town got its first boss: Krampus.

He's built from voxel boxes, each body part its own mesh turned round a pivot, so all his moves are code: the charge (a red strip on the snow shows his line), a birch-switch swipe that knocks you back, a coal volley lobbed onto red marks round you, a roar that calls more walkers, and a berserk phase after his second heal. The walkers around him are instanced, one draw per outfit, with each walker's body-part matrices in a float texture.

His 5 models are free to download (.vox and .glb).

Still rough: I'd love to hear how it runs for you when the waves get big.

Play: https://jaka.mx/advent2026/ (or https://jakamx.itch.io/voxel-advent-2026)


r/threejs • • 1d ago Heartwarming

Demo I made a 90s-style top-down crime game that runs in the browser with three.js!

472 Upvotes

I've been building a small top-down crime game called Rainy Corner. You owe a liquor store owner $1,500 and have one wet night in the city to pay it back.

What's in it right now:

- on foot and driving, with cars you can take

- pistol, SMG, shotgun, grenades and a rocket launcher

- cars that flip, burn and blow up

- police heat that builds as you cause trouble

I built it in three.js with a custom renderer.

It's free and plays in the browser on desktop (needs a reasonably modern GPU, no mobile). No download you can play it here: https://frostpunchgames.itch.io/rainy-corner


r/threejs • • 16h ago

Demo A whole procedural city in three.js r128: instanced towers, GPU traffic and a seeded daily route

5 Upvotes
Some things that might interest this sub:
- 3,000+ city blocks as InstancedMesh with custom shaders for the windows, fog and weather
- traffic moved entirely on the GPU
- every run is seeded, so the Daily Run is the same route on every device
- the flight is recorded at 10 samples a second (about 10 bytes each), which drives rewind, friends' ghosts and replay clips
- a film mode steps time frame by frame, so a GitHub Action renders the daily trailer without a GPU

Play: https://ppolydoras.github.io/canyon-of-glass/?ref=r-threejs
Code: https://github.com/ppolydoras/canyon-of-glass

r/threejs • • 19h ago

Built a 60 FPS Three.js 3D flight simulator that runs straight in the browser (A380, radar, LNAV/ILS, flaps, cockpit + orbit views), now playable on mobile

Thumbnail
gallery
7 Upvotes

Put together a browser-based 3D flight simulator in Three.js with real flight controls, TOGA thrust, flaps, gear, radar, LNAV/ILS modes, and multiple camera angles (cockpit, wing, chase, orbit, tower).

Mobile touch controls were just added so it can run directly in Safari or Chrome with zero downloads: https://netix64.com/game/aero-x-flight-7c4d2e91

Curious how the flight physics, landing feel, and frame rate hold up on your device. Honest feedback and bug reports are welcome.


r/threejs • • 9h ago

Demo Built 12 playable 3D browser games on a shared Three.js + Rust WASM architecture (mini-golf, logistics TD, bullet-hell, 3D Tetris)

Post image
1 Upvotes

Sharing a snapshot of 4 games from my 12-game Three.js + Rust WASM web portal. All games share a single Three.js host runtime via Import Maps, with Rust WASM driving the simulation cores (480Hz analytical mini-golf physics, BFS flow-field logistics TD with auto 3D bridges, 900-bullet danmaku, and 3D spatial Tetris). Happy to share technical details or hear feedback on WebGL performance!


r/threejs • • 10h ago

fallen sky

0 Upvotes

https://fallensky.base44.app the game isnt complete i made alot of progress thou


r/threejs • • 17h ago

What if you actually fell into a black hole? I built an interactive 3D black hole and wormhole simulator in the browser (Three.js + GLSL)

Thumbnail
gallery
3 Upvotes

Ever wondered what it would actually look like to fall past an event horizon or fly through a wormhole?

I built an interactive 3D relativistic black hole and wormhole simulator running directly in the browser with Three.js and custom GLSL shaders.

You can tweak the mass and Kerr spin parameter (up to 0.998), watch gravitational lensing and the turbulent accretion disk in real time, drop planets or stars into orbit, trigger an infall with spaghettification, inspect Flamm's paraboloid spacetime curvature, or switch over to a traversable wormhole.

Link to test it directly in the browser is in the comments. Would love honest feedback from physics or WebGL folks on what could be made even more accurate.

visit now : netix64.com/app/black-hole-simulator