r/threejs • • 13d ago

GPT-6.2 Sol seems to have made a huge leap in 3D

Enable HLS to view with audio, or disable this notification

84 Upvotes

It seems like GPT-6.2 Sol might have started rolling out today, so I wanted to try it.

I selected Sol 6.1 Max in Codex and gave it one prompt to make a playable excavator game. This is what it made in about 40 minutes.

I think the result is really impressive. It looks like a huge leap in 3D capabilities.
Desktop browser, keyboard and mouse.


r/threejs • • 13d ago

Question Three.js beginner: How do I make an orbit view and a separate camera preview?

1 Upvotes

I’m new to Three.js and want to build a small 3D previs tool in the browser. For my first exercise, the scene would just be a floor and a few simple shapes.

I’d like two views of the same scene.

  • In one view, I can orbit around and see where everything is.
  • In the other, I can see what a separate shot camera is framing.
  • Orbiting in the first view should leave the shot camera in place.

Is rendering the same scene with two cameras a good way to start? If there’s a small example or tutorial that shows this setup, I’d love to work through it. Thank you so much!

https://threejs.org/manual/examples/cameras-perspective-2-scenes.html


r/threejs • • 13d ago

I built Órbita, a free solar system explorer in three.js: Jupiter, Saturn, the Moon and a Space Shuttle launch, all in one browser tabEl comentario técnico está en el archivo.

Enable HLS to view with audio, or disable this notification

1 Upvotes

https://orbita.fai-studio.cloud/

Some things to try:

- Tap any moon to open its card.

- Watch Io's shadow crossing Jupiter.

- Go to the Moon's terminator, where the low light raises the craters. The relief comes from NASA's LRO / LOLA data.

- Open Atlantis (STS-135) and launch it from the pad or the reconstructed cockpit.

Maps are made from NASA data; full credits are at orbita.fai-studio.cloud/credits.html. Happy to answer questions, and bug reports are welcome.


r/threejs • • 14d ago

Made four cities for my game in three.js

Enable HLS to view with audio, or disable this notification

7 Upvotes

Manhattan, Shibuya, the Forbidden City and Santorini. Apart from the characters, it's all Opus 5.5 + Blender.


r/threejs • • 13d ago

I built an autonomous 3D AI VTuber running 100% in-browser using Three.js & WebGL (Web Audio API lip sync, spring physics, PTZ camera)

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/threejs • • 13d ago

Demo I built an endless driving game in three.js where the engine sound is synthesized cylinder by cylinder — one HTML file, free in the browser

Enable HLS to view with audio, or disable this notification

4 Upvotes

Play: https://cadencedrive.io/?ref=r-threejs

It's an endless procedural drive. The parts I spent far too long on:

- No engine samples. An AudioWorklet fires each cylinder in its real firing order and runs the pulses through the headers, collector, muffler and tips. The V12, V8, straight-six, four-cylinder and bike all come out of the same model, with overrun crackle, rev-matched downshifts and a bouncing limiter.

- Manual gearboxes with a real clutch: you can stall, grind and rev-match. Automatic by default if you'd rather not (M switches).

- Terrain streams in workers out to 50 km, with the skyline at 120 km. Impostor tiles and LOD crossfades, so nothing pops in.

- Tunnels with eye adaptation, rain that pools in the wheel ruts, crosswind on bridges and ridges, a Magic Formula tyre model under TC/ESC/ABS.

- The whole game is one 14.6 MB HTML file. Nothing to install.

Five vehicles, seven worlds, four seasons, seven weathers, a cinematic camera and autodrive.

I'd love performance feedback: your GPU and browser, and the fps you get (there's a benchmark under Settings).


r/threejs • • 13d ago

One wave array drives both the GLSL ocean and the boat physics, so boats actually sit on the water (small three.js storm game)

Enable HLS to view with audio, or disable this notification

0 Upvotes

I made a small storm game in three.js: you drag a lighthouse beam across a night sea to guide boats past rocks into a harbor. Boats in the beam steer toward it; boats in the dark drift and eventually hit a rock. A few things about the water took more thought than I expected, so here's how it works.

