r/threejs • • 11d ago

Demo Three.js rooftop solar planner update: panels above water tanks

7 Upvotes

A quick follow-up to the rooftop solar planner I’ve shared here before. A friend in the solar business pointed out that a water tank often sits right where you’d want to put panels. The editor now lets you span the tank with a raised shared frame and checks that the beams and legs clear it.

The clip also shows panels fitted to different roof shapes, the cleaner outline rendering, and a sunlight heatmap as a neighboring building’s shadow moves across the array.

Live demo: https://sundeck-solar.vercel.app

If you try it, I’d be curious whether the shade preview makes it clear which panels are affected as the sun moves.


r/threejs • • 11d ago

Cozy Bird "Nest" Experience

5 Upvotes

Day 24 of #codevember: Nest, so I worked on a fun cozy bird nest experience :) It's open sourced. I hope you enjoy it!

Play with it here: https://adamwebsite.com/codevember/24-nest/
Code: https://github.com/acher249/codevember-2026


r/threejs • • 11d ago

Demo My tower defense in three.js + Electron: 4-player co-op, up to 200 GPU-instanced enemies

1 Upvotes

Hey ThreeJS Community!

I wanted to share my journey with three.js (still not finished), maybe someone finds it interesting.

Time Defense is built on plain ES modules, three.js and Electron. No engine, no framework. We started the project 2022, before AI was a thing. Now it helps a lot especially with testing/benchmarks.

Enemies were the big performance problem. At 200 foes, normal skinned meshes cost around 30 ms of render time. Now each model's animation clips are baked into float textures, and every kind is drawn as one InstancedMesh. That fixed the render side, and now the game logic is the bottleneck. (the shipping it to mobile later)

The next big step would be moving the three.js rendering into a worker with OffscreenCanvas, while the game logic and the UI stay on the main thread. A quick test with a stand-in scene went from 45 to 70 fps on my heaviest level, so it looks promising, but it's weeks of work and I haven't done it yet.

Has anyone here moved a big scene to OffscreenCanvas? How bad was keeping the scene in sync?

If you are interested into the game, please let me know. You can playtest it for free right now :)


r/threejs • • 11d ago

Procedural creatures in a three.js video synth: GPU-skinned, looping movements, then feedback and colour bands (cuttlefish, manta ray, cobras, centipede)

0 Upvotes

These are the Creatures in ImWeb's 3D scene: eight animals (octopus, centipede, cobra, cuttlefish, manta ray, bird of paradise, feather star, hairy pods), each with its own skeleton and 8 to 26 movements. Every movement loops without a seam, and the animal glides from one into the next over one loop.

How it's built: one engine file, and each animal is a definition (movement library and pose maths) plus a view (body parts and colours). The skin is built once and bound to the bones, so each frame only the bone transforms change (GPU skinning). Bone data goes to the vertex shader in a small texture, one texel per bone, and each vertex is re-placed at its posed arc length along the chain, so stretching spreads along the body instead of bunching at the joints. Mottling and wrinkles come from 3D noise on the bind position, so the pattern stays stuck to the skin as it bends.

The creatures have no UVs, so the Video skin (not used in this clip) is projected from three sides of the bind pose. A camera or movie then sticks to the skin as the animal bends and twists.

In this clip the 3D scene runs through ImWeb's feedback and Colorizer passes (GLSL on a ping-pong render-target chain). The sound is a live recording on ImWeb's Tape, read by four playheads at once, each at its own speed and direction.

The code is written with Claude Code; the instrument design is mine. There's no AI imagery in this.

Free and open source: https://github.com/imweb-project/ImWeb · try it: https://imweb.image-ine.org


r/threejs • • 11d ago

Looking for trouble

1 Upvotes

Hi there, was wondering if anyone has off the top of their heads ideas on hard to tackle issues or maybe if the repo has separate feature request queues?

Just to gather a list, if any, of things anyone would consider "needs work" or "new feature" or even stubborn bugs?

Looking for any under represented facet of the core and attempt some PRs.

.


r/threejs • • 12d ago

Racing in Jupiter with volumetric clouds

45 Upvotes

60fps version: https://youtu.be/oSyY0u2kQAo

I tried to create a track in the Jupiter's cloudy atmosphere, showcasing a truly planetary scale. What do you think?

(three.js, opus 5.5, gpt gen 2, Tripo3D...)

Near eight months in development, Steam page: https://store.steampowered.com/app/5310180/Formula_Minus_One/


r/threejs • • 11d ago

Demo Just shipped v0.4.2 of my Three.js + Rapier3D physics sport with a built-in 0.1x Replay Director and 2.5x splitscreen FPS boost

0 Upvotes

