r/threejs • • 19d ago

Three.js r187 released šŸŽ

449 Upvotes

r/threejs • • Sep 08 '26

Three.js r186 released 🄐

276 Upvotes

r/threejs • • 4h ago

Swinging Paint Simulator (Most satisfying thing i've ever built)

246 Upvotes

This is by far the most satisfying thing I’ve ever built.

You know those viral pendulum painting videos? Now anyone can make one in the browser.

Pull back the paint can, let it swing, and watch it draw.

Day 18 of #codevember and the word of the day is "Pendulum", so this is what I came up with. I can't stop playing with it, go try it out. Make one and post your painting below! All open sourced.

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


r/threejs • • 13h ago

I built a physically based render pipeline for three.js WebGPU

33 Upvotes

FFT ocean, physical atmosphere, global illumination, volumetric clouds, GTAO, volumetric fog, auto exposure, local tone mapping...

The project is open source on GitHub, under the MIT licence. It includes the full render pipeline; tools to capture, compare and profile; and the skills you need while making a game.

Ponlai: https://github.com/HuberyLL/ponlai


r/threejs • • 22h ago

Open source jewelry visualization tool

86 Upvotes

A lot of people seemed interested in another closed source jewelry visualizer. I thought we should have an open source one. Have at it.
https://jewels.mobicat.club/
https://github.com/shaarmander/mobicats-jewels


r/threejs • • 4h ago

Demo Doomscroll calculator that turns into a 39-second three.js film

3 Upvotes

https://neomarcopolo.co/cherrybrew/doomscroll-calculator/?from=rd_threejs

Put in your age and screen time and press Work it out. It flies you down a path made of your weeks, posts swarm in and build walls that close into a tube, the world folds up ahead of you, then it goes dark and photos from a life spin past.

Some details:

  • The path is defined once as numbers and generated into both the JS camera and the GLSL, so the camera and every object bend together, including the fold.
  • Everything is instanced ShaderMaterials animated in the vertex shader. The scene is about 1,700 lines in one file, no models.
  • Bloom only turns on once it's dark. A frame watchdog drops the post passes, then the pixel ratio, on slow devices.
  • No strobing, reduced motion is respected, and there's Skip.

Honest note: I didn't write it. Claude Fable 5.2 built it from my notes, and GPT-6.2 Astra did the last 3D pass. It's a promo for our Android app, so if you want a lifetime code for that, DM me.


r/threejs • • 7h ago

Help Can ThreeJS handle a MMO?

4 Upvotes

Out of curiosity I tried to port an old MMO which I used to play alot, Last Chaos, to web using Codex (I hope not many AI haters here). I did it just for fun. But when I tried to test the performance with 100 characters atacking 100 mobs with particles, animiation, etc. FPS drop to 20-30 from 90.

I tried many stuff that GPT suggested or almost 2 days but nothing is working at all. So my question is if it's worth to keep trying or this will just be impossible. My PC isn't the bottleneck, it seems to be that Chrome is intesively using 1 thread only from my processor or something like that. My processor barely moves from 9% performance and same for my GPU.

Thanks!


r/threejs • • 21h ago

I gave GPT-6.2 Sol (out today) the same 16 three.js prompts as every other model. Here's what it built.

51 Upvotes

I run threejseval, a site where AI models get the same three.js prompts (Eiffel Tower, sailboat, ferry, robot arm, cloth sim, fishtank, chess board, and more) and people vote blind on which scene is better.

GPT-6.2 Sol came out today, so I ran it through all 16. Its predecessor 6.1 Sol was one of the strongest models on the board, so I'm curious whether 6.2 holds up once votes come in.

Every scene is live and you can orbit around it in the browser:

https://threejseval.com/models/gpt-6.2-sol-high

If you want to help rank them, the blind vote is here:

https://threejseval.com/vote

Happy to share the prompts or answer questions about how the scenes are generated.


r/threejs • • 4h ago

I missed Firefox's Tilt 3D view, so I rebuilt it using threejs

Thumbnail
gallery
2 Upvotes

Firefox used to have a 3D view of the page in DevTools, but it was removed in 2016.

So I made Stackray. It uses the same idea, but I built it around debugging common frontend issues & It just looks cool as honk!

it reads the page once and works out what's actually on top of what, and why.
then it lifts the page into a 3d stack of layers inside a little retro mac window, so you can spin it around and see what's hiding behind what.
it all runs in your browser, nothing gets sent anywhere, and esc puts the page back like nothing happened

It runs locally and makes no network requests & most importantly, Its open source!
Here's the extension link(Chrome)(Firefox), do give ita try!


r/threejs • • 1h ago

Building the AAA Lighting Pipeline in Three.js

Thumbnail ben3d.ca
0 Upvotes

r/threejs • • 1h ago

Does a dedicated publishing platform for Three.js scenes make sense? I built an MVP

Post image
0 Upvotes

I’m working on Holm, starting with a simple goal: make it easy to publish an agent-built 3D scene and share an interactive link.

You can ask your coding agent to upload your project through MCP, or upload it yourself in the browser.

I know you can already host Three.js projects through general web hosts, and there are existing 3D platforms. I’m trying to understand whether a service focused on these scenes can make the experience meaningfully better.

The attached image is a Leifeng Pagoda scene running on Holm. Explore the interactive version here.

Worlds are currently unlisted, so you share them directly by link. Publicly listed worlds are coming soon.

I’d appreciate honest feedback: would this fit your workflow, or does your current hosting setup already solve the problem? If you’ve made a scene with an agent, I’d also love to hear what you’d need before using a platform like this.


r/threejs • • 1h ago

I built a lunar landing and gaussian splat rooms into a concert film that runs in the phone browser

Thumbnail
livefromthemoon.app
1 Upvotes

Solo project, mostly three.js. It’s a concert film for an AI R&B artist I work with. It only starts once your room is dark (the camera checks the light on your phone, nothing is uploaded), then the film shows up in your room.

After the show you fly a lunar module down onto real lunar orbiter terrain to rescue him, then walk through the ship. The rooms are gaussian splats through Spark, kept around 500k each so phones hold up.

https://livefromthemoon.app


r/threejs • • 5h ago

Same prompt, two AIs, a three.js jet engine: Claude Opus 5.5 vs the new GPT-6.2 Sol

2 Upvotes

Gave both models the same ~800-word brief and let each write the whole scene in three.js, then rendered it to video. Opus on the left, Sol on the right, no edits from me.

What I noticed:

Sol's geometry is way more detailed. The compressor stages and the gear stack under the cutaway are really dense.

But its thermal overlay broke into flat blue and orange boxes floating over the parts, and the opening shot doesn't really read.

Opus kept it simpler but the camera, timing and cutaway tell the story much better.

Next I'm trying a split: Sol builds the hero model as a module, Opus does camera, lighting and animation around it. Happy to share the prompt if anyone wants it.


r/threejs • • 20h ago

Codevember! Day 17 - Kelp

30 Upvotes

Today's #codevember word is "Kelp".

I got a lot of upvotes on the last spider one (thanks! šŸ˜„) so decided to post another! I hope you enjoy!

For context, i'm building and open sourcing a creative 3D web experience every day this month. All built with three.js, and r3f. This one is really trying to see how far I can push WebGPU.

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

I'm new to reddit and appreciate you checking it out! šŸ˜„ Let me know what you think!


r/threejs • • 7h ago

I made a multiplayer western FPS in Three.js that runs in the browser (PC & mobile)

2 Upvotes

Hi everyone! I've been building Cactus Clash, a free multiplayer western FPS that runs right in the browser (PC and mobile, no download).

You play as a cactus gunslinger in a low-poly western town. Recently I added:

- Quick Play: short 2–3 minute matches, bots fill the lobby so you never wait

- Classic mode (first to 5 rounds) with a cash economy

- Enemy bots that come looking for you if you stay out of the action too long

It's built with Three.js and a Node/Socket.io server. I'd love feedback on game feel and performance on your device, especially the first 2 minutes.

Play: https://playcactusclash.com/?ref=reddit

itch.io page: https://cactusclash.itch.io/cactus-clash


r/threejs • • 3h ago

Wisp, an experiment in giving AI a face

1 Upvotes

Chat is becoming one of the main ways we use the web,Ā so I wanted to see what happens when it gets a face.

Wisp turns to follow your pointer and talks when you click it.Ā You can also talk to it through the mic,Ā but it can't understand you yet,Ā so it answers with a few pre-written demo lines.Ā The mic only drives the sound wave on screen.Ā Nothing is saved or sent.

How it works:

  • The face is a FaceCap blendshape head (ARKit morph targets like jawOpen, mouthFunnel and mouthPucker). Each of the 100,000 particles is pinned to a point on its surface and moves with it every frame.
  • Lip sync is mostly a timing problem. The browser's Web Speech API only tells you when each word starts, so the mouth has to guess what happens inside the word.
  • ElevenLabs'Ā /with-timestampsĀ endpoint returns a start and end time for every character along with the audio. Mouth shapes are worked out from the text and placed on those real timings, and the audio clock drives the face.
  • ElevenLabs charges per character, so a build script generates every line once ahead of time. The site plays those cached MP3s and never calls the API, so no key reaches the browser. A live ElevenLabs mode also works, but it's dev-only.
  • Everything renders in real-time WebGPU in the browser.

Try it:Ā https://wisp.ginrin.com/


r/threejs • • 4h ago

Criticism Would a ā€œmirrorā€ of reputation make sense in a 3D app, or is it too abstract?

1 Upvotes

Hey r/threejs,

I’m thinking about how Lightverse could show Light, its reputation system, in a way that feels connected to the 3D universe.

The rough idea is to make Light a kind of mirror of contribution: show where an award came from, while the shared universe’s glow responds to contributions across learning, exploration and building. I haven’t settled on the metaphor or how much of it belongs in the 3D world.

Would you make the shared environment change, show the effects locally on planets and galaxies, or keep the reputation details in a separate interface? I’m especially interested in whether a ā€œmirrorā€ would help people understand the sources—or just make the system harder to read.

Light is server-recorded reputation, which also users and the whole system hold as value.


r/threejs • • 19h ago

Demo Finding Titanic: a submersible dive to the wreck in Three.js, with ten echoes of her story to find

14 Upvotes

A slow dive round the Titanic wreck in the browser. Ten small eerie moments from her story are hidden on it to find.

The bits that took the longest: a procedural rust and rusticle shader (domain-warped triplanar so it stops tiling, rust running down the plate laps), the nightmare and eventual pivot from using the mouse to steer, and having claude actualy fix up and repair parts of the model as neccessary.

I can't believe i didn't check, but I have also now learned there is already a couple games and apps that do this. Doh! But this one is free!

Desktop or phone: https://altroadstudio.com/findingtitanic


r/threejs • • 6h ago

Demo Built a multiplayer 3D learning game with React Three Fiber and AI coding agents

1 Upvotes

Hey everyone!

I am finishing 10th grade, and I've been learning programming on and off since I was 9. I guess whatever programming skills I've learned seem already useless. A bit of despair :)