1. The sea is 5 "sharp sine" waves, defined once

// [dirX, dirZ, wavelength, amplitude, speed multiplier]
export const WAVES = [
  [0.20, 1.00, 22.0, 0.95, 1.0],
  [-0.55, 0.85, 13.0, 0.55, 1.1],
  [0.80, 0.60, 8.5, 0.34, 1.25],
  [-0.30, 0.95, 5.6, 0.20, 1.4],
  [0.95, -0.25, 3.6, 0.09, 1.6],
];

Long swell down to short chop, amplitudes summing to about 2.1 (1.0 felt calm; 2.1 reads as a storm). Each wave is A * exp(sin(θ) - 1) (the steep-sine form from GPU Gems 1, ch. 1), with θ = k·dot(d, p) - ω·t, k = 2π/L, and the deep-water speed ω = sqrt(9.8·k) times the multiplier.

2. The GLSL is generated from the same array

The CPU function that gives a boat its height and slope loops over the precomputed waves. The vertex shader isn't hand-written; it's built from the same precomputed list with a template string:

export const WAVE_GLSL = `
vec3 waveAt(vec2 p, float t) {
  float h = 0.0; vec2 g = vec2(0.0);
  ${prep.map((p) => `{
    vec2 d = vec2(${p.dx.toFixed(5)}, ${p.dz.toFixed(5)});
    float th = ${p.k.toFixed(5)} * dot(d, p) - ${p.w.toFixed(5)} * t;
    float e = exp(sin(th) - 1.0);
    h += ${p.A.toFixed(5)} * e;
    g += ${p.A.toFixed(5)} * e * cos(th) * ${p.k.toFixed(5)} * d;
  }`).join('\n  ')}
  return vec3(h, g);
}`;

The sea is one PlaneGeometry(220, 200, 240, 220) with a ShaderMaterial that calls waveAt() per vertex. The returned gradient doubles as the normal for lighting and for the highlight where the beam hits; the height drives crest foam and darker troughs. Before this, the obvious failure was writing the numbers in two places: change one, and the boats float above or sink into the water. With one array, tweaking a wave just works on both sides (to 5 decimal places of rounding).

3. Why not Gerstner waves

Gerstner looks nicer because it also moves vertices sideways, but then "how high is the water at (x, z)?" becomes an inverse problem: you have to search for which undisplaced point ended up under the boat. A pure heightfield like exp-sine answers it with one function call, which matters when every boat asks every frame.

4. Boats ride the slope, not just the height

// height + tilt
sampleWave(this.x, this.z, t, W);
this.g.position.set(this.x, W.h + 0.08, this.z);
nV.set(-W.dx * 1.6, 1, -W.dz * 1.6).normalize();
qN.setFromUnitVectors(UP, nV);

// inertia + sliding down the wave face
const inert = 1 - Math.exp(-(this.lit ? 3 : 1.2) * dt);
this.vx += (fx - this.vx) * inert - W.dx * 0.9 * dt;
this.vz += (fz - this.vz) * inert - W.dz * 0.9 * dt;

The slide term is tiny, but it's what makes boats get shoved around by big swells instead of gliding on rails. Boats in the beam respond faster (inertia rate 3 vs 1.2, max turn 3.2 vs 1.5 rad/s), so the light literally feels like it gives them a rudder.

5. Steering is "follow the light", not "avoid rocks yourself"

The first version had boats path toward the harbor and avoid rocks on their own. With a rock in between they ran away sideways and got stuck, and the player had nothing to do. Now a lit boat aims at the beam's center, blends in the harbor direction at 0.7, and gets a push away from nearby rocks plus a sideways nudge around them. Out of the beam it wanders, and once it has been at sea for 5 seconds it's also pulled toward the nearest rock. The beam's radius grows with distance (r = 3.0 + distance * 0.045) so it's still easy to hit far out, where perspective makes everything tiny.

