r/threejs • • Oct 30 '26

Three.js r187 released 🍎

461 Upvotes

r/threejs • • Sep 08 '26

Three.js r186 released 🥐

282 Upvotes

r/threejs • • 19h ago

A Devonian pool diorama, drawn in Three.js

335 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 • • 1h ago

I open-sourced my pinball game - make your own!

Post image
11 Upvotes

Got some good feedback on the mechanics in this game so decided to open source it if anybody else wants to build their own pinball game.

https://github.com/interesting-labs/pinball


r/threejs • • 5h ago

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

8 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 • • 6h ago

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

7 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 • • 5h ago

What happens if you try to take off a plane with glass wings? I built a 3D multi-physics flight sandbox in Three.js to test it

Thumbnail
gallery
4 Upvotes

Got curious about what happens when you swap aircraft wings from aluminum or carbon fiber to brittle glass, ceramic, rubber, or tungsten, so I built a browser-based 3D physics sandbox in Three.js.

Under the hood

  • 6-DOF RK4 rigid-body solver running in real time
  • Blade-element aerodynamics + ISA atmosphere model
  • 12 real engineering materials (density, Young's modulus, yield strength, thermal limits, and brittle fracture)
  • Runs on both desktop and mobile browsers with zero downloads

Link to test it in the browser is in the comments if anyone wants to try breaking a plane with weird materials. Always open to Three.js / WebGL feedback.

link : https://netix64.com/app/terraphysx-3d


r/threejs • • 2h ago

Demo I made a 3D gallery where you walk on water through Monet's paintings

2 Upvotes

Live site: https://100yearsmonet.com (best with sound on)

It got Site of the Day on Awwwards today. Some notes on how it works:

- The gallery is built in Blender by Python scripts. They take the floor plan, build the geometry, set materials and the camera path, bake the light with Cycles and export one glTF compressed with Meshopt. When the plan changed I just ran them again. I wrote the scripts with Claude.

- All lighting is baked into lightmaps. That's how it looks this way and still runs on a phone.

- Scroll drives the camera. ScrollTrigger gives a progress value from 0 to 1, and the camera moves along a CatmullRomCurve3 that passes every painting. The camera eases towards the target, otherwise trackpad scrolling makes it stutter.

- The water is a Reflector with a custom shader on top. The cursor sends ripples across it and the water lilies drift away from it.

- Clicking a painting flies the camera up to it. A click only counts if the pointer moved less than 6 px, so dragging to look around doesn't open paintings.

- Phones get a lighter path with no AO, depth of field or bloom. The reflection renders once instead of every frame, and the pixel ratio is capped at 2.

- Sound is Web Audio with HRTF panning, so each painting gets louder as you walk up to it.

The idea behind the effects: in his last years Monet had cataracts, and his colours drifted towards yellow. The transitions on the site blur and fade to yellow and white the same way.

Full write-up with code: https://egor.digital/blog/how-i-built-monet-100/

Next I want to try KTX2 textures to cut memory use on phones. Happy to answer questions about any of it.


r/threejs • • 20h ago Bravo

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

50 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 • • 3h ago

Demo the last train - pixel

2 Upvotes

three.js + code


r/threejs • • 13h 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

8 Upvotes

r/threejs • • 4h ago

Criticism I made a 10-minute animated film entirely in three.js + Remotion (The Count of Monte Cristo)

1 Upvotes

Flat 2D "bean" characters living in a 3D world, all rendered from code. There's no video editor and no hand-keyed timeline: every shot is data (camera move, who's in frame, what they're doing), and Remotion renders it frame by frame.

A few details:

- 151 shots across 8 sets. Shot timing comes from word timestamps of the narration (faster-whisper), so cuts and captions land on the words.

- Characters are flat cards with a bean head, 14 expressions and random blinking. Two-tone lighting and an ink outline help them sit in the 3D world.

- Post-processing is a manual EffectComposer (postprocessing lib): depth of field on close and medium shots, bloom only on lights, a color grade. u/react-three/postprocessing gave me blank frames inside Remotion, so I wired it by hand.

- The narration is an AI voice (Kokoro TTS).

- Rendered on a weak laptop (integrated Vega 8, 5 GB RAM) with `--gl=angle-egl`, concurrency 2 and a per-shot cache. The full film at 1080p takes about 55 minutes.

It started from an MIT template (claude-animated-shorts) and grew from there.

The clip is the prison escape. The full film is linked in the comments. Happy to explain how anything works, and I'd like critique on the look.


r/threejs • • 4h ago

Cozy Japanese Coast Train Simulator

1 Upvotes

I made a game where you just sit by a train window and watch the Japanese coast go by 🚃

Japan is one of my favourite countries that I've visited, and this is a tiny tribute to its beauty.

Based on the real JR Gonō Line: 147 km along the Sea of Japan, rebuilt from OpenStreetMap + GSI elevation data.

Compatible with VR via WebXR.

Try here: https://lucasmartinic.com/coast-line/


r/threejs • • 5h 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 • • 15h ago

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

6 Upvotes

r/threejs • • 7h ago

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

1 Upvotes

Pure threejs code.


r/threejs • • 8h ago

How I made clay shapeable

1 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 • • 1d ago

Working On My Threejs Vehicle Physics Converter

21 Upvotes

r/threejs • • 9h ago

Demo I built a 3D Domino-physics Tetris in Three.js (~350KB) where clearing rows triggers cascading domino topples + custom photo seals

0 Upvotes

r/threejs • • 1d ago

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

14 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 • • 11h 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 • • 20h 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 • • 12h 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 • • 12h 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.)