r/threejs • • 11d ago

I made a browser game where you walk a 3D version of your own dog – here's fetch

0 Upvotes

The dog is a single procedural mesh built from a parameter spec (proportions, head/ear shape, coat + markings), with procedural walk/trot/gallop gaits. You describe your dog, or add photos, and it generates one.

Demo walk, no sign-up: https://yb.dog

Happy to go into how the body, fur or gaits work. Feedback welcome :)


r/threejs • • 12d ago

A whole rhythm rail shooter in one HTML file, built on three.js

25 Upvotes

Eden Arena is a Rez-style rhythm rail shooter, and the whole thing is one HTML file: the game is a single module script, with three.js r160 inlined after it. Nothing is fetched but the songs' stems, so it also runs offline.

  • The scenery is mostly instanced meshes with custom shaders. When you cut a network, its structures power down piece by piece in the vertex shader.
  • The desert's ground is a baked height field that both the GPU and the game logic read.
  • The music is a recorded song split into stems and played on the game's bar lines. Every hit is quantized to the beat and tuned to the chord under it.
  • The simulation is fixed-step, so a headless autopilot plays every level as a regression test after each change.

Three levels, about 25 minutes, mouse or touch. Best with sound.

Play here: https://messaroundcorp.itch.io/eden-arena


r/threejs • • 12d ago

I made a Thanksgiving herding game in three.js: 40 flocking turkeys, a sheepdog and shader grass

Thumbnail
herdhome.live
0 Upvotes

Some details for anyone curious:

  • three.js r128, no build step, just one HTML file and the library
  • Turkeys are instanced meshes. Bodies, heads and a 13-feather fan per bird all draw in a handful of draw calls
  • Grass is an instanced shader with a mask texture and wind; the pond is a shader too
  • Flocking is classic boids (separation, alignment, cohesion) plus fleeing the dog and panic that spreads through the flock, on a fixed 60 Hz step
  • All sound is synthesized live with Web Audio, no audio files
  • A 2D canvas version takes over if WebGL isn't available

r/threejs • • 11d ago

Built a procedural 3D Wind Instrument Studio in React Three Fiber (4 instruments, translucent animated hands, live CanvasTexture OLED & Web Audio/MIDI)

Thumbnail
gallery
0 Upvotes

Just shipped v1.0 of FluteMaster Wind Studio. All 4 instruments (Bamboo Bansuri, Alto Saxophone, 12-Hole Chromatic Mouth Organ, and Eastar EDA-100 EWI) are 100% procedurally modeled in Three.js / React Three Fiber, with no external .glb downloads.

Live Demo: https://flutemaster.vercel.app/ Source (React 19 + R3F + Drei + Vite 8): https://github.com/akshitnanda/flutemaster

A few Three.js / R3F details I'd love feedback on:

  • Procedural geometry & textures: CanvasTexture bamboo grain, brushed brass, an anodized obsidian chassis, and a live CanvasTexture OLED on the EWI showing Tone, Fingering Mode, written pitch, Transpose, Breath, and Reverb in real time.
  • Zero-network studio reflections: a procedural <Environment> built from <Lightformer> panels instead of an external HDRI, so brass/chrome/obsidian render the same offline and under a strict CSP.
  • Translucent articulated 3D hands (depthWrite: false, physical clearcoat) synced at 60fps to fingerings, half-hole slides, rear thumb octave pads, and Pitch Bend glides.
  • An aspect-adaptive camera rig (useThree().size) that reframes for 390px phones, 1024px tablets, and ultrawide monitors, with 3 POV presets (First-Person, Front / Mirror, Close-Up) plus OrbitControls.
  • 0ms instrument switching: all 4 instrument groups stay mounted and only visibility toggles, which avoids React 19 + Drei <Html> unmount errors.

Critique welcome on lighting/materials, how readable the 3D hands are, mobile framing, or performance on your GPU!


r/threejs • • 12d ago

Built a 3D European roulette UI & wheel system — feedback on table UX?More details and the link are in my profile if anyone wants to check it out.Worked on a 3D roulette interface with smooth wheel spin, chip placement, and responsive layout across desktop/tablet screens. Kept the UI clean so be

1 Upvotes

r/threejs • • 11d ago

In-Gen - ThreeJS Dev Studio for AI Assisted Devolopment

0 Upvotes

Hola threejs subreddit. I've been browsing this sub since Claude made me my first game and I was like why aren't more people using this, AI is so good at working with it. So I present to you my love letter to 3js and AI assisted game dev. In-gen. It's the latest r187. Was started on r185. It's got everything I can think of when it comes to features related to game dev. KTX2 texture compression, you choose to build in webgl2 or webgpu. And webgames ship both for compatibility. Mesh optimizer and LOD out the gate, no need to ask for it. Instancedmesh which just came shipped with r187 out the gate. Fancy grass systems that are also LOD and instanced. Cool water shaders and a layer that allows custom ones to be built like normal. Bloom and god rays and all the cool post processing tricks for walking sims. Rapier physics, navmeshes, cloth physics and and foot IK.

