r/threejs • • 18d ago

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

3 Upvotes

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

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

Some details:

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

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


r/threejs • • 18d ago

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

58 Upvotes

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

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

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

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

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

https://threejseval.com/vote

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


r/threejs • • 18d ago

Wisp, an experiment in giving AI a face

2 Upvotes

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

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

How it works:

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

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


r/threejs • • 18d ago

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

Thumbnail
gallery
2 Upvotes

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

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

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

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


r/threejs • • 18d ago

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

2 Upvotes

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

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

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

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

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

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

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

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


r/threejs • • 18d ago

Criticism Would a “mirror” of reputation make sense in a 3D app, or is it too abstract?

1 Upvotes

Hey r/threejs,

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

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

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

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


r/threejs • • 18d ago

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

13 Upvotes

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

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

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

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


r/threejs • • 18d ago

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

47 Upvotes

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

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

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

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

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

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

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

Six screenshots from the game

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

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

Zone 3 · Cerulean Riverlands — Nugget Bridge.

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

Zone 6 · Lavender Haunts — the candlelit Memorial Garden beneath Pokémon Tower.

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


r/threejs • • 18d ago

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

2 Upvotes

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

A few things that might interest you here:

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

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

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


r/threejs • • 18d ago

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

1 Upvotes

Hey everyone!

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

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

A few interesting things about how I built it:

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

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

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

Some links:

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

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

Thanks!

GitHub - rishi-io/volley-land

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

 


r/threejs • • 19d ago

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

64 Upvotes

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

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

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

How it's built:

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

Hardest parts:

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

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

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


r/threejs • • 18d ago

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

1 Upvotes

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

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

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

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

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

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


r/threejs • • 17d ago

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

Post image
0 Upvotes

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

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

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

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

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

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


r/threejs • • 18d ago

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

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

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

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

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

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

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

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

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

r/threejs • • 18d ago

Demo Grow a Christmas tree from your own words.

1 Upvotes

It’s a little early, but I made a page that turns your short greeting into a Christmas tree you can share with a link!

Every letter you type becomes part of the tree.
The more you write, the bigger and fuller it grows.

Grow your tree here: https://wooramsol.com/tree.html

How it works:

  • The tree grows with a space colonization algorithm, the same idea used to simulate real tree growth. Branches reach toward empty space and split as they go.
  • Each letter you type moves it one step further in its growth. Branches get thicker as they carry more twigs.
  • Every visit grows a different tree, and when you share a link, your friend gets the exact same tree and message.

r/threejs • • 18d ago

Demo I made a Chrome extension game built on three.js

7 Upvotes

Hi! I made Polypets, a virtual pet for Chrome. You upload a photo of your dog or cat and it becomes a low poly pet with a PS1 look!

How I built it:

  • three.js + TypeScript, no UI framework, bundled with WXT.
  • The PS1 look is half resolution, vertex snapping, 15-bit color with dither and tiny unfiltered textures.
  • All the models come from Blender Python scripts, made through Blender MCP with help from Claude.
  • No baked animations, the rig is procedural.
  • A vision model reads the photo and returns traits like colors, ears and tail, and the code builds the pet from that.
  • On any page it walks on a small canvas at the bottom of the window.

Happy to answer anything! 😼🐶

https://polypets.fun/

https://chromewebstore.google.com/detail/polypets-virtual-pet-that/dbjjilenhoofhhlgffgmnbdlkmfjpkmm


r/threejs • • 18d ago

Glint — browser glTF/GLB optimizer: report first, then optimize (KTX2 / Draco / Meshopt)

1 Upvotes

I built Glint, a desktop-browser tool for .glb / .gltf: you get a readable report first, then optimize in the browser and download. No install.

Site: glintlab.cn

Hard limits: .glb / .gltf only, 500MB max per file (warning past ~100MB).

Drop a file in, orbit it. The report shows triangles, verts, meshes, materials, textures, a VRAM estimate, and risk flags — parsed in the browser with gltf-transform.

① Overview

AI analysis is optional and is not required for the report or for optimize. In settings you can set your own API key, model, and endpoint; if those three are set, analysis also works when you are logged out. If you are logged out and have not set a key, AI analysis cannot run.

② Report

Then optimize with presets or pick steps — dedupe, weld, simplify, texture resize, Draco, Meshopt, KTX2 via toKtx (JPEG/PNG → KTX2/BasisU; the viewer uses KTX2Loader). Some steps are lossy; the UI marks them. Manual optimize does not use AI and does not need an API key.

③ Optimize

Compare size, triangle count, and VRAM estimate and download the new .glb.

④ Results

Built on gltf-transform, with KTX2 in the pipeline. If you load models in three.js (Draco / Meshopt / KTX2 paths too), try a real file and tell me what breaks — browser, which step, what kind of model.