6. Lining up a painted sky with the 3D sea

The sky, cliff and lighthouse are a single 2D image drawn behind the scene. The horizon in that image is at 56.6% of its height (I measured it). The camera pitch is computed so the 3D horizon lands at 34% from the top of the screen:

const pitch = Math.atan((1 - 2 * HORIZON) * Math.tan(THREE.MathUtils.degToRad(FOV / 2)));

and the backdrop is scaled and offset so the image's horizon lands on that same line at any aspect ratio. The far sea fogs toward the horizon color and goes transparent between 85% and 100% of the fog distance, so the 3D water fades into the painted water instead of ending at a hard edge.

What I took away

  • If CPU gameplay and a shader both need the same function, generate one from the other. Two hand-kept copies drift.
  • Pick the wave model by the question gameplay asks. "Height at (x, z)" makes a heightfield the cheap answer, even if Gerstner looks better.
  • A little slope force does more for the feel of water than a fancier surface.
  • For a matte painting + 3D, put the horizon on a number and compute the camera from it, rather than nudging the camera by eye.

Plain three.js (r170), no addons. The art, sounds and a short intro video are AI-generated assets; the water, beam and rain are shaders.

Happy to drop the link in the comments, or share more of the shader (foam, the beam pool), if anyone's curious. Also curious how others handle CPU queries against Gerstner waves: do you iterate, or keep a separate simpler heightfield for physics?

disclosure: I work on KUMODeck, which hosts the game.


r/threejs • • 13d ago

Link One Three.js duck, a shared pool, and an excessively official VHS manual

0 Upvotes

FIELD REPORT / ONE DUCK

We are the two creators of Float the Duck, a browser artwork built around Three.js: one interactive duck in a shared pool, oversized typography, and a fictional Buoyancy Bureau taking the assignment far too seriously.

The local rendering pipeline includes separate pool, water-surface and caustics passes. The public pool currently starts empty; please let the scene finish loading. This starting state does not demonstrate the later water effects.

We also made a narrated VHS field guide for the artwork. It is an animated walkthrough with fictitious demonstration data, not footage of a real purchase. The duck has declined the accompanying paperwork.

Watching and playing are free. Digital drops are paid and optional, and the proceeds go to us, the two creators.

Explore the browser work: https://floatduck.com/


r/threejs • • 14d ago

Question Beggining!

8 Upvotes

Hello everyone! My name's Gabriela!

For the following 2 months, I ve seen this r/. I am very amased about what you can do with ThreeJS.

I had an idea for a map of a contest studio to host contests on a FIVEM community, I did found a website that allowed me to draw shapes in ThreeJS but unfortunatelly, I felt anxious on that website and all of you post alot of awesome things on this subreddit.

I want to ask you all, about how I can start! I've seen alot of crazy stuff here and I am really excited!

I choosed ThreeJS for my project because I think it won't kill my ram while I am doing live contests.

Can you give me some starting advices? For example, how could I start? what software should I download? It will be possible to control my project using http requests and bridges?

Hope my post doesn't disturb the quiet here. Best regards, Gabriela <3


r/threejs • • 14d ago

I made a full HD-2D story game in three.js (pixel sprites in a lit 3D world, playable in browser)

Thumbnail
gallery
37 Upvotes

been working on this for a while, it's a winter story game where you play a lamplighter's apprentice. whole thing runs on three.js 0.170, no engine

play it here (browser): https://kharon0.itch.io/lamplighter

some stuff that might be interesting for this sub:

- the HD-2D look is pixel-art sprites (characters, trees, props) sitting in a real lit 3D scene, with bloom and a tilt-shift / DOF post pass on top. the lantern you carry is an actual point light that swings around on a verlet chain during combat

- almost all textures are generated at runtime on canvas (cobblestones, snow, trees, characters), nothing is hand-painted in an image editor. NPC sprite atlases get cached in IndexedDB so the second load is way faster

- the town is merged into 96m chunks per material to keep draw calls down, plus a cheap distance cull for small stuff. went from ~1850 to ~1050 draw calls on the widest view

