r/threejs • • Oct 30 '26

Three.js r187 released 🍎

453 Upvotes

r/threejs • • Sep 08 '26

Three.js r186 released 🥐

280 Upvotes

r/threejs • • 20h ago

Demo Full soft body simulation with sewing, free GLB exports and now ChatGPT integration

172 Upvotes

Hi! A month ago, I posted my clothing design tool here and received a few feature requests: custom character uploads, low-poly exports, skinned meshes, normal map baking, etc.

I've implemented all of them!

I've also added multi-layer clothing simulation and a ChatGPT plugin (MCP) that can create sewing patterns and generate textures.

The simulation module and GLB/FBX exports are free.

App combines both libraries - Three.js and Babylon.js.

Thanks for all the previous feedback! I'd love to hear how it runs on your device and what you'd improve next.

https://alterproduct.com


r/threejs • • 23m ago

I made Click-to-Source 3D v0.2.1

2 Upvotes

Hey r/threejs! A while back I shared Click-to-Source 3D, a Vite plugin that lets you click any mesh in a three.js or React Three Fiber scene and jump to the line of code that made it. It's now past 8,000 npm downloads, so thank you to everyone who tried it and sent feedback.

v0.2.1 is out, and it's focused on the part that comes after finding where something was made: finding the bug.

What's new

  • Used in: select a mesh and see every line in your project that touches it, not just where it was created. It follows the object through variables, class fields, refs (meshRef.current in useFrame) and helper functions across files, and marks which lines run every frame, on an event or on a timer.
  • Live values: watch the selected object's position, rotation, material values, uniforms like uTime and more change in real time, each with a little graph and a link to the line that writes it.
  • Pause, rewind and step: a video-style player on the canvas. Pause the whole scene, scrub back through the last 10 seconds, step frame by frame, then play on from where your app really was. Great for catching that one frame where something jumps.
  • Segment advice: for spheres, cylinders and the like, it tells you how many segments the object actually needs at its size on screen ("6,016 triangles · 28 is smooth at 66 px"), with a button to apply it.
  • Device info for AI assistants: if you use Claude Code, Cursor or VS Code over MCP, your assistant can now see your CPU, RAM and GPU and what the scene costs, so it stops adding things your machine can't handle.
  • Security and fixes: safer saving back to source, a hardened dev server, and a fix for particles (like dust in light shafts) stealing clicks from the objects behind them.

Setup is one command, with no imports or components to add to your code:

npx click-to-source-3d init

It works with plain three.js and React Three Fiber on Vite, and it's dev-only, so nothing ends up in your production build.

Limits, to be upfront: it's Vite only for now (webpack and Next.js are on the roadmap). The rewind replays object positions; it doesn't run your code backwards, so physics and timers in your app aren't rewound.

Here's a short demo of what's new 👇

This project was built with AI assistance.

Feedback and bug reports are very welcome, especially if something doesn't work in your setup. 🙏


r/threejs • • 23h ago

The most realistic environment I've ever created, inspired by A Knight of the Seven Kingdoms

71 Upvotes

I recently watched the show and was mesmerized by the starting scene where Dunk buries Ser Arlan. I watched it a couple of times, and that made me want to recreate the location.

I started by finding references of the real location, Hen Mountain in the Mourne Mountains in Northern Ireland, along with its geo data. That gave me the terrain and the surrounding mountains. Then I asked Claude to make artistic changes to match what I wanted instead of keeping it an exact copy.

The oak tree is a model I found on Sketchfab. The horses are also from Sketchfab. It's a single model, copied and recolored to make several different horses. The grass is done with my own grass system.

I spent most of my time on the lighting and mood. With some post-processing, color grading and screen-space god rays it actually feels like you're standing there.

Everything here is heavily optimized. The whole scene, including all textures and geometry, comes to 5 MB. It runs at 60 fps at 1080p on my M1 Mac.

Check it out: The Lone Oak


r/threejs • • 18h ago

Demo Voltane: an RC racing game built on three.js WebGPU, playable in the browser on PC and phones

16 Upvotes

Hey r/threejs! I've been building Voltane since 25 September: a full RC racing game that runs entirely in the browser on three.js (WebGPU), with Rapier for the physics and a Node server for online races. It's now in open beta.

