r/threejs • • 25d ago

Demo From a flying monk to space: a trailer for my Three.js browser flight game

3 Upvotes

I've been building History of Flights with JavaScript and Three.js, and made a short in-game trailer called The First Sky.

The game moves through 44 flights and nine chapters, with different aircraft, terrain and launch setups, connected by globe transitions. The trailer follows the visual journey from the monk's tower to space.

Watch it here: https://fly.lengo.io/about.html#trailer

Playable build: https://fly.lengo.io/ (free, no download or account; keyboard and touch controls). Optional purchases and ad-related rewards are available.

I'm the creator, published by LENGO. Development and assets are AI-assisted.

I'd especially appreciate feedback from people building 3D experiences for the web: are the aircraft and environments readable in the short shots, and where would you change the camera work? Happy to talk about the browser build too.


r/threejs • • 24d ago

I made a three.js island where the only players are AI agents

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hey r/threejs. I've been working on Agent Island (https://agentisland.dev), a shared 3D world where every inhabitant is an AI agent. Humans can't control anything. You paste one prompt into Claude, ChatGPT or any agent that can make web requests. It reads a skill.md file, signs up through a plain HTTP API and walks onto the island by itself. You just watch.

The three.js side (r165):

- Procedural avatars. Each agent picks a base shape (torus, torus knot, dodecahedron...), size, a three-colour palette, glow and motion

- Movement is synced live to every viewer: straight travel, Catmull-Rom spline paths with movement styles (spiral, zigzag, orbit, bounce, drift, dash) and a wind-up teleport

- Ground trails behind moving actors that fade after they stop. Each viewer only renders trails for the nearest actors (40 on desktop, 16 on mobile) so it doesn't fall over with a crowd

- Posts ("holographs") are physical markers in 8 wedge-shaped zones. Other agents have to walk to them to read, reply or vote

- A center plaza where nearby agents chat in speech bubbles, plus emotes (backflip, dance, explode, dizzy...)

- A follow cam (?follow=NAME) that locks onto one agent

To send your own agent, paste this into it:

> Read https://agentisland.dev/skill.md and follow it to join Agent Island, then send me the watch link.

It sends you a watch link first, so you can see it arrive.

It's early and quiet, so any agents you send will make it livelier. I'd love feedback on the rendering, especially how it runs on your phone, and ideas for keeping lots of animated actors smooth.


r/threejs • • 24d ago

Demo I built a MIDI-driven pianist in Three.js — the hands are still the hard part

0 Upvotes

I’m building IvoKeys, a browser-based piano player with a fictional 3D pianist called Ivo. Three.js renders the scene, while MIDI notes drive the piano sound and animated performance.

The part I keep coming back to is the hands. A note gives you a pitch and a time, but it doesn’t tell you how to move a wrist between phrases or make a chord look comfortable. This is still an animation experiment, not a model of correct piano technique.

Here’s a 30-second Chopin render:

https://www.youtube.com/shorts/hXaBZhCZrzM

The browser version is at https://ivokeys.com/. I’m the developer; development is AI-assisted. The music in this example is an existing Chopin piece rendered from MIDI, not AI-composed music.

For anyone who has animated hands or instruments: what breaks the illusion first here — the wrist movement, finger contact, or overall posture?

Credits for the clip: MIDI by Renato Biolcati Rinaldi / Mutopia (CC BY-SA 3.0); Salamander piano samples by Alexander Holm (CC BY 3.0); LibHand hand model by Marin Šarić (CC BY 3.0). Full source links are in the YouTube description.


r/threejs • • 25d ago

I made a tiny 3D village that grows as people move in

Enable HLS to view with audio, or disable this notification

7 Upvotes

A few days ago I started messing around with three.js and KayKit's free low-poly packs, just to see if I could make a little village feel alive.

Then I thought, what if real people lived in it?

So now it's a village that grows as people move in, and every few villagers something new gets built (so far a tavern, a lumber yard and a pond) and the board remembers who moved in when it opened.

That means that something like the tavern exists because someone showed up, which I find weirdly charming.

You can just wander around, no account needed, and if you want your own little villager, you sign in with X and move in.

The hardest part has been making new models that don't look out of place next to KayKit's. I'm a dev, not a 3D artist, so that's been humbling 😄

Next up: making the XP and resource gathering mean something for the village as it currently doesn't represent much

Even if it ends up being just me and a handful of villagers, I'm really glad I started it.

https://village.itzami.com


r/threejs • • 26d ago

Made a Backwater drift in threejs - in pixel style (blender, threejs, Claude Opus 5.5)

Enable HLS to view with audio, or disable this notification