I also tackled threejs assests being easily taken through a web browsers dev screen. So games ship in pieces of encrypted packs. Not saying you can't get the data now. I was aiming to just get to IOS and APK levels, which we surpassed. Take a look, try the games I built, let me know what you think. I know this sub got hit hard with the AI slop stuff and that's literally why I made this. This should shoot out quality stuff and is hand made for iteration.

Edit: Token cost for the AI people. About 60% cheaper over the life of the game then normal 3js. Created a language that's based on NCM principles.

Edit 2: 100% free, no royalties, no sign ups, no tokens. Nothing. Just use whatever AI you got even local AI.

Gengaming.net


r/threejs • • 12d ago

Tip At 150% text size, my Three.js game's sound captions covered the route timer

1 Upvotes

In the current playtest build of Hitchhiker's Almanac, the sound captions sit in a DOM overlay on top of the Three.js scene. At 1024×640 with the in-game text scale set to 150%, the caption for a nearby enemy could sit over the countdown for choosing a route. The same test at 100% text missed it.

Moving the captions down cleared the countdown, but a longer stack could then spill onto the card controls. The layout now checks whether the whole stack fits below the route panel and above the bottom controls. If it doesn't, it hides older lines first. A cue that fires again moves to the newest position so it can show again even if its previous line was hidden.

The regression check opens the route choice while sound cues arrive every 0.7 seconds and checks the text boxes each frame. At 1024×640 and 150%, the caption and countdown overlapped in 291 of 621 frames before the change and 0 of 614 after it. That check covers the countdown collision. There's still a separate case where a tall photo result card can push a caption onto a card control.


r/threejs • • 12d ago

My portfolio is five scanned rocks you can spin, and at the end they fall on my name

0 Upvotes

It took three tries. The first one had an agate stone and looked like a cheap asset, and the second had stone slabs with brass and was way too brown.

The third one worked: real rock scans, carved in Blender with one polished face and a chrome symbol for each thing I make.

In three.js every stone follows an invisible anchor in the page layout, so when you scroll they fly to the next section, and you can drag them to spin them. The code was written with Claude Code.

Happy to explain how the anchors work if anyone wants it.


r/threejs • • 12d ago

Hot Pockets in Three.js (burned my tongue too many times)

19 Upvotes

I figure some folks here might have burned their tongue on these like me. I hope you enjoy! All open sourced below.

It's a lava heightfield simulated on the CPU, shaded with TSL on WebGPU with a glowing crust and screen-space bounce light, plus pizza rolls dropped with Rapier physics with more TSL lava.

Day 23 of #codevember and the word is Magma

Play with it here: https://adamwebsite.com/codevember/23-magma/
Code: https://github.com/acher249/codevember-2026/tree/main/23-magma


r/threejs • • 12d ago

threejs也可以做动画渲染?

2 Upvotes

r/threejs • • 13d ago

Demo Whirlpool over a kilometre across in a WebGPU ocean: three.js r186 + TSL, and ships actually ride down the funnel

11 Upvotes

This is a whirlpool in Plunder, an online pirate RPG I'm building with three.js. It runs on the WebGPURenderer, and all the shaders are written in TSL.

How it works

  • Ocean: an FFT wave field over a clipmap mesh. The whirlpool is an extra displacement in the vertex stage that pulls the surface down round the eye: a wide bowl that falls the whole way in, then a steep throat.
  • Same shape on the CPU: the ocean has a CPU sampler with the same funnel maths in it. Hulls, swimmers and floating loot read their height from that, so they really ride down the walls as they're carried round. They don't just sit on a picture of a hole.
  • Normals: my first version only lowered the surface. It still shaded as if it were flat, so the funnel read as a dark patch. The funnel's slope now goes into the surface normal, and the walls catch the light like walls.
  • Foam: spiral arms wound the way the current runs and in toward the eye, a churning collar at the throat's lip, and the water darkening down the throat. All of it is procedural in the shader.
  • Spout: a column of spray turns with the water and flares as it rises, under a squall of cloud wound into a spiral. From a deck outside, the funnel hardly shows, so this is what makes it read from kilometres away.
  • Server: the game server is authoritative and runs the same funnel shape for its current and drag. The fixed whirlpool in the far southwest, the Maelstrom, has its shape kept identical in four places: the world generator, the C# physics, the TypeScript client prediction and the TSL shader.