The three.js side:

  • WebGPU renderer, also running on phones (Android, and iPhone/iPad in Safari)
  • Heat haze over the asphalt, grounds in relief and HDR output (our latest rendering update)
  • Real profiling and A/B runs instead of guessing, which is how most of the performance work got done
  • Opus 5.5 wrote the code; the cars come from Tripo3D, Blender was driven through MCP

Happy to dig into anything technical about shipping a game this size on three.js.

Latest updates:

  • License to Wreck: a brand-new Campaign opener that teaches you to break everything
  • 12 languages: the game and the site now speak twelve languages
  • Garage unboxing: every car leaves its box its own way
  • 22 title screens: every car gets its own poster
  • Hot air, relief and HDR: heat haze over the asphalt, grounds in relief and HDR output

Voltane in a few words:

  • 21 RC cars to collect, unbox and upgrade
  • 11 levels: the house, the garden, the attic, the bowling alley, the corner shop, the fun fair, the toy museum, the lagoon, and Maplewood by day, by night and under snow
  • 59 tracks
  • A Campaign: 89 events and 7 rivals to beat, boss duels included
  • Online: quick race, ranked (Spark to Storm), dedicated servers, private lobbies with a code
  • Cross-play between PC, mobile and browser, split screen for two, even online
  • Physics you can wreck: dominoes, breakfast tables, flower pots, picket fences…
  • Gadgets to throw at your rivals, nitro, rocket starts, drifts, flips and big air
  • Time trials, ghosts, free roam and mini-games
  • Controller, keyboard and touch, free to play

It's in beta and plays in your browser, on PC (also on the Microsoft Store, with DLSS), Android, and iPhone/iPad in Safari. Steam is coming; no launch date yet.

👉 playvoltane.com


r/threejs • • 7h ago

Demo Iterations is a procedural 3D maze game in Three.js + React inspired by the classic Windows 95 screensaver

2 Upvotes

iterations-game.com is now live!

The map regenerates daily & everyone plays the same map if they are logged in or select “play today’s maze”

You do not need an account to play, however you can sign up with google or your email to save stats & coins found on the run

beta players can play a new map every time they select beta mode / log out

I am so happy to release this game after years of tinkering. Please let me know your feedback on difficulty and controls

More difficult maps can be found in the players hub after you create an account and beat the daily maze!


r/threejs • • 16h ago

Demo I built a 24-day interactive 3D advent calendar of Babbage's Difference Engine No. 2 with Three.js (Day 1 live today)

7 Upvotes

r/threejs • • 17h ago

I built a browser horror FPS in Three.js with climbable enemy remains

Post image
5 Upvotes

In Arachnofobio II, dead creatures stay in the level and become geometry the player has to move around and over. The clip shows what happens to the same arena over the course of a run. I’d be curious how it feels on other machines once the floor starts filling up.

Browser build: https://arachnophobio.com/


r/threejs • • 19h ago

I made a shared Three.js night walk of Seoul – when people gather, their rings merge and the effects grow with the crowd

5 Upvotes

Hi r/threejs, nice to meet you all! This is my first post here, so I hope it's okay to share something I've been building.

I'm Korean, and I made this because I wanted to share some of the places in Korea I find beautiful.

Heads-up: the crowd in the video is test clients, so you can see the 30–50 person effects. Live, it's usually just a few people.

Seoul Night Walk: https://seoulnightwalk.com

It runs in the browser. Stroll Seoul at night with people from around the world, send off a wish lantern, and gather with whoever is there.

Some things I'd be happy to talk about:

  • the water reflections and lanterns on Cheonggyecheon
  • gathering: when people walk close together their rings merge, and the effects grow with the crowd (dancing at 10, a mirror ball at 30)
  • one Cloudflare Durable Object per server, 50 people each

Feedback on frame rate on your phone or laptop is very welcome.


r/threejs • • 11h ago

Demo Web Browser Flight Sim, all ThreeJS

1 Upvotes

https://theofs.vercel.app A flight simulator. it's all three.js + WebXR, with real satellite terrain, 240 Hz physics, and real 3D cockpits you can look around in, thoghts?


r/threejs • • 21h ago

Just pushed the limits with ThreeJS r187

5 Upvotes