Anyway, this year, I built something I'm pretty excited about: Volleyland, a multiplayer 3D game where you shoot your friends with questions instead of bullets! This is mostly vibe-coded, although my programming skills helped me to seperate concerns and tackle the problems. It's a multiplayer 3D game where players shoot questions at each other instead of bullets. When you get hit, you freeze until you answer a quiz question!

A few interesting things about how I built it:

  • React Three Fiber / Three.js: The entire 3D experience is built using React Three Fiber.
  • Procedural 3D generation: I can prompt an AI agent with something like "build a pirate beach", and it generates an entire 3D world.
  • No downloaded 3D assets: Trees, castles, characters and other objects are constructed programmatically using Three.js primitives.
  • AI-assisted development: I used Codex for much of the 3D implementation and Claude Code for the main application.
  • MCP integration: The game exposes an MCP server, allowing coding agents to interact with and modify the game.

The stack includes React, Next.js, TypeScript, React Three Fiber, NestJS and Socket.IO.

I'm particularly interested in exploring how far we can take procedural 3D world creation using coding agents, while keeping the underlying implementation understandable and maintainable.

Some links:

The project is open source. Feel free to explore, clone or experiment with it.

I would love feedback from the Three.js community, particularly on the 3D architecture, procedural generation and performance.

Thanks!

