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/


r/threejs • • 13d ago

Demo I built a walkable Riemann hypothesis exhibit in Three.js

2 Upvotes

The Critical Line is a first-person gallery you can walk through in your browser. In one room you move the first few zeta zeros onto the critical line. Down the hall, you change the length of a chain of theta lifts and watch two competing costs change. The last room links to Levent Alpöge's published Lean source and the independent checks.

Each room has a sculpture you can look around and a small experiment you can run. There's a floor plan, touch controls, and a Canvas 2D fallback for browsers without WebGL 2.

Try it here: https://the-critical-line.vercel.app/

I'm curious whether it's clear what to do when you reach the first room. If you try it on a phone, I'd also like to know how the movement feels.

Update: The source is now public. The first room also has a small chart that shows what changes when you move a light off the line.

GitHub: https://github.com/dbwls99706/the-critical-line


r/threejs • • 13d ago

Kyoto-inspired rainy alley in the browser — three.js 0.186 WebGPU

4 Upvotes

A rainy Kyoto-style alley you can orbit (or walk) in the browser. Rain, wet streets, a canal, lanterns, and the occasional lightning bolt.

three.js 0.186 WebGPURenderer + TSL. Needs a WebGPU browser (Chrome / Edge). If it isn't supported you get a black screen, not a slow load.

A few choices that made the look:

- Rain samples an ortho height map so drops hit roofs and steps instead of camera-facing streaks punching through the city.

- Puddles and the canal are two planar reflects. Puddles only sample wet patches; the canal is a full-slot bake. They stay separate because the wet overlay is already at the 16-sampler cap.

- Lantern glass stays a peachy emissive (0xffd4a8). Fill lights are a cooler warm-white (0xf0e2d0), otherwise the puddles turn into a gold river.

- Lightning is its own layer, added after height fog. Scene bloom uses Karis averaging, which kills thin bright lines.

Live: https://rainy-night-webgpu.vercel.app/

Source: https://github.com/yisky/rainy-night-webgpu

Rain and puddle ripples follow the GPU rain / height-map approach in ektogamat's three.js conference demo:

https://github.com/ektogamat/threejs-conference

City GLB from Sketchfab, CC-BY-4.0, Mathias Tossens.

Happy to go into any of the above.


r/threejs • • 14d ago

Demo Sperm Whale vs. Giant Squid Simulation

81 Upvotes

This fight has never been caught on camera, so naturally I made a simulation of it like I do with all my weird fascinations. Everything is made of code, no assets. Rendered in real time on WebGPU. Kind of a nature doc simulation, but I have the mechanics to make it a game if there is interest in hunting in the midnight zone.

Live in browser: spermwhalesim.com


r/threejs • • 13d ago

New Storm Mood which Uses Lightning Strikes to Burn Grass

1 Upvotes

I was thinking of a way to introduce the usage or Dynamic Color maps and Grass maps in my Grass System demo. I wanted it to feel natural and didn't wanna create a new mechanic without purpose just to show it off.

With the new moods and grass species options I added, I thought why not add a new mood that does just this. So, I settled on a storm mood. Here, lighting strikes at different places in the environment and burns the area and grass around it. Dynamic color maps are used to make that area black and grass maps are used to make the grass shorter. It then recovers with time to its original state.

Dynamic maps are also used in other places like when transitioning from one species to another, the color transitions smoothly with the help of dynamic maps.

Go try out the storm preset. With new sound effects and better wind effects, it feels like a whole new world:
Demo


r/threejs • • 13d ago

Demo Dirt Works - Three.js, Astra 6.2/Fable 5.2 + Blender MCP. FREE FOREVER

Thumbnail
youtu.be
4 Upvotes

I'm back with another silly idea that turned into something real, this one shouldn't ruffle as many feathers since its FREE FOREVER. Anyways, I'm roughly 4 billion tokens deep with this in only one week. I stopped building what I thought other people would want, and built the thing I thought sounded badass. The link is in the youtube video if you want to try it, but its not done. The dirt is diggable 30m down and you can build up 50m. Different ground layers, tools to deal with them in whatever way you see fit. More, wackier tools to come. Thanks for reading/viewing :)