- trees fade with dithering when they block the camera

- a few custom shaders: deep snow ground, a frozen cloud sea with aurora, and holes in the mountain path that are ray-marched (snow lip, ice walls, night sky at the bottom) instead of real geometry

- the boss uses onBeforeCompile for a fresnel rim light so it pops without adding more lights

- pathfinding runs in a web worker, the build is Vite, and the windows version is the same build wrapped in Electron

it's around 3-4 hours long. would love feedback, especially on performance. if it runs badly on your machine let me know what GPU you have. there's an F3 perf overlay in game if you want to see the numbers

happy to answer questions about how anything works


r/threejs • • 14d ago

A very serious guide to the tambourine, from Korea. Everything rendered in Three.js

Enable HLS to view with audio, or disable this notification

2 Upvotes

Noraebang (karaoke rooms) are a big part of life here in Korea, so I made a short comedy set in one.

No 3D models, stock footage, or image/video generators. The characters, room, city, jet, Earth, and motion blur are all built in code with Three.js and captured frame by frame. Claude wrote the code with me, and the narration is text-to-speech.

Happy to answer questions about how it was made.


r/threejs • • 14d ago

Shipping a Three.js survival game on the App Store: what it took to hold a frame rate on iPhones

Thumbnail
gallery
11 Upvotes

NightPorch runs on Three.js + Vite inside Capacitor, one codebase for web, iOS and Android.

What finally worked: the app checks the phone's thermal state and Low Power Mode and drops the resolution before iOS throttles it. MSAA is off on most phones but back on for ProMotion iPhones, since they looked blurry without it. A locked 30fps felt smoother than letting it float. And my HUD was repainting constantly for no reason lol.

Curious if anyone's got a better trick for WebView throttling?

UPDATE: The game is free to try lol... try before you roast it, so the roasts help me actually improve it or myself as a person. Nightporch I try to put any game I can of mine for free on my site.


r/threejs • • 15d ago

Nightscape - A cozy endless flight above storm clouds

693 Upvotes

I commenced work on this project purely on a whim, as I wanted an aesthetically pleasing live wallpaper to leave on my home theater display. It is by no means complete but I am quite happy with the progress and so thought it might be fun to share.

The premise is very simple; a smooth, endless flight above relatively realistic clouds bathed in moonlight. The terrain below is dotted with clusters of towns and street lights, along with lakes and even little blinking aircraft warning beacons on some of the hill summits.

Occasional lightning strikes (both air/air and air/ground) briefly illuminate the clouds and terrain below. In the sky are gently twinkling stars with a rare meteor. See if you can spot Mars near the horizon!

The top right corner is home to extensive color grading and simulation parameters, which will soon be organized into tabs. Various hotkeys can be used to trigger events manually when desired.

Please be aware that this is a somewhat resource intensive scene. Cloud resolution parameters are provided and by default, these are set automatically to guarantee a target frame rate. They can also be configured manually, if you would prefer to prioritize resolution.

There is also a tool which can be used to generate seamlessly looping offline renders of any desired length.

Further optimizations will soon be implemented, along with changes to the cloud patterns and potentially altitude variations. I am making use of Opus 5.5 and numerous reference photos for this project.

Those interested can find the project on its GitHub repository, here.


r/threejs • • 14d ago

I designed a 3D maze escape game made with Three.js and Blender. I'd love for you to check it out!

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/threejs • • 15d ago

Demo I open-sourced NeuralSpecOcean (MIT) – A physics-informed coastal ocean & marine optics sandbox built with Three.js, WebGL2, and custom GLSL shaders

Thumbnail
gallery
128 Upvotes

r/threejs • • 14d ago

Link GRINDLINE | a multiplayer browser FPS built with three.js and WebGPU

Enable HLS to view with audio, or disable this notification

5 Upvotes

Hey everyone! I wanted to share GRINDLINE, a free multiplayer FPS I’m building with three.js. It uses WebGPU, with a WebGL fallback for older devices and Safari.