GitHub - rishi-io/volley-land

Contribute to rishi-io/volley-land development by creating an account on GitHub.

Ā 


r/threejs • • 1d ago

Demo PokĆ©mon Trail — a playable 3D browser game built with Three.js

29 Upvotes

I built PokƩmon Trail, a free, unofficial PokƩmon fan game running in the browser with Three.js/WebGL.

You control your PokƩmon in real time, dodge attacks, choose moves as you level up, and recruit companions. There are 10 Kanto-inspired zones across 20 playable parts, with camps, boss encounters and eight mini-games.

For the Three.js side, the trailer shows animated characters, different environments, combat effects and a companion party running together in the browser. Graphics settings include quality presets, render resolution and a frame-rate cap.

Play: https://pokemontrail.com/ — free, no download or signup.

New gameplay trailer: https://www.youtube.com/watch?v=FTS5sMP-VVc

I’d appreciate feedback on loading time, frame rate on your hardware, and whether attack effects stay readable. If you try it, please include your browser/device and graphics preset.

Disclosure: I’m the creator. AI tools assisted coding, some UI artwork, and the wording of this post. This is an unofficial fan project, unaffiliated with Nintendo, Game Freak or The PokĆ©mon Company.

Six screenshots from the game

Choose Bulbasaur, Charmander, Squirtle or Pikachu at the Viridian Forest trailhead.

