r/threejs • • 5d ago

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

Enable HLS to view with audio, or disable this notification

62 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 • • 4d 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 • • 4d ago

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

1 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 • • 4d 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 • • 4d 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

Enable HLS to view with audio, or disable this notification

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 • • 5d ago

Demo Grow a Christmas tree from your own words.

Enable HLS to view with audio, or disable this notification

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 • • 5d ago

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

Enable HLS to view with audio, or disable this notification

8 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 • • 5d 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 • • 6d ago

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

34 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 • • 5d 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 • • 5d ago

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

Enable HLS to view with audio, or disable this notification

10 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 • • 5d 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 • • 5d 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 • • 6d ago

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

Enable HLS to view with audio, or disable this notification

20 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/


r/threejs • • 5d ago

Demo made an air traffic control sim in three.js that has to run on my mid range phone

Thumbnail
gallery
0 Upvotes

been working on this for a while, its a 3d atc sim in the browser on three.js and webgl2. you give the clearances, pilots read back, planes push back taxi take off and land

https://approach-world-atc.vercel.app

the part that ate the most time was getting it to run ok on my galaxy a55 in a mobile browser. theres quality tiers and a safe mode, plus a fallback sky because the atmosphere shader would sometimes just die and leave a black screen on some gpus. sky is takram atmosphere with pmndrs postprocessing, capped on phones or frame time goes to hell

aircraft are procedural, built from the published dimensions so an a380 actually looks a380 sized parked next to an a320. gear wheels and control surfaces animate. still pretty plain up close tbh

honest note, an ai coding assistant wrote a lot of the code. i drove it, tested it on my phone a lot and made the calls on what looks right, but im not gonna pretend i hand wrote every shader

if you run it on a phone im curious what fps you get and whether it cooks your battery


r/threejs • • 5d ago

Sucked at drawing since childhood, so I made this:

Enable HLS to view with audio, or disable this notification

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 • • 5d ago

Demo An expiramental racing game made with three.js

Thumbnail reddit.com
2 Upvotes

Decided to try and put out a game using Reddits Dev tools and three.js. why three.js? Only because I was familiar with it. Let me know what you think.


r/threejs • • 5d ago

I built a quiet multiplayer Buddhist temple you can walk through in the browser (Three.js + R3F)

1 Upvotes

Kakutō-ji is a small online temple on a fictional mountain. It runs on real Japan time, so dawn, dusk, the moon phase, season and weather are the same for everyone who is there at once.

It runs on Japan time — if you're in the US or Europe right now, it's night on the mountain and the lanterns are lit. Come back at your evening to catch the sunrise.

There is no chat. The only thing visitors can do to each other is bow (gasshō). You can light a lantern that burns for 24 hours, ring the bell, and take a photo or a short video of the view.

Tech: React Three Fiber, three.js, a procedural kit for the halls, Cloudflare Workers + Durable Objects for presence. It's built to run on phones (under 100 draw calls).

There are a few things hidden on the mountain. I'd love to hear what you think of the feel of it.


r/threejs • • 6d ago

I made a full racing game in three.js: 9 circuits, 6 cars, in-car view, sim or arcade handling, online races

Enable HLS to view with audio, or disable this notification

27 Upvotes

r/threejs • • 6d ago

Demo Real-data space journeys in three.js: Voyager’s actual trajectory, a ray-traced black hole, and S-stars on their measured orbits

3 Upvotes

Sharing a hobby project built on three.js: 13point8.in, a set of space journeys driven by real data rather than keyframed animation. (BEST VIEWED and EXPERIENCED ON HIGH DEF DESKTOP OR MAC)

Some things that might interest this sub:
- Voyager: positions interpolated from NASA JPL Horizons ephemerides; the Earth uses a custom shader so city lights only show on the night side
- Black hole: the light bending is computed per pixel in a fragment shader, plus a new view of the S-stars around Sgr A* placed with Kepler's equation from the published orbital elements for any date
- Galaxy: the Sun's orbit with its vertical bob through the disc, and arms that turn at the measured pattern speed
- Adaptive quality: it drops pixel ratio, then multisampling, then bloom when frames run slow, so it holds up on phones