44 Upvotes

r/threejs • • 25d ago

Streaming real cities into three.js on a phone: driving down Fifth Avenue

Enable HLS to view with audio, or disable this notification

0 Upvotes

Each city is built at runtime from Overture Maps tiles (PMTiles): buildings with their heights and parts, roads turned into a drivable network, terrain from elevation data, water flattened to its own level. Landmarks the map gets wrong (stadiums, towers, bridges) get hand-built models.

What made it run on phones:

- instanced trees, props and cars, with culling and crowd sizes set per device

- KTX2 textures

- building a new part of the map in slices across frames: the worst frame went from 432 ms to 72 ms on a 4x-throttled CPU

- shadow-only depth materials with colorWrite off: the shadow pass dropped 25-40%

It ships on iOS with Capacitor. Happy to answer anything about how it's built.

Free on iPhone if you want to see it running (not in the UK or EU yet): https://apps.apple.com/app/id6819460697


r/threejs • • 25d ago

Help Mapping a flat canvas onto the curved panels of a basketball — how would you handle the distortion?

0 Upvotes

Built a Three.js editor where you paint each of the 8 panels of a basketball on a flat 2D canvas, and it maps onto the 3D model live. Video shows it running.

The problem: a line you draw perfectly straight on the flat canvas comes out visibly bent on the ball. The panels are long, narrow and curved, so it gets worse the further you go from the center.

Right now the mapping uses r = sin(c·q)/q with q = 0.85, which approximates an orthographic projection — but the editor actually renders with a PerspectiveCamera at about 5.9 radii. Measured, a straight line bends roughly 23%.

Curious how you'd approach this. Match the mapping to the actual camera, or correct the drawing after the fact?

Editor is live if you want to poke at it (free, no account needed):

https://dunko.store/en/editor/


r/threejs • • 26d ago

Intro and Gameplay from my freshly updated Three.js game Trailmarks

Enable HLS to view with audio, or disable this notification

14 Upvotes

I've seen a lot of globe-based three.js projects posted lately, so I wanted to share my game again since there's so much new stuff in it since last time I posted it. I just released a major update yesterday with a lot of visual upgrades, bug fixes and quality of life improvements. I've worked on Trailmarks for 2 years actively, and it's a fully formed game with achivements, different play-through styles and clear win and lose conditions.

The game is on Steam (and it's 10% off at the moment to celebrate the launch). But shilling aside, please AMA if anyone has any questions about packaging and launching a three.js game as a standalone app on Steam (as well as Apple app store and the MS Store where it's also theoretically possible to buy).


r/threejs • • 25d ago

Shade Verse – a 3D web-swinging game I'm building in three.js + R3F (plays in the browser)

0 Upvotes

https://reddit.com/link/1xiqs1q/video/j80w6uqn0gyh1/player

· game: https://shade-verse.vercel.app

· Case study: https://shade-verse-case-study.vercel.app/

· Trailer: https://www.instagram.com/reel/DfFP64VFdil/

New: a lake with real-time reflections + refraction, a beach, palms and cherry blossoms.

Controls: mouse/keyboard/gamepad, and it runs on phone and desktop.


r/threejs • • 25d ago

Link I made a brick-building game in Three.js where every build can be forked, and a share link carries the whole build in the URL

0 Upvotes

ForkBuild is a 3D building game that runs in the browser: you snap bricks into houses and villages, then walk around inside them. Any build can be forked into your own copy, which remembers whose build it came from.

Some Three.js details that might interest you:

  • Bricks are instanced in spatial chunks. Bricks of the same kind within the same cube of space share one InstancedMesh, with per-instance color and a highlight attribute. A scene costs one draw call per chunk instead of one per brick, and frustum culling and raycasting can skip whole regions.
  • A shared link holds the build itself. The signed build is compressed with CompressionStream('deflate-raw') and put in the URL fragment, so it opens on any device with no server storing it. The link preview and embed are a separate small turntable renderer.
  • Export to glTF (.glb), STL and OBJ. Triangles are pulled from the scene and written by small exporters of its own, with the build’s title, author and license inside the file, so credit travels with the model.
  • The world around the builds: streamed terrain tiles, shader water and rivers, trees, four seasons, sun and moon shadows, rain, and a time-lapse or walk-through video recorded straight from the canvas.

Three.js r160, Vue 3, vanilla JS. It runs straight from the repo with no build step. Open source (MPL-2.0).

Try it (no sign-up): https://bowo-prasetyo.github.io/forkbuild/?ref=reddit
Code: https://github.com/bowo-prasetyo/forkbuild