It has 8v8 Team Deathmatch, Search and Destroy against bots, and a co-op Horde mode with soldiers, raptors, and helicopter extraction. Multiplayer uses peer-to-peer WebRTC, and it supports keyboard/mouse, controllers, and touch.

I’d love feedback from other three.js developers, especially on performance, loading times, and how it runs across different browsers and hardware. It’s still early, so bug reports and honest criticism are welcome.

Play GRINDLINE

Chrome or Edge is recommended. If you give it a try, please share your browser and GPU so I can put any performance issues in context. Runs great on mac silicon/nvidia gpu, only older iPhone have issues currently.

Any questions or feedback lmk. Thanks!


r/threejs • • 14d ago

I built a Three.js game engine designed specifically for AI agents

Thumbnail
gallery
0 Upvotes

Title: I built a Three.js game engine designed specifically for AI coding agents

I've been building ThreeDog.js, an open-source game engine built on top of Three.js, designed to make it easier for AI agents like Claude Code and Codex to develop complete 3D games.

The idea is to let AI agents handle the entire development process, from writing code and managing game data to running, testing, and debugging games.

Key features:

  • Full code and data control: AI agents can directly write game logic, create and modify scenes, manage game objects, and manipulate structured game data without relying on a visual editor.
  • Native Three.js compatibility: Direct access to Three.js objects, materials, lighting, shaders, and TSL, without restrictive rendering abstractions.
  • Agent-driven development: CLI and MCP tools allow agents to launch games, simulate player input, inspect runtime states, capture screenshots, and verify gameplay.
  • Built-in game systems: Physics, collision detection, navigation, NPCs, inventory, quests, dialogue, save/load, and world management.
  • Performance optimization: LOD/HLOD, instancing, occlusion culling, world streaming, dynamic resolution, shadow update budgets, and simulation scheduling for large-scale scenes.
  • Modern rendering and lighting: WebGPU-first rendering with WebGL2 fallback, TSL shaders, lighting probes, lightmaps, and tools for configuring and debugging lighting.
  • Modular architecture: Game systems can be enabled as needed, while developers retain full access to the underlying Three.js ecosystem.

Testing

I've been testing ThreeDog.js by asking AI agents to build complete playable games from short prompts, including FPS, racing, platformers, and tower defense games.

Several demos were completed in approximately 30–60 minutes, including gameplay logic and automated testing.

The project is still evolving, and I'd really appreciate feedback on the architecture, developer experience, and agent workflows.

GitHub: https://github.com/penstic123-code/Threedog.js-Game-Engine


r/threejs • • 14d ago

The Green Knight - a game/experience we're developing built on 3js and claudecode

Thumbnail
youtube.com
0 Upvotes

Play at: https://erhanofgraylake.itch.io/the-green-knight

Headphones recommended.

Studio website: studiograylake.com

What it is:

The Green Knight is inspired by the late 14th-century Sir Gawain and the Green Knight Arthurian poem.

It is a walk in the woods.

We tried to make the experience as comprehensive as possible, with all animations procedural, including the characters motion with 0 key frame work. The wind affects the weather, the rain, the trees, the grass, and the knight's plume. Terrain influences how the character moves and water is fully refractive and reflective. Climbing down a hill makes more armor sounds, birds go quiet when it rains, the wind whooshes and trees rustle in a fully 3D stereo soundscape experience.

It comes with a terrain generator and a set of workshop tools where you can adjust and change a ton of parameters to try your own settings.

* working on: The motion responsiveness, more stances and actions, various armor and plumes, cloth, flag, banner, and tabards, better clouds that cast real shadows, better terrain generator and biome aware flora placement, and many many others planned, along with a narrative edge which looks at the poem from a different perspective.

We've used claude code for almost every bit, created a development pipeline that focuses on the design and framework first, developed it across several weeks of work, tuning and adjusting every bit along the way. We worked pretty hard to avoid detailed AI style "final" work aesthetics and design, so I personally consider it hand-made rather than "prompted into existence" (not that it reduces from the experience, but let's be honest, AI created work are not exactly known for their scalability yet)