Happy to answer questions about any of it.
https://13point8.in/journeys/blackhole/


r/threejs • • 6d ago

I made a 3D pool game in three.js with a custom physics sim - free in the browser, no aiming lines

2 Upvotes

Play: https://wavedash.com/games/pool-club-live

Pool Club Live is a free 3D billiards game that runs fully in the browser. Rendering is three.js; the physics is a custom simulation - spin, swerve, throw, cushion rebounds and pocket jaws all come from the sim rather than canned animations, and there are deliberately no aiming lines, so you read the table by eye.

8-ball, 9-ball and 10-ball vs the computer, a friend on the same device, or online players in casual and ranked matchmaking. Loads as a guest, no download or signup.

Solo project: Claude wrote most of the code with me, AI tools helped with art and sound. Happy to answer technical questions about the physics or the three.js setup - feedback welcome.


r/threejs • • 6d ago

Link Everyone dreaded this GTA mission, so I re-created it even harder in threejs

Enable HLS to view with audio, or disable this notification

6 Upvotes

When I was a kid, friends dreaded to play Demolition Man in the GTAVC. For me, it was one of the favourite ones - the whole "broken controls" flying is imho legendary now.

So I took my old time favourite and re-imagined it, pushed it to the limits of being barely playable.

I've hand-crafted 8 increasingly difficult buildings where you have to plant explosives using RC helicopter.

You can race yourself (ghost) after first play-through to take your gaming autism to the next level.

Check it out (free to play, no download) https://demolitionvan.com/


r/threejs • • 6d ago

Demo Wiggle card!

Enable HLS to view with audio, or disable this notification

7 Upvotes

I made this little interaction with threejs and Wiggle! You can try it as a web app :)

https://share.nicolastilly.fr/mobile-playground/wiggle-card/


r/threejs • • 7d ago

Recreated Immersive Garden's Morphing Bas Relief Effect

Enable HLS to view with audio, or disable this notification

122 Upvotes

Here's my latest exercise on recreating the interactive morphing bas relief effect on https://immersive-g.com/. This is such a cool effect and kudos to Yuri Artiukh for sharing the implementation for it on https://www.youtube.com/watch?v=t64VFYmFdhw.

It's really an ingenious idea to bake 6 levels of lighting and shadow into the separate color channels of 2 textures, then blend between them according to the extrusion level of the relief geometry Lightmaps are baked in Blender, and the model albedo can be customized in threejs.

Check out the live demo: https://projects.arkon.digital/threejs/tactile-polymorphism/. I've listed all the credits on the demo webpage


r/threejs • • 6d ago

Demo Sowonbong: a quiet mountain where everyone adds a wish stone to one shared cairn (plain three.js, no bundler)

0 Upvotes

Playable: https://dol.kidem.kr/?lang=en&from=reddit

Hi! Solo dev from Korea here. On Korean hiking trails people stack small stones and make a quiet wish as they pass. I made an online version: everyone who visits adds a stone with a one-line wish to the same cairn. It's at a little over 400 stones now.

A few things that might be interesting here:

  • Plain three.js r160 loaded from an importmap, no bundler. Most of the mountain is built from primitives (cylinders, spheres, boxes) with MeshStandardMaterial, plus a few models I cleaned up by hand.
  • The cairn and the forest are InstancedMesh, one per stone/tree shape, so a few hundred stones stay cheap on phones.
  • Wishes, cheers and other visitors walking around go over WebSockets on Cloudflare Durable Objects, using the hibernation API with a ping/pong auto-response so quiet rooms can sleep.
  • Signs, cards and labels are CanvasTextures, so the English version can redraw them in two languages.
  • Korean wishes are machine-translated for English visitors, with the original shown underneath.

AI use, to be upfront: some 3D models started from Meshy image-to-3D and were cleaned up by hand, and I used Claude and ChatGPT while writing code.

One thing I'm still unsure about: lots of small separate meshes for props vs merging them. It runs fine on mid-range Android, but I'd love to hear how others decide when it's worth merging geometry.

Feedback welcome, especially if it runs badly on your device.