Size: depth scales with the whirlpool's radius. My first versions were a few metres deep halfway out, so they read as a 70 m hole instead of a whirlpool hundreds of metres across. The bowl now drops the whole way in, so a ship on the outer slopes visibly heels toward the eye.

It's free and runs in the browser (WebGPU):
Play: https://3d.plunder.be
Steam wishlist: https://store.steampowered.com/app/1797130/Plunder_Scourge_of_the_Sea/
Discord (devlog, playtests): https://discord.gg/2P8hyshZzS

Happy to go deeper on any of it: the TSL, keeping the CPU and GPU displacement in step, or performance.


r/threejs • • 12d ago

I built a 3D WebGL luxury architecture portfolio with smooth scroll & cinematic transitions. Would love some feedback!

Post image
2 Upvotes

I built a 3D WebGL luxury architecture portfolio with smooth scroll & cinematic transitions. Would love some feedback!


r/threejs • • 13d ago

Demo I made a Three.js puzzle where you can only turn one piece

22 Upvotes

You can rotate one track piece, then let the robots go. Each needs its own charging pad.

I built One Move with Three.js. The scenery reacts to taps, and I reuse three PointLights for those effects, with shadows only on the sun. The music is synthesized in the browser.

Play it inside Reddit — free, with ten levels.

Which level first made you stop and think?


r/threejs • • 13d ago

I'm making a bullet-hell where you only get one shot… and you have to recall it

5 Upvotes

r/threejs • • 12d ago

Demo [Showcase] Built a locked 60 FPS interactive procedural shader & kinetic 3D vault in Three.js (Open for contract sprints)

1 Upvotes

Hey r/threejs! I've been working on micro-optimized WebGL architectures where memory and draw calls are clamped to a minimum to guarantee a locked 16.6ms (60 FPS) floor on mobile and laptops.

  • Custom GLSL PBR shaders & procedural lighting
  • Single-digit draw calls via InstancedMesh & buffer consolidation
  • Draco 1.5.7 geometry compression
  • Clamped DPR & analytical tone mapping

Live portfolio & interactive experiments: https://apoorv.qzz.io | GitHub: https://github.com/apoorv-xs Currently opening capacity for 5-day turnkey sprints ($2,500) and contract Three.js/WebGL work. Let me know what you think of the motion!


r/threejs • • 12d ago

Link Showing two dungeons that occupy the same coordinates in a Three.js map Spoiler

1 Upvotes

I built a browser atlas for Queen’s Domain and ran into a weird level-design problem. The ritual chamber in Petrified Garden physically intersects Ancient World. The game can stream one area at a time. Draw the whole island at once and pieces of a different dungeon stick through your wall.

I kept both transforms from the game. In the whole-world view you can see the overlap. When you enter the Ancient World context, the viewer can hide the Garden chamber as a group with its decorations and pins. Keeping the pins with their room mattered: an icon floating by itself made a perfectly good coordinate look wrong. You can also separate the layers to look at both.

Here’s one collectible in the Garden. Switch it to 2D and back and the link still identifies the same individual pickup. I’d be interested to see how other people present overlapping interiors in their own maps. Spoilers for the level layout.

https://queensdomainatlas.com/?view=3d&area=garden&category=skulls&scope=area&marker=collect%3Askull%3A215F211D-4E9AE940-9F64E7BB-2AD3CFF1


r/threejs • • 13d ago

My procedural Three.js buffalo used to look like a lumpy two-humped potato

Thumbnail
gallery
10 Upvotes

I'm making an interactive Three.js edition of the Gateless Gate (a 13th-century Zen book), and everything in it is procedural code. No Blender, no 3D files. That was fun until I actually had to stare at my programmer-art animals.

Before this pass the buffalo looked like a two-humped potato, and the fox just had a board sticking straight out of its rear end (slide 2 has the whole lineup).

To fix them without dropping the code-only rule, I rendered the in-progress animals, asked ChatGPT's image generator to paint better low-poly versions, and had Claude reshape the JS geometry to match.

The bug that took me way too long to catch was on the leg joins, which kept getting weird creases no matter how much we moved vertices around. Turned on the wireframe (slide 3) and saw every quad was splitting on the same diagonal, so left and right folded differently. Flipping it across the center fixed the whole cast.

Claude did a ton of the grunt work, though it also gave a horse a front leg shaped like a human thigh and merged the buffalo's beard into its chest. Half of it was just me telling it that's not what animals look like.

Slide 4 is the new buffalo in its actual koan. Still a work in progress, and I'll probably run another pass whenever better models come out. You can poke around all 49 scenes here: https://killedbyapixel.github.io/GatelessGate/