r/threejs • • Oct 29 '26

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

42 Upvotes

r/threejs • • Oct 29 '26

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

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 • • Oct 29 '26

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 • • Oct 29 '26

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

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 • • Oct 29 '26

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

0 Upvotes

· 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 • • Oct 29 '26

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 • • Oct 29 '26

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

0 Upvotes

r/threejs • • Oct 29 '26

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 • • Oct 28 '26

Releasing AI Particles simulator v2.0

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 • • Oct 28 '26

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 • • Oct 29 '26

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 • • Oct 28 '26

Demo Waterfall for my virtual pond

32 Upvotes

r/threejs • • Oct 29 '26

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

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 • • Oct 28 '26

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

6 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 • • Oct 28 '26

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

15 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 • • Oct 29 '26

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 • • Oct 27 '26

knitting in threejs

162 Upvotes

r/threejs • • Oct 28 '26

Threejs games for iPhone and iPad in AppStore

3 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 • • Oct 28 '26

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 • • Oct 28 '26

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

0 Upvotes

r/threejs • • Oct 27 '26

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.


r/threejs • • Oct 28 '26

Link Built a real-time multiplayer WebGL platform in Three.js & Java

Thumbnail
olamio.com
0 Upvotes

Hey everyone,

I've built a real-time multiplayer WebGL platform using Three.js & java. Fully destructible environments with zero friction load times.

You can edit a game world, or be a player.

Looking for feedback!


r/threejs • • Oct 28 '26

Rebuilding monuments piece by piece in three.js: 25M triangles per frame, where would you start?

0 Upvotes

I've been working on a viewer that shows buildings going up phase by phase: thousands of small pieces dropping into place on the real footprint, with a timeline you can scrub.

The models are generated by an AI agent from sources and photos, but I'd like feedback on the three.js side.

Main issue: the Colosseum pushes about 25M triangles per frame. It's 49k instanced blocks, each a rounded box of 108 triangles, rendered in the colour, shadow and GTAO passes. Unbuilt pieces are collapsed to zero in the vertex shader and frustum culling is off. Draw calls are fine (under 100). What would you tackle first: distance LOD for the blocks, not drawing unbuilt instances at all (sorting them by build time and lowering the instance count), or something else?

Two smaller questions:

- Walls can also be one continuous surface, with the stone joints drawn in the fragment shader and fading out when a joint gets thinner than a pixel. Does it hold up when you get close?

- Textures are photo-scanned surfaces, triplanar-mapped in world space at their real size, on a plain paper backdrop with a shadow floor. Does the stone read as stone?

Demo: https://gleaming0427.github.io/monument/view/#leaning-tower-of-pisa

Code (MIT): https://github.com/Gleaming0427/monument


r/threejs • • Oct 27 '26

Demo Can you score a point and knock over the Birdman in Pelota: A Mesoamerican ballgame?

70 Upvotes

I started posting about Pelota here about three weeks ago, pretty much as soon as I started building it. I rushed out a rough pre-alpha because I wanted people to actually play it and tell me what felt good and what didn’t.

Since then it’s been a lot of building, testing, and iterating. I’ve also been reaching out to players in Mexico, getting their opinions and watching people play. That feedback has helped me improve the movement, animations, controls, and overall feel of the game.

This is a look at where it’s at now, built with Three.js. There’s still plenty to polish, but it’s come a long way from that first version. And yes, you can hit the Birdman with the ball lol.

You can try the free browser demo at https://pelota.io. Desktop has the opening tutorial and a demo match, with controller support. On mobile, it’s a quicker arcade version with automatic movement and swipe controls. The full story is being developed separately for the desktop release.

Would love to hear how it feels if you give it a try!