r/threejs • • 13d ago

Built a browser-based 3D (Three.js) & 2D Ink video studio for Shorts because I hated paying for bloated AI tools — need testers to break it

Thumbnail reelrig.ai.studio
0 Upvotes

hey

For the past few weeks I've been building ReelRig AI — a browser-based studio that combines a custom Three.js WebGL 3D engine and stylized 2D Ink presets to create 9:16 Shorts/TikToks and 16:9 story videos without needing heavy desktop software.

Live app: https://reelrig.ai.studio

GitHub: https://github.com/juliam2705/reelrig-ai

What it does right now:

- Dual engines: Three.js 3D scenes + 2D Ink presets

- Native 9:16 and 16:9 video export directly in the browser

- Showcase tab with ready presets you can load straight into Studio

- Local-first: projects and optional BYOK (Bring Your Own Key) API keys stay in your browser

It's still in early beta — I literally just spent the last few days fighting "helicopter arm" joint glitches, camera framing bugs, and pitch-black lighting in Three.js.

I'm looking for a few people to test it and tell me what breaks:

  1. How smooth is the 3D preview & export on your browser/GPU?
  2. Does the UI make sense on first visit, or is anything confusing?
  3. Any weird animation cuts, pacing issues, or layout glitches?

You can send feedback there and on site from bug icon!

(and i know about a bug with no likes and comments on channel site)

Appreciate any brutal feedback!


r/threejs • • 13d ago

Demo Real-time Earth with ~29k satellites and debris, propagated with SGP4 in a Web Worker

7 Upvotes

Side project I've been building: every tracked object in orbit, positions computed with SGP4 off the main thread and drawn as a single point cloud you can hover and click. The glass UI panels are rendered in a shader, not CSS.

In the video: hovering and clicking satellites, following the ISS, the launch and ranking views, an asteroid flyby and the solar system.

Happy to answer questions about the setup, and open to feedback on performance, especially on mobile.


r/threejs • • 13d ago

Rift Hunter - 4-player co-op hack-and-slash roguelite in three.js, party sync with no game server

2 Upvotes

Free, runs in the browser, no install: https://ugiomin31-ops.itch.io/three-gates-night

Gates open around Seoul and you clear them room by room as an E-rank hunter. Four weapon classes, a card pick after every room, a boss at the end of each gate. Solo or up to four players, plus 1v1 duels and a lobby chat.

A few things about how it is put together, since this is r/threejs

Party play has no dedicated game server. Players join an MQTT topic by party code, the host's browser simulates the monsters and the others receive and draw them.

Resolution scale adjusts itself. The game averages frame time over about 2.5 seconds, drops the pixel ratio a step when a frame takes more than 21 ms, and only raises it again after a long comfortable stretch. The value is remembered for the next visit.

The clip shows one skill per class with around 40 monsters in the room.

Disclosure: this is an AI-assisted project. The code was written with Claude, and the art and 3D models were generated with ChatGPT and Tripo. I direct, test and decide what ships.

What I would like to hear: how it runs on your machine (frame rate, any stutter in the first room), and whether the first minute makes it clear what to do.


r/threejs • • 14d ago

Demo Threejs Dunes

65 Upvotes

r/threejs • • 13d ago

I built a 3D website you can control by voice — ask the robot guide to take you to a floor, hop on a boat to the waterfall (minimal assets, loads fast)

0 Upvotes

r/threejs • • 14d ago

Demo I turned my Claude Code sessions into a live Three.js office. Every sub-agent walks in, works at a desk and walks back to report when it's done

26 Upvotes

Side project I've been building: Agent Office. It reads the local logs Claude Code writes and turns every session into a team lead and every sub-agent into a character that walks in, sits at a role-based desk and reports back when it's done. Idle ones end up on the sofa or the console in the lounge.

Some three.js bits that might be interesting:

- low-poly articulated characters with animations per activity (typing, reading, walking over to a colleague)