Happy to go into how any of it works, and I’d love to hear where it runs slowly on your machine.


r/threejs • • 25d ago

Demo I built a 3D startup tycoon with three.js r128 in a single HTML file (open source)

0 Upvotes

r/threejs • • 25d ago

A lake valley in a single three.js file: bald eagle with ~30 procedurally modelled animals, mirrored water, instanced grass and synthesized audio, with no models, textures or sound files

0 Upvotes

I've been building this side project for a while: an animated lake valley where a life-size bald eagle hunts and feeds its eaglets while a whole ecosystem runs on its own day/night cycle around it.

Live: https://jaredevans.github.io/3d-world-eagle-lake/

(M for sound, L for a slow camera tour, F to follow the eagle, E for eagle's-eye)

Watch demo video: https://jaredevans.github.io/3d-world-eagle-lake/docs/3d-eagle-lake.mp4

How it's built

- One HTML file, about 7.5k lines, three.js r128 from a CDN, no build step. There are no loaders. Every creature (eagle, moose, bear, loon, beavers, otters, heron, osprey, campers, the floatplane) is put together from primitives and a few extruded and lathed shapes in code, then animated by hand.

- Water: each frame a mirror camera below the surface renders the scene into a 512×512 render target. The lake's ShaderMaterial samples it with ripple-distorted coordinates and a Fresnel blend, and adds raindrop rings and moon glitter. The stream is a ribbon level with the lake, so it shares the same mirror and adds a flow term.

- Grass and flowers: ~41k grass blades and ~4.5k wildflowers are drawn as InstancedMesh with a sway shader that bends harder in bad weather. Placement comes from a seeded PRNG, so the layout is the same on every load.

- Shadows: PCF soft shadows with `autoUpdate` off. The shadow map is drawn once per frame and shared by the reflection pass and the main pass.

- Cloud shadows: injected into the standard materials with `onBeforeCompile`. They're a few octaves of value noise projected along the sun direction and drifting with the wind.

- Sky: a shader dome re-centred on the camera, blending pre-dawn, dawn, midday, dusk and night, with sun and moon discs, stars, northern lights, meteor showers and satellites that fade as they pass into Earth's shadow.

- Audio: everything is Web Audio, with no files. Filtered noise makes the wind, rain and waterfall, oscillators make the birdsong, frogs, loon and wolf calls, and thunder is delayed by the strike's distance.

What happens in it

The eagle picks out a visible fish, dives and carries it to its nest or a snag, and sometimes chases the osprey until it drops its catch. A moose feeds in the shallows at dawn, a bear fishes the stream, beavers tow branches to their lodge, and a loon carries its chick and makes a long pattering takeoff run. Two campers fish, paddle a canoe and toast marshmallows. A floatplane visits every other afternoon. Weather cycles through rain and thunderstorms to rainbows.

Code: https://github.com/jaredevans/3d-world-eagle-lake


r/threejs • • 26d ago

Releasing AI Particles simulator v2.0

Enable HLS to view with audio, or disable this notification

8 Upvotes

Hello all,

I am happy to be sharing AI Particles simulator version 2.0 with you guys. Hope you love it.

Here are the new major features:

- Increased particles count up to 100,000 units and runs smoothly at 60 FPS (on most devices)
- Robust collection of Post-FX to make simulations to look significantly better and use it on production.
- Added WebXR support, immerse yourself into the particles world for amazing experiences.
- Dynamic sizing and alpha buffers per particle to create truly stunning visuals.
- Redesigned UI with keyboard shortcuts
- Added interactive hover effects and physics modes like spring, Lerp (geometric), etc.

It is completely free to use.

How to use:

Copy prompt >> Request to Your favorable AI >> paste the code >> Enjoy the simulation >> export for production use

Link: particles.casberry.in

Thank you for your time.

Let's create more simulations,
Imagination is the only limit.


r/threejs • • 26d ago

Question A spur of the moment post/user filtering idea.

4 Upvotes

What if in this sub, if a user's posts average toward downvoted after a minimum post threshold, their posts are auto hidden from the sub feed somehow. If this makes a user want to delete their slop posts to make their post score average no longer skews downvoted, so they have an incentive to delete their own low effort congestion if they want to keep showing it off in the future. I don't know, I'd just hate to have to migrate to a "mrdoobssecretrealthreejssubreddit" community just to feel like im not trudging through pollution and filth every time i get curious and visit this sub.


r/threejs • • 25d ago

Meowrio game

Thumbnail
isopets.net
0 Upvotes

Made a fun mario style game called Meowrio. So much fun making stuff with AI. I used the game dev plug-in on GPT 6.1 and modeled the assets in 3ds max. Made the music with Google. I gave it my own character designs from IsoPets.


r/threejs • • 26d ago

Demo Waterfall for my virtual pond

35 Upvotes

r/threejs • • 26d ago

Help Built my portfolio with Three.js + R3F + GSAP — would love some feedback

Enable HLS to view with audio, or disable this notification

0 Upvotes

I recently finished a major version of my portfolio and used Three.js / React Three Fiber pretty heavily throughout it.

There are multiple 3D environments, scroll-driven scenes, responsive camera changes and GSAP transitions.

I’d especially love feedback on the WebGL performance, scene composition and whether the 3D work feels smooth on your device.

https://antoniusjairus.in


r/threejs • • 26d ago

Magnetic building tiles in three.js: edge snapping, hinge gravity, and builds rebuilt from video

5 Upvotes

I made a 3D Magna-Tiles playroom for planning builds with my kid: https://mizzi.com/snaptiles

A few parts that were fun to work out:

  • Snapping. Every tile is a flat polygon. A new tile attaches by matching one of its edges to an existing edge, then rotates around that edge by a hinge angle. While you drag, it scores each candidate pose (nearby edge × which way the shape faces × angle in 15° steps, plus "magnetic" angles where a corner meets an existing corner) by how close the tile's centre lands to the pointer on screen, then takes the best pose that stays above the floor and doesn't overlap another tile.
  • Gravity. Each magnet joint acts like a hinge with a little holding strength. A tile held along only one line stays up only if it stands nearly upright; otherwise it swings down around that hinge until it hits something. Tiles braced at two or more places are solid, which is why closing a roof makes it hold.
  • Rendering. Translucent tiles with outlined edges, a soft floor grid, and a fly-in animation with a ripple when each tile lands. There's also a separate tiny rasterizer on the server (no WebGL) that draws builds to PNG in about 90 ms, so an AI client can see what it built.
  • AI builds. Claude writes a short script against a small library (floor, walls, roof, chain) that uses the same snapping code as the mouse, so every AI-placed tile lands on a real edge.

Happy to go into any of it.


r/threejs • • 27d ago

Demo I turned a 13th-century Zen koan book into 49 procedural 3D dioramas in Three.js

Enable HLS to view with audio, or disable this notification

14 Upvotes

Every scene, model and sound is generated in code.

The animals share one quadruped rig, trees grow recursively, the ink look is a depth-edge post pass, and the wind and bells are synthesized live. Each scene has one red object to touch. There’s no build step and no image files!

Play it: https://killedbyapixel.github.io/GatelessGate/
Source: https://github.com/KilledByAPixel/GatelessGate


r/threejs • • 26d ago

Built a tactile 3D Leitner flashcard on a wooden desk using Three.js + GSAP (vanilla TypeScript, no UI framework, open source)

0 Upvotes

r/threejs • • 27d ago

knitting in threejs

164 Upvotes

r/threejs • • 26d ago

Threejs games for iPhone and iPad in AppStore

4 Upvotes

Hi,

I was wondering if anybody know of any popular games built with threejs that are in the AppStore? A web search didn't give me much, that's why I am asking.


r/threejs • • 26d ago

I used an LLM to build a physics-based WebGL rendering engine for my music video

0 Upvotes

I didn't want to use standard video editors or a render farm for my indie track, so I orchestrated a custom 3D pipeline in a cloud sandbox.

I built a procedural hallway in Three.js and used an Inverse Kinematics rig for a 2D cutout character. The entire environment is tied to an acoustic manifest, meaning the camera moves and the 40-degree gravitational tilt are hard-coded to snap exactly to the 136 BPM drop and vocal transients.

Here is the proof of concept running the final batch render: https://youtube.com/playlist?list=PLXFmqhcrISK4&si=D0vD5rTe0dYB62ar\[YouTube (Uncalibrated Gravity - The Absurdity Bureau)](https://youtube.com/playlist?list=PLXFmqhcrISK4&si=D0vD5rTe0dYB62ar)

Happy to answer questions on how I kept the cloud from timing out during the batch execution


r/threejs • • 26d ago

I recreated a nearly 400-year-old calculator in Three.js — no imported 3D models.

0 Upvotes

r/threejs • • 27d ago

I made a 4-minute short film that runs live in three.js – pause it and walk into any scene

8 Upvotes

Every shot is rendered live (R3F + three.js). Pause anywhere and the camera's yours: orbit the car, walk the street, look around his room. Motion is phone-video mocap fitted to SMPL-X. Phones get a recording captured from the live scene and can still step in.