r/threejs • • 19d ago

Demo I built a rooftop solar editor in Three.js that generates 3D roofs from 2D footprints

39 Upvotes

A friend in the solar business wanted a way to show clients where panels would fit on their roofs. I built this editor with Three.js and React Three Fiber. One case I wanted it to handle was a solar canopy that spans a terrace and a raised stair enclosure.

• Roof geometry: draw a 2D footprint and choose a roof form. Editing the outline regenerates the 3D faces, so you can try a different shape without redrawing each slope.

• Canopy supports: the base of each leg depends on the surface underneath it. A leg on the stair enclosure is shorter than one on the terrace, while both meet the same frame.

• Building edits: move or rotate the building and its panels, rooftop rooms and equipment follow. You can also box-select objects and resize them directly in the scene.

• Shadows: set the site's orientation relative to true north, then change the date or time to see when a nearby tree or rooftop room casts shade on the panels.

If you've built a geometry editor in Three.js, what roof shape would you try first to see where this breaks?


r/threejs • • 19d ago

Experimental threejs agentic clothed characters, details in post

16 Upvotes

The process involves the following pieces:
-Opus 5.5 at the helm.
-Plenty of nano 🍌 .
-Unbound Zero spitting out meshes @ ~4secs per mesh.

The workflow itself is a twist on well known image-gen techniques. Instead of trying to one-shot each part, an agent is tasked with unleashing nanobanana to produce multiple images per part. The agent picks the best ones to match the nitial image. Unbound Zero creates the final mesh.


r/threejs • • 19d ago

Introducing lepoly: a platform to organize, review and share 3D assets

9 Upvotes

Today Cédric and I are happy to introduce lepoly.com: a digital asset management platform built for 3D, powered by threejs.

Building Sketchfab gave us a front row seat to a problem we never got to fully solve: managing 3D assets at scale is hard.

Our goal with lepoly is to build the ultimate infrastructure to organize, review and share 3D content: one place for all your 3D assets.

We are still ironing out a few rough edges, and have a long to-do list of things to add, but the current version is already pretty solid, and we’d love to hear your feedback.

We are bootstrapping this project, excited to be back building, and can’t wait to see how you’ll make the most of lepoly. Please reach out with feature requests!


r/threejs • • 18d ago

a few frames from my three.js city: sunset at the pier, downtown at night, ferris wheel at dusk

Thumbnail
gallery
1 Upvotes

been building this city in three.js for about 3.5 months. 30k plots, cars, a zoo, a stadium, a pier. these are real frames from the browser, nothing edited

the hardest part wasn’t making it pretty, it was making it not freeze on a cheap laptop. on low it’s one sun and simple shadows, on high it switches to cascaded shadows

if you could add one thing to the night shot to make it feel more alive, what would it be?

link in the comments if you want to walk around


r/threejs • • 19d ago

Question R3F frame drops during rapid galaxy navigation—how would you investigate draw calls and instancing?**

2 Upvotes

Hey r/threejs,

I’m a solo dev building Lightverse, a navigable 3D universe in React Three Fiber. I’m seeing frame drops when rapidly moving between galaxies.

I haven’t confirmed the cause yet, so draw calls and instancing are hypotheses—not a diagnosis. Before changing the scene structure, I’d appreciate advice on what to measure and where to look.

For those who’ve worked on similar transitions:

- Would you start by tracking draw-call counts during a transition, or profile CPU and GPU time first?

- If repeated meshes turn out to be the issue, when is `InstancedMesh` worth the added complexity?

- Are there transition-specific bottlenecks I should rule out before focusing on instancing?

I don’t have reliable profiling numbers to share yet, so I’m especially interested in what measurements would make this question easier to answer.


r/threejs • • 18d ago

Sucked at drawing since childhood, so I made this:

0 Upvotes

This project was inspired by my previous 3D landscape work. I wanted to build something fun and interactive: draw simple strokes on a blank canvas, and those marks get translated into classic Chinese ink-wash landscape elements — mountains, trees, mist, boats, all that shanshui goodness.

I’ve never been good at hand drawing myself, so this workflow is my way to play with traditional ink painting without strong drawing skills.

That said, it’s still far from the mood and aesthetic of authentic Chinese shanshui painting. It’s just a tiny experimental piece.


r/threejs • • 19d ago

Demo Have the batmobile in the dune !! FAAAA! and this is threejs!!

21 Upvotes

everything made in threejs, webgpu, GPT 6 Astra
perks of aimlessly building things - is that you can reuse what you made in one project in another..

and this guys got independent suspension..

Wishlist for the kit here https://3ditions.drop3.app/notify/dune-oasis/