Root Passage Camp — resting PokĆ©mon, Meowth’s Mart and Chansey’s Clinic.

Zone 3 Ā· Cerulean Riverlands — Nugget Bridge.

Zone 4 Ā· Vermilion Harbor — the S.S. Anne at sunset.

Zone 6 Ā· Lavender Haunts — the candlelit Memorial Garden beneath PokĆ©mon Tower.

Zone 7 Ā· Celadon City — the Game Corner and neon streets.


r/threejs • • 9h ago

Demo We took a humanoid robot apart without touching a screwdriver: 64 parts, 37 cables, straight from the maker's CAD into three.js

1 Upvotes

Eva is a small humanoid robot made by Robot LLC. They sent us the STEP file and we turned it into a page where one slider pulls her apart, and tapping any part moves only what is in the way of it.

How it is put together: the STEP file goes through OpenCascade (cadquery-ocp) into a glb, 833 solid pieces packed down to 64 named parts. The page is plain three.js with an import map and no build step. Each part has a parked position, a first move axis and a list of what it needs out of the way, and the 48-step build guide is just data on top of that.

The thing that ate the most time: parts flying through each other on the way out. We ended up writing a checker that runs every move and tests triangle against triangle, so a bad move fails before anyone sees it. A few parts still graze for a moment.

Her bigger sibling Adam is on the same page: 110 parts, 5.4 million triangles in the CAD, 0.4 million after packing.

It runs live on the maker's own site. Reddit removes links to that domain, so there is no link here.

Honest caveat: there is no wiring harness in the CAD, so the cable routes are our reading of it and the page marks them as unconfirmed. Built by us at Golden Harbour Games with Claude Code doing much of the typing. Questions about the CAD to glb step are welcome.


r/threejs • • 9h ago

Golf Melee: a daily mini-golf game in three.js where everything is generated in code (no textures, models or audio files)

1 Upvotes

Hey r/threejs! Golf Melee is a daily mini-golf game: every day at noon (Paris time) a new 3-hole course opens and everyone plays the same one. Version 1.0 came out yesterday.