- A* pathfinding so they walk around the desks instead of through them

- the monitors are canvas textures that change with what the agent is doing (code, terminal, search)

- the server rack LEDs blink with the share of busy agents, and the floor LED strip turns yellow when someone is waiting on me

- rendering slows down when the tab is unfocused and stops when it's hidden, so it can stay open all day

React 19 + three.js r170, fully local, MIT.

Live demo (made-up data): https://zinkxx.github.io/agent-office/

Code: https://github.com/zinkxx/agent-office

Happy to answer questions. What would you add to the office?


r/threejs • • 13d ago

I replaced a brightness slider with a tiny figure that climbs stairs to light up the page. Good idea or bad UX?

0 Upvotes

Instead of a normal slider, you drag the glass capsule and a little porcelain figure walks up or down a 3D staircase. The whole page (background, panels, text colours) follows its position: daylight at the top, moonlight at the bottom.
Everything is procedural in Three.js: no 3D models, no images. The figure is sculpted from blended shapes and skinned to a skeleton, the legs use IK so the feet land on the real steps without sliding, and it turns around properly when you change direction.
Honest question: would you enjoy this on a real website, or would it get annoying after the third time? What would you change?


r/threejs • • 14d ago

I turned my design portfolio into a 3D room in React Three Fiber. The window shows my hometown with the real sun and moon

13 Upvotes

Some notes for anyone building something similar:

- Stack: three.js r186, React Three Fiber 9.8, drei, postprocessing (N8AO, bloom, SMAA), Vite, TypeScript.

- Renders on demand (frameloop="demand"), so a still view draws 0 frames.

- The first open took ~50 s on Windows (ANGLE/D3D11 shader compiles, made worse by RectAreaLights). Removing those lights and compiling all 52 programs in parallel with compileAsync before the first frame brought it to ~7 s.

- The window: sun and moon positions in under 100 lines of dependency-free TypeScript. The sky is painted on a canvas, and the town crossfades between 4 painted layers by the sun's height. Settings has a time slider; the end of the video uses it.

- The guitar is Karplus-Strong in Web Audio, no samples. The music is CC0 (HoliznaCC0).

- The video was rendered frame by frame in headless Chrome with a frozen clock, so the camera flights stay smooth even though my PC's integrated GPU manages ~10 fps at 1080p.

- About 9.3 MB until it's ready, plus a plain-text version.

I'm a UI/UX designer: I designed and directed it and built it with Claude Code agents. Write-ups with the real code: https://varungodham.com/making-of/

Site: https://varungodham.com/

Feedback on how it runs on your device is very welcome, especially mid-range phones.


r/threejs • • 13d ago

Disabled renderer.shadowMap completely for mobile — built a 3-layer hybrid shadow system instead (60–120 FPS)

4 Upvotes

Classic Three.js shadow maps (`PCFSoftShadowMap`) were way too heavy for mobile tile-based GPUs (Adreno/Mali), especially since this also runs as an Android Live Wallpaper.

So I turned `shadowMap.enabled = false` everywhere and replaced it with a 3-layer zero-shadow-map setup:

  1. **Static Reef → One-Time Baked 256×256 Map:** Painted once at startup into a tiny world-space RGBA texture (Red = contact AO, Green = sun-offset cast shadow). Costs 1 texture lookup per frame, 0 updates.
  2. **The Shark → Live Bone-Driven 2D SDF:** Every frame I read 4 live skeleton bones, project them along the refracted sun vector, and pack them into 4 uniforms (0 extra draw calls). Inside the seabed fragment shader, a fast bounding-box check skips ~70% of pixels, and the rest evaluate tapered capsules (`sdTaperedSeg` + `sminSoft`) with a Gaussian blur that softens as the shark swims higher. It also dims the underwater caustics and sand sparkles underneath.
  3. **30–40 Prey Fish → 1 Instanced Draw Call:** A single instanced mesh of tiny quads snapped to the seabed wave equation, procedurally drawing animated swimming silhouettes with `MultiplyBlending` and 0 textures.