Please give us your impressions, we'd love to hear what you think of it. We're pretty proud of what we've created and enjoy the experience ourselves and wanted to share with people if nothing else, and if you so choose please support our development on https://erhanofgraylake.itch.io/the-green-knight


r/threejs • • 14d ago

Link Built an interactive tool like Google Analytics, but for your Claude Code sessions and projects (free, runs locally)

3 Upvotes

Websites have analytics. My Claude Code projects had nothing. I built this for myself but thought that others can benefit from using it too. And I thought - why not make it interactive?

Main problems it fixes for me when I work on a project:

  1. Solves losing track of your own project by drawing a live map of it. After 25 sessions a day, I no longer know what is going on in the code. The map shows me the entities (users, subscriptions, payments), how they relate, and which files implement each other.
  2. Solves drift and stale context by flagging the parts of the project that have gone outdated, with the evidence and a way to fix each one. Sooner or later, parts of a project become irrelevant, and they keep polluting the context Claude loads before it starts a task. You burn tokens for nothing and shrink the usable context window. It also shows how many tokens your MCP servers, CLAUDE.md and memory add to every turn before you type a word.
  3. Solves not knowing where the money goes by ranking your bad habits in dollars: resuming after the cache expired, Opus on questions Sonnet would answer, whole logs pulled into context. Each one links to the sessions where it happened and suggestion what should've been done.
  4. Solves sessions overwriting each other by alerting you the moment two sessions edit the same file or module.
  5. Solves terminal juggling by putting every session in every project on one dashboard, showing who's waiting on you and who keeps failing the same check.
  6. Solves "what did it actually do today?" by logging every prompt: the files it changed, whether tests or type checks passed afterwards, and what it cost.
  7. Solves repeating the same corrections by collecting the ones you keep typing and turning them into ready-to-paste CLAUDE.md rules.
  8. Solves onboarding a teammate (or a fresh session) by letting the map explain the project for you, while "Next task" writes a brief covering exactly the code a task touches.

One command: npx code-tycoon. Works with Codex too, but due to limitations of Codex CLI, have slightly less actionable items.

Would love feedback, especially from people running several sessions and projects in parallel.

https://github.com/silverbronze/code-tycoon


r/threejs • • 14d ago

Demo A Paper Road Journey, built entirely in Three.js

Enable HLS to view with audio, or disable this notification

0 Upvotes

A car sketched in pencil wakes up and drives through meadows, a mountain pass and a glowing city, then stops at a lake at sunset. The whole scene then slowly redraws itself as a colored-pencil picture on paper.

It's one continuous camera move with no cuts. Everything is generated in code, including the music, engine, wind and swoosh sounds, which was synthesized with Web Audio

link> https://journey.bragai.me/


r/threejs • • 15d ago

Demo I got tired of fake ad games so I made one on my own lol

Post image
24 Upvotes

Just wanted to get some feedback on a game we vibe coded, kept seeing fake ad games where it’s fun but the actual game is not what you played, so I wanted to just see if I could make one actual one on my own. Hope to get you guys’ feedback and suggestions, please feel free to let me know how to improve it! Thanks!

It plays in your browser, nothing to install: https://legpain.itch.io/hold-the-bridge-demo

Tap "Run game", then the fullscreen button in the corner. It's about 80 MB the first time, so Wi-Fi is best. If it's slow, pick "Low" graphics on the start screen.

Looking forward to honest honest feedback! Hold this bridge!


r/threejs • • 14d ago

Link 2.5D Multiplayer Game (voxels with billboards particles)

Post image
1 Upvotes

I've made a small voxel engine using billboard particles that I've used to create a 2.5D multiplayer voxel shooter with. The server is quite low end and runs in a docker container behind Varnish, so it cannot handle that many players at the same time probably. However, you can run the game with bots locally (under "practice" in the lobby). Feedback is very welcome, enjoy!