A few things that might interest you here:

  • Nothing is loaded but the code: about 235 KB of JS with brotli, three.js included. Courses, textures, skies, sounds and music are all generated.
  • Each course comes from the date as a seed. The physics is deterministic with a fixed step, so the server replays your shots to compute the score instead of trusting the browser.
  • Materials are patched MeshStandardMaterials: planks, bricks, basalt with glowing cracks, ice, all computed from the world position in the shader, with bump from the pattern and contact shadows from a top-down map baked per hole. Seams fade into their average colour under ~2 px so they don't sparkle.
  • Skies are one shader per biome: drifting clouds and a far skyline, and for the space biome a starfield, a nebula and a ringed planet.
  • Ultra graphics adds instanced grass blades in a single draw call, and there's an AMD FSR 1 upscaler ported to WebGL for weaker GPUs.
  • Trails are a camera-facing ribbon with a style per trail in the fragment shader (flames, an electric arc, blinking pixels...).

Play: https://golf-melee.pages.dev

Happy to answer questions about any of it. Feedback on performance on your machine is very welcome too (add ?fps to the URL for a counter).


r/threejs • • 1d ago

Demo I made a low-poly 3D map of my college campus that runs on phones (OSM → Blender → R3F)

47 Upvotes

Live: https://roshanbinoj-iiitk.github.io/iiitk-campus-in-3d/

I got lost a lot as a fresher at IIIT Kottayam, so I built a 3D campus map. You can search buildings and rooms, get animated walking routes (A* over an exported walking graph, with uphill legs taking longer), and take an orientation tour. The sun follows local time, so at night the windows and street lamps light up.

It was inspired by a few of the city-in-3D projects people have shared, Mumbai 3D in particular.

How it's built:

  • One Blender Python script generates the whole campus from OSM footprints, a CSV of floors/colours/roof types per building, and a 30 m DEM. It cuts level pads into the hillside and adds roads, retaining walls, trees and the walking network.
  • Lighting is baked: AO in vertex colours and the sun shadow in a single 2048 px ground texture, so phones don't need real-time shadows.
  • Exported as glTF with Meshopt + WebP. Front end is Next.js (static export), React Three Fiber and zustand, with custom shaders for the sky, lit windows and colour grading.

Hardest parts:

  • Stuff that isn't in OSM. Two hostel blocks, their road and the main forecourt were missing, and some outlines were drawn in the wrong spot. I traced the missing ones from satellite imagery and photos into a separate GeoJSON, and added a per-building offset in the CSV to nudge bad outlines, so the generator still rebuilds everything from scratch.
  • The 150k triangle budget. That's everything in view, trees included. The campus model ends up under 800 KB, and a check script fails CI if triangles, file size, materials or textures go over budget.

Feedback welcome, especially on performance if you try it on an older phone.

Repo: https://github.com/roshanbinoj-iiitk/iiitk-campus-in-3d


r/threejs • • 11h ago

i can change my three.js vr scene by talking while i'm still in it. the tricky part was keeping the page from reloading and kicking me out of vr

1 Upvotes
i'm working on a thing where you change a webxr scene from inside a quest just by saying what you want. in the clip i ask for the targets to fall down when i hit them, then to move left and right, and both changes show up while i'm still standing there with the blaster.

the catch is that a page reload ends the vr session. so every change has to come in as a hot update. the ai writes files into a vite dev server, and vite only swaps a module in place if something accepts the update. my scenes load their assets and objects through a virtual module, and with nothing accepting it almost every edit became a full reload.

fun detail: vite finds a self accepting module by literally looking for import.meta.hot.accept() in the code. i first called it through an alias and it kept reloading anyway.

textures were the other bit. instead of remounting, the existing texture just gets a new THREE.Source with the new image and needsUpdate, so the materials pick it up where they are.

some changes still need a real reload, like a new npm package or the xr setup file, and then you just press enter vr again. haven't found a way around that one.

the clip is the raw recording from the headset with my own voice, i only cut out the waiting.

i'm building this, it's called turbl: https://turbl.dev/r/threejs

has anyone managed to keep an xr session alive through a real page reload, or is that just not a thing?