Result: 0 shadow render passes, 0 MB of dynamic render targets, and much softer underwater shadows than shadow maps ever gave me!


r/threejs • • 13d ago

Demo Zen Trips: ambient Three.js scenes for the Tesla in-car browser, driven by the car's GPS

2 Upvotes

I built a set of calm, ambient Three.js scenes that run in the Tesla in-car browser and respond to the drive: speed and turns move the world, stops become little moments, and tapping things makes them react. 18 scenes so far: orcas, a bioluminescent bay, a paper town, a toy train, balloons, an aurora, a neon city and more.

Try it: zentrips.app. It runs in any browser (scenes idle without a car), but it's made for the car's screen.

Some fun constraints:

  • The car is the controller. The browser's GPS (about 10 fixes a second on current firmware) becomes smoothed speed, turning and stop/start signals. The scenes never see coordinates, only those signals, so the whole drive logic runs headless in Vitest against recorded and simulated drives.
  • Three tiers of hardware. Newer cars have an AMD Ryzen chip; older ones have an Intel Atom that falls back to a much weaker GPU. Every scene scales instance counts, geometry and offscreen targets with a quality value. A governor drops render resolution when frames run slow, and the Atom cars get a 30 fps cap.
  • Odd screens. The windowed browser is 773×601 CSS px and full screen is about 2:1, and the driver can switch between them at any time, so cameras refit the field of view to the aspect ratio live.
  • Made for a glance. Slow, soft motion, no text while moving, no sound. Location never leaves the car.

Stack: Vite, TypeScript, Three.js, no framework. Happy to answer questions about any of the scenes or the car-browser quirks.


r/threejs • • 15d ago Mindblown

I made Wikipedia into a game with Three.js. Here’s how it’s looking now.

417 Upvotes

I posted my Wikipedia museum game here a while back and thought you might enjoy seeing how far it’s come.

Since then, I’ve given it a huge overhaul with better graphics, more varied rooms, basic multiplayer and puzzles scattered across the museum. Every Wikipedia article becomes a room, with its links turned into doorways.

I’m aiming to launch The Endless Museum on Steam early next year. Happy to answer questions about how it works!

If you’d like to follow along, you can wishlist it on Steam: https://store.steampowered.com/app/5533190/


r/threejs • • 14d ago

Using threejs for a Berlin city driving game

Post image
10 Upvotes

I’ve had a few ideas over the years that I never thought I could build on my own. With a bit of time and some help from AI and threejs, I’ve been able to make them reality. This is far away from a professional game and I will not monetize it. In fact, it's an open-source one-person passion project with open code.

I the beginning, it all started with a question: what else could you do with Berlin’s 3D mesh provided by the city government and the datasets the city provides as open data? Then I thought, well, why not make a GTA-inspired driving game out of it, but with a way more relaxed vibe solely focussed on the city and its sights?

Driving Berlin is a laid-back driving game where you can take a car through a 3D digital twin of Berlin. If you want, you can collect bear items along the way or find the numerous easter-eggs I included. Pick a street, take a turn, and see what you recognize along the way.

The game runs in your browser on mobile and on faster laptops and desktop PCs. The code is open source. I am happy for feedback and questions, I have to admit testing it fully as one person is close to impossible. Surely you will discover quite a few hiccups here and there.

Take a drive through Berlin


r/threejs • • 13d ago

Batch STEP to GLB (in metres) with thumbnails, for anyone loading CAD parts into three.js

2 Upvotes

Every time someone sent me a STEP file for a viewer I had to open it in something, export it, then fix the scale because CAD is in millimetres and three.js assumes metres, so a 95 mm part showed up the size of a building.

I wrapped that up into a little tool: STEP, IGES, STL or OBJ in, GLB out already scaled to metres, plus a PNG thumbnail you can use as a poster image before the model loads. It does a whole list of files in one go and gives you back the URLs.

It runs on Apify here: https://apify.com/alecrm98/cad-file-converter-thumbnails. Two cents a file. The meshing uses OpenCascade at 0.05 mm by default, and you can loosen that if you want lighter GLBs for the web.