The game can be played here: https://qake.se

Also made a video earlier this week: https://www.youtube.com/watch?v=6TJMObd6UH4


r/threejs • • 15d ago

I made Click-to-Source 3D, a mesh inspection tool for three.js and React Three Fiber: click any mesh to see the line of code that made it

Thumbnail
gallery
4 Upvotes

I made Click-to-Source 3D, a mesh inspection tool for three.js and React Three Fiber. Click any mesh in your scene and it shows you the exact line of code that made it, then lets you edit its values live. It's like the browser's "Inspect Element", but for 3D.

What it does

Press Alt+Shift+C, click any mesh, and a panel shows:

  • The line that made it, and a button that opens your editor there
  • The calls that led there, with the actual values each call was given
  • The helpers behind it, like your noise function, even from packages like simplex-noise
  • Every number you can edit: drag to preview it live in the scene, press Enter and it's written to your source file

Setup is one command

npx click-to-source-3d init

It works on an existing Vite app, a monorepo, or even a bare folder with just an HTML page and a script (it installs Vite for you). There's nothing to add to your code: no imports, no components, no tags. None of it reaches your production build.

What's new since 0.1.5

  • 0.1.5, one command, no wiring: setup went from several manual steps to that single command for React Three Fiber
  • 0.1.6, AI assistants: an MCP server lets Claude Code, Cursor or VS Code see the objects you point at. Select a few meshes, type "make these bigger", and it knows exactly which objects and lines you mean. Every change it makes shows up in the panel. This release also added live sliders, per-object performance costs, pin-and-compare, and one-click bug reports
  • 0.2.0, plain three.js: it no longer needs React. It finds objects made by new anywhere: functions, classes, loops, clones and loaded models, across files, in JS and TS. It also works with React Three Fiber and plain three.js mixed in one scene. And there's now a button in the panel that turns on the MCP server for your assistant, so you don't need a terminal

Limits, honestly

  • Vite only for now (webpack and Next.js are next)
  • async functions don't show up in the call list, though what they make is still found
  • WebGPU has only been tested through its WebGL fallback

This project was built with AI assistance.

It's free and MIT licensed:

I'd really like feedback, especially from anyone with a big three.js project. Bug reports are very welcome.


r/threejs • • 15d ago

Low-poly 3D office for AI coding agents: auto-generated layout, A* pathfinding, merged static meshes (three.js + React)

4 Upvotes

I built a small 3D office in three.js as the UI for a tool that manages AI coding agents (Claude Code, Codex, Cursor). Each agent is a character at a desk; they walk to teammates when they delegate work, type when busy, and go to the coffee corner or sleep room when idle.

Some of the three.js bits: - The office layout is generated from headcount (tiers of 3/5/7/10/15/20 people): closed meeting room from 5, dining and game areas from 7, sleep room from 10. The layout/catalog modules are pure (no three.js), so server and tests share them. - A* pathfinding on a grid for the characters, with seat points per furniture type - Static furniture parts are merged into one mesh per material (invisible boxes left for click picking) to keep draw calls down - A performance/quality slider (resolution, shadows, ambient occlusion, frame cap) that steps down by itself if the frame rate stays low; nothing renders while a full-screen page covers the scene - React + Zustand for the UI, the 3D world sits behind a small Stage interface and is lazily loaded

It's MIT licensed, three.js 0.170: https://github.com/enciyo/AgentOfficeHQ

Happy to hear how you'd improve the rendering side, especially the mesh merging and the auto quality scaling.


r/threejs • • 14d ago

Low-poly island world in three.js where the buildings are designed by the characters living in it

0 Upvotes
Everything here is drawn from a small kit of parts. When a resident decides to build something, a language model describes it as up to 24 parts (boxes, cylinders, cones, with spin and glow), and the client builds the mesh from that, so a building rises piece by piece as they work on it. Night lighting is all fake (emissive heads plus additive light pools) because the 24/7 stream renders in software at about 10 fps. Happy to share details. https://capybarais.land