Hello,

Started this project on 21 November, and developed until 25 November. With Fable 5.2 + Opus 5.5 plus Pixelfork GDK (WIP).

My game's name is Good Enough Racing Simulator - GERS. And looking for curious players for my game. If you are interested would love to send you an invite link to test and hear your valuable feedbacks.

Features:

- Designing your own track (endless possibilities for driving)
- Place a gopro camera on the body (it has a realtime recording stream on the gopro screen)
- Changing weather condition
- 24HR day time change
- Multiplayer - 2 players
- Best / Last Lap Ghost Car
- Endless mode: where the map is procedurally generated and never ends.
- Running 30-60 FPS on browser - tested on Macbook M2 Pro, and 5070ti (laptop).

Roadmap:
- Share your designed track with a link
- Car damage and crash Simulation
- Steady 60 FPS
- Adding more cars
- Letting players upload their own car (idk how to do it but it sounds fun)
- Adding Different Car Engine Sounds

I hit a lot of problems on optimization side. Because threeJS r187 has some limitations for rendering certain shaders. Did a lot of tricks for vegetation (still don't like the result).

Assets in the game:

Car: "2024 Porsche 992 GT3 R" by Dave Love on Sketchfab, licensed CC BY 4.0.
https://sketchfab.com/3d-models/2024-porsche-992-gt3-r-b76c9b2ae2d548c3869426eac4ab8a19

Asphalt: "Road009B" from ambientCG (2K version), licensed CC0.
https://ambientcg.com/view?id=Road009B

IMPORTANT NOTE: I'm a member of Pixelfork team. Not posting here to advertise the platform and telling you sign up and create your game. Because you will not be able to create this quality level game on the platform. Pixelfork GDK I used is not available yet. Just wanted to share my game with the community and hear some feedbacks.

Thank you all


r/threejs • • 14h ago

Help For a scripted animated episode in Three.js, would you use one master timeline or separate scenes per shot?

1 Upvotes

I’m experimenting with a series of animated comparisons called Argument Hunters. The finished episodes have narration, character scenes, moving cameras and big numbers that need to appear at the right moment. I’m looking at how to structure this kind of production properly in Three.js.

The creative workflow so far is ChatGPT for research and script development, Claude Code with Opus 5.5 for animation code, ElevenLabs for the voices and Suno for music. I direct and revise the output. Here’s one of our finished episodes for context: https://youtu.be/2NDyBGBPg7U

For those using Three.js for rendered films rather than an interactive app, how would you organise a nine-minute episode? One master timeline driving cameras, characters and text, or separate scenes for individual shots?

I’d particularly like to be able to jump straight to one shot, change its camera or lighting, and review it against the narration without disturbing the rest of the episode. Is there a structure or tool you’ve found reliable for that?

And from the viewer side, does this sort of code-animated comparison work for you? Curious what you’d change first in the example, especially the camera work and the way the facts are presented.


r/threejs • • 23h ago

We built a Three.js material library for real-world tiles

5 Upvotes

I’ve wanted to build this app for years. One detail I kept coming back to was scale. A 196 × 1200 mm plank and a 600 × 600 mm square can look pretty similar in a thumbnail until you see how many of each fit across a floor.

We built a material library around the options in the manufacturers’ catalogues. You can pick a design, explore its variations and finishes, and see which combinations of size and thickness it actually comes in. Right now most of the tiles come from Kajaria Ceramics and Somany Ceramics. I especially like the range in their collections, from narrow matte planks to polished floral tiles.

I’m happy with how it turned out. Curious what you all think of the preview. Is it easy to get a feel for the size of each tile from the video?


r/threejs • • 1d ago

Demo ThreeNative (free, MIT): Vibe-code 3D games on "Three.js on steroids" - C++ WASM/Rust engine, native desktop & Android, built-in MCPs & playtests

86 Upvotes

TL;DR: I made ThreeNative, a free, MIT game engine built around the Three.js API your coding agent already knows. You write normal Three.js, and an owned C++ engine renders it in the browser (WebAssembly on WebGPU), on desktop (Windows, macOS, Linux) and on Android. The 3D never renders inside a WebView.

The agent starts from a playable kit, gets assets through an MCP, and must play its own game before it can say "done."

Play a demo game made on it first:

  • Midway - Battle of the Pacific: play it · source
  • PS: It's a demo. Performance may vary depending on your hardware (like any other game)

Getting started

Ask Claude/Codex to run:

pnpm create threenative my-game

Or just point it at the repo. It will know what to do.

PRs welcome, AI-written ones too.

Why not plain Three.js?

ThreeNative IS Three.JS, with "steroids" :D

Three.js is great for AI: models know the API cold, there is no proprietary editor fighting your git diffs, and a link plays the game. But it is a rendering library, not a game engine.

You rebuild everything a game needs, for every game. Where is your LOD? Your world streaming? Your game is now 500 MB: do you stream assets, or do players sit on a loading screen forever, and quit? It also stays in a browser tab, frame rates fall once the scene gets heavy, and every new session the agent rewrites the game loop, guesses the physics glue and breaks the HUD.

ThreeNative keeps the API and adds the engine:

Small scene sample.
  • ctx.scene is a real THREE.Scene, so most Three.js code and tutorials your agent knows still work.
  • defineGame wires the game loop, input, Rapier physics (CharacterBody3D, RigidBody3D) and a React HUD out of the box. In native games, you can use a Native HUD, without an webview (or still use React HUD, but that particular section will need to be wrapped in a webview, not the entire game)
  • LOD, world streaming and asset streaming are built in.
  • It merges and instances meshes for you
  • If a feature is missing, write vanilla Three.js.

Not supported on the C++ engine: raw GLSL (ShaderMaterial, onBeforeCompile) and three's postprocessing addons. Use TSL node materials, or set engine: "threejs" to run stock Three.js on the web. No React Three Fiber yet.

Why not Godot, Unity or Unreal?

They are great engines, and for some games you should stay there. Here is why I'd build AI games on ThreeNative instead:

  • It's CLI based. No editor to install. Unreal is tens of gigabytes before you write one line. Unity wants a hub and an editor. Here the whole project is an npm install, and your agent never waits for an editor to open.
  • Your agent works in plain text it already knows. TypeScript and the Three.js API are all over its training data. Unity scenes and prefabs are YAML full of GUIDs. Unreal 5.9 Preview adds an official MCP so agents can drive the editor, but Blueprints and levels are still binary .uasset files that an agent cannot read or diff, and the editor must be running. Godot keeps scenes as text, but in my experience agents write much better TypeScript than GDScript.
  • The agent closes its own loop. The playtests run from the command line, with no editor window to click. The agent presses real keys on the real build, then checks game state, HUD, screenshots and frame time. The playtests fail closed, so "done" means it played the thing.
  • A link plays your game. The web is the main target, not an export option. Unreal's web export is back only as an experimental 5.9 Preview target that needs a C++ project and a source-built engine. The same code also builds a native desktop player.
  • Save, and the game updates in place. Vite hot reload is wired in every new project, and it keeps your game state and current scene. There is no C++ compile, no domain reload and no asset reimport between an edit and the result.
  • You stay on the web stack you already use. Chrome DevTools, the console, performance traces, npm packages and your normal editor. Your agent gets the same view through the Chrome DevTools MCP: screenshots, console errors and traces of the real frame.
  • MIT, no royalties, no revenue cap. Unreal takes up to 5% of gross revenue past $1M per game. Unity Personal stops at $200K a year in revenue and funding. Godot is MIT too, so this one is a tie with Godot.
  • Starter kits instead of a blank project. 27 genre kits (kart racer, platformer, FPS, stealth, survival horror and more) start with the mechanics, physics, HUD and passing playtests in place. Your agent spends tokens on your game, not on the game loop.

Stay on Godot, Unity or Unreal if you ship to consoles or iOS, you need AAA visuals today, your team works in a visual editor, or your game depends on raw GLSL shaders or a big asset-store plugin. ThreeNative is in beta, and those engines have years of tools that it does not have yet.

Dont-repeat-yourself: Starter kits!

ThreeNative takes a different approach from other engines. Whenever you ask your agent to start a new game, it looks for a relevant pre-built scaffold and builds on top of it (or starts with a minimal boilerplate, if it doesn't find anything). This has a few major advantages:

  1. A more powerful agent has already built the core mechanics and validated everything through playtesting to make sure it runs smoothly.
  2. Your agent doesn't start from scratch, so it doesn't waste a ton of tokens reinventing parts that, 70% of the time, barely change.
  3. With those tokens saved, your agent can spend them where they actually matter: polishing the game, adding custom mechanics, playtesting, and making sure everything works properly.
Many starter kits variations for common game mechanics. If not found, there's a minimal scaffold fallback.

Assets!

Let's be honest... The gamedev asset ecosystem was not made for the web. You can find a ton of free assets on FAB, for example, but until now, you couldn't do anything with them (they use a specific unreal format). Now, our asset MCP:

  • searches and downloads from Poly Haven, Sketchfab, Fab (free and owned assets) and other sources
  • downscales oversized textures
  • simplifies heavy meshes behind a before/after render check
  • converts some Unreal and Unity packs you own to GLB (Works for 90%+ of the case. Some older Unreal versions may have issues with the conversion. WIP)

Licenses, the two things people ask first:

  1. Yes, you can use Fab assets outside Unreal. Fab's Standard License allows any engine or tool, not only Unreal. Only legacy "UE-Only" content (old Marketplace packs, Megascans from the Unreal plan) is locked to Unreal, and the MCP refuses it.
  2. It blocks non-commercial assets by default. Non-commercial (NC), no-derivatives (ND) and editorial licenses are refused unless the agent passes an explicit override. A listing whose license it cannot read is refused too.

Also:

  • Paper trail: when it runs from your game folder, each file gets a .license.json next to it, and the credit goes into your game's CREDITS.md.

You do not get a license prompt: the agent makes the call within these rules. Still read the licenses before you ship, because Sketchfab licenses vary per model. The MCP is experimental.

Publish it

A free place to publish your vibe-coded games, open to everyone, ThreeNative or plain Three.js: store.threenative.com

The ThreeNative games store, with Starlance featured

Who pays for this?

The engine is MIT and free, and it stays that way. The MCPs are free too. I also build ThreeNative Studio, a paid hosted builder where you make a game from a chat in the browser. That pays the bills. You need nothing from Studio to use the engine.

Beta: bugs will happen. Please report them on Discord.

PS: Not switching? You can still plug your Three.js project into the asset MCP and all the others.

Ask me anything!


r/threejs • • 15h ago

Link I made a game where you cast spells by combining left and right clicks into hand signs

1 Upvotes

This is my first game on pc, made for a contest. It was based on my art and sketches so I'd love any feedback, thank you.

https://app.base44.com/launchpad/hup-play-now


r/threejs • • 1d ago

Demo Testing 1,200 rigged NPCs with individual pathfinding and physics in my Three.js engine

68 Upvotes

I’m building Snack Engine for snackgamer.com using Three.js and WebGPU. This is the latest navigation test, with 1,200 rigged NPCs in the scene. Each has its own pathfinding and physics.

The goal is to make crowded spaces playable in browser games. In this test, you walk through the crowd looking for lantern bearers.


r/threejs • • 14h ago

I recreated the Ferry Building and the Embarcadero Waterfront in San Francisco with extremely accurate recreations of nearby landmarks, live weather, and multiple POVs of the city.

0 Upvotes

I built an very accurate recreation of my favorite place on Earth: Embarcadero street in San Francisco: https://the-embarcadero.radiantsun9.chatgpt.site

You can pan and zoom, but I've also put in WASD view controls to let you explore. There's also POV options for riding the F Street Car and driving into the city on the Bay Bridge, which are also special places for me.

Absolutely no practical use to it, but I'm impressed by how far you can push browser 3D nowadays. I get a glimmer of emotion when I see some of the places here that have since closed, it's interesting to get that reaction from an artificial recreation in a browser.

I've not shared this yet, so idk if it'll actually work on every device, sorry in advance. Here's the repo with all the reference data I used: https://github.com/TomBunting1243/san-francisco-waterfront

Any critiques or ideas appreciated, I'm very new at this.


r/threejs • • 19h ago

The Cult Gathering — an interactive 3D pixel-art diorama in Three.js [sound on]

0 Upvotes

r/threejs • • 1d ago

Demo The Royal Game of Ur in three.js: no models or image textures, everything built in code

2 Upvotes

I've been building a browser version of the Royal Game of Ur (Mesopotamia, ~2500 BC) in three.js r128, and wanted to share some of the techniques. There are no model files and no image textures: the board, stones, pyramid dice, braziers and temple are all built from geometry in code, and the surfaces (wood, lapis, shell) are drawn on canvases at startup. The whole game is about 270 KB of code plus three.js.

Some things that might be interesting:

Rendering

- ACES Filmic tone mapping, PCF soft shadows from one directional light, and point lights in the braziers that flicker.

- Bloom and FXAA through EffectComposer, on the highest quality setting only. Phones default one level lower, and the lowest level turns off shadows.

- Particles (embers and dust) using Points.

Making it work on any screen

- The camera framing isn't fixed: it projects the corners of the board, trays and dice into screen space and moves in until everything fits between the top bar and the throw panel. Ultra-wide monitors get a tight frame; phones don't get a tiny board.

- Phones held upright: the camera turns 90° to look down the board's length, and the stone trays move beside the board, so the 3x8 board fills the width of the screen (squares go from ~36 px to ~45 px on a typical phone).

- Fog density is scaled by the camera's distance. A fixed density made the scene almost black on phones in portrait, where the camera sits much further back.

- Taps on touch screens snap to the nearest movable stone (or the square it would land on) within ~7 mm, since a fingertip is bigger than a stone seen from above.

Materials

- The stones were washing out under the overhead light. Switching from glossy to a satin finish (higher roughness, no metalness) fixed the bright patches without making them look flat.

Not three.js, but in the same spirit: the music is also made in code, with Web Audio. The lyre uses Karplus-Strong string synthesis.

Play it (free, no sign-up): https://goarcade.games/ur/

I'd especially like feedback on performance on your devices, and on the lighting and materials: does it read as stone and wood, or as plastic?

I built it with an AI coding assistant; the techniques above are what ended up in the code.


r/threejs • • 2d ago

I made this spreading stormy night alley effect with Three.js.

490 Upvotes

try it here: https://skillbay.dev/skills/typhoon-container-terminal and it's free to download now

repo: https://github.com/s045pd/typhoon-container-terminal

round1 -> round8

I went through at least 23 rounds of iteration to get to this final look.

final round

r/threejs • • 22h ago

Criticism Built a 3D card designer with three.js: foil, holographic, glitter and spot UV previewed before printing

1 Upvotes

Made with three.js: physical materials with environment reflections, plus custom shaders for the foil, holographic and glitter finishes. You can try it free here:

https://www.printplast.com/tools/3d-card-finish-visualizer/#studio

Feedback welcome, especially on the holographic effect.


r/threejs • • 1d ago

Link I turned my hometown on the Polish–Czech border into a game

10 Upvotes

I started making an interactive map of Kudowa-Zdrój, but my daughters had so much fun wandering around the virtual streets that I decided to turn it into a game :)

I’ve been experimenting with the latest AI models, and a few weeks ago I decided to build an interactive map of my hometown. I wanted to show people why I’d take them to Kudowa before some of Poland’s better-known mountain towns. Then I saw how much fun my daughters were having just wandering around the virtual streets, and I decided to turn it into a game :)

I built it in three weeks using public data. There are 144 km² to explore, so you can start with a walk through the park, head into the mountains, or see the whole town from a paraglider. If this gets even one of you to visit Kudowa in person, I’ll count it as a success ;)

I’ve attached a short trailer.

You can play here: https://kudowa-zdroj.kotrys.dev/


r/threejs • • 1d ago

Demo Almost Television Episode 6 is live, a weekly TV show made with Three.js

10 Upvotes

Everything here is rendered in three.js: no Blender, no video model! It plays in real time in the browser, then the final render takes around 5 hours on a 2070 Super. Each frame is drawn 16 times and averaged for antialiasing and depth of field, with ray traced soft shadows. The mirror in the opening is three's Reflector with a custom shader that adds a slight ripple.

I built the engine together with Claude, which wrote much of the code. ChatGPT and Gemini help with the scripts, the voices are ElevenLabs and the songs are Suno.

Happy to answer any questions about how it works.

You can watch all the episodes on our YouTube channel: https://www.youtube.com/@AlmostTelevision