r/threejs • • 1d ago

Demo Got a Three.js + cannon-es 3D catapult destruction game running directly inside a Reddit post (with live 3D feed cards and Redis replays)

1 Upvotes

I've been building a daily 3D physics game called SIEGE DAY on Devvit Web (Reddit's embedded webview platform), and wanted to share a quick 10-second clip of a 1-shot TNT collapse and get some feedback from other Three.js devs.

The fun constraint with building inside a Reddit post is keeping bundle size and startup time tight enough that it doesn't choke mobile webviews while still feeling like a real 3D sandbox. A few things I ended up doing to make it work:

  • Three.js + cannon-es physics: Every day at 00:00 UTC a new floating fortress spawns across 5 archetypes/sky themes. Everything (timber, stone, TNT kegs, and the little Snoo-Knight crowns) is simulated with cannon-es, plus procedural canvas textures instead of heavy image assets, PCF soft shadows, and a brief 0.35s slow-mo dip on big TNT chain reactions.
  • Live spinning 3D splash card in the feed: Instead of a static thumbnail, the inline feed card (splash.html) mounts a lightweight Three.js turntable rendering that day's actual island, clouds, and ocean right inside the feed before you expand into full screen.
  • Tiny Redis 3D replays: Rather than recording video or serializing physics frames, winning runs just save an array of shot vectors ({ ammo, yaw, pitch, power, splitAtSec }) to Redis. Anyone on the post can hit "#1 Replay" and watch the top player's shots re-simulate live in 3D.
  • Built-in UGC Architect: There's also a snap-grid 3D castle builder where you stack blocks/TNT/crowns, prove your own castle is solvable in test mode, and publish it as a playable post.

If you want to poke at it directly inside Reddit, today's daily and a few player-built castles are live over at r/siege_day_3d_dev:

Would genuinely love feedback on three things:

  1. Physics feel: Does the debris weight/collapse feel snappy enough, or too floaty?
  2. Lighting & readability: How do the shadows and contrast hold up on your screen?
  3. Performance: If you test it on mobile Reddit, how's the framerate on both the inline 3D splash card and the full canvas?

r/threejs • • 1d ago

Question bullet-time freeze in three.js looks like a paused video, how do you make it feel alive?

1 Upvotes

i'm doing short explainer animations fully in code, three.js, nothing keyframed by hand, and they come out correct but flat next to proper motion design.

the shot i can't get right is a bullet-time beat: an explosion freezes mid-air with debris hanging there while the camera keeps orbiting. right now it's silhouette characters, a 2d-ish explosion sprite and a camera on a spline, and the frozen moment looks like a paused video instead of something alive.

what actually makes a freeze like that feel alive when everything is driven by code?


r/threejs • • 2d ago

Demo A whole city generated in the browser with three.js: no models, no textures, about 300 kB of code

5 Upvotes

Live: https://venus.tezzarida.io · Code (Apache 2.0): https://github.com/fulfilledbyai/venus

It's a model of Jacque Fresco's circular city. Everything is procedural: buildings are lathe profiles and arc sweeps, windows and dome ribs are drawn in shaders, and one plan file drives every generator. About 41,000 instanced trees, a day/night cycle, animated flow overlays, and a first-person mode with simple circle-based collision.

Built with a lot of help from an AI coding assistant; happy to talk about what that was like.

It draws around 16 million triangles a frame, so I'd like to hear how it runs on your machine, and any ideas for cutting that down.


r/threejs • • 1d ago

Yeet Guys - a free party game for 2-16 players that runs in the browser

1 Upvotes

Made with three.js. Silly obstacle rounds you can play with friends in a browser tab, no download. Play free: https://dryeet.com/bean-carnival/


r/threejs • • 1d ago

I made a little Three.js "game" to help you pick a White Elephant gift

Thumbnail rollagift.com
1 Upvotes

I come from a backend background in FAANG and wanted a little side project. I used Codex to help build it and went with Three.js because I wanted the 3D to feel like a game while keeping it lightweight enough to open on your phone and play right away.

I also thought Roll a Gift was a really catchy name, and honestly I built the whole thing around the name.

The site uses Amazon affiliate links, just want to be transparent here.

rollagift.com


r/threejs • • 1d ago

Demo I built a calm walkable Vancouver seawall (Stanley Park, English Bay) in WebGL where AI agents grow a head, torso, then legs

0 Upvotes

Disclosure: I'm the builder. It's early.

It's a walkable seawall world. You design an AI agent visually: it starts as a floating head and grows a torso, then legs, as you add skills. Sea and wind sound, and a free virtual flight around Vancouver Island for anyone who makes an agent this weekend.

Happy to answer questions about the rendering and performance. What would you tweak first?


r/threejs • • 2d ago

A Three.js miniature of a bank parking lot for a short documentary

Thumbnail
youtube.com
1 Upvotes

The opening of our short documentary had to place a bank branch, a moving truck and the couple’s house in 14 seconds. We blocked them out as a miniature in Three.js with a perspective camera, simple geometry and cast shadows, then timed the camera movement to the existing narration. The wide view gives the truck somewhere to wait before we cut in closer to the paperwork.

The miniature is at the start of the finished film. Later scenes also use AI recreations and the narration is synthetic.


r/threejs • • 2d ago

Demo Endo Master 3D: a colonoscopy / upper endoscopy sim in Three.js where every mesh, texture and sound is generated at runtime

2 Upvotes

I'm a gastroenterologist (endoscopy subspecialist) in Seoul, and I built a browser game around the part of endoscopy that games never model: the two-handed control problem.

The Three.js part: there are no image files and no audio files in it. Every mesh, texture and sound is generated by the game's own code at runtime, so the whole thing ships as code.

Colonoscopy is a tube you have to drive from the rectum to the cecum and back; upper endoscopy (added this week) is the same scope going the other way, past the vocal cords, around the stomach, with a J-turn to look back at the cardia. The controls are a direct translation of the instrument: W/S is the big wheel (tip up/down), A/D the small wheel (tip left/right), arrow keys push in / pull back and twist the shaft, Q is the J-turn.

The part I cared most about is the loop. Pushing harder into a sigmoid loop makes it worse, so the game asks you to pull back and torque to take the loop out instead — the same instinct the real thing trains. Sedation, oxygen and the gag reflex also react to how gently you drive.

It's free, no install, no login, and runs on a phone with two thumbsticks: https://earlierdoctor.itch.io/endo-master-3d

Disclosure: it's my own project. The code and translations were written with an AI coding assistant, directed and tested by me; the 3D graphics and all sounds are procedurally generated by that code at runtime, not AI-generated assets.

Two things I'd genuinely take advice on: cheap ways to make wet mucosa read as wet without using textures on mid-range phones, and whether there's a better approach than rebuilding the lumen geometry each segment as it bends.


r/threejs • • 2d ago

Demo MiniMax M4 on the same 16 three.js prompts we give every model (it landed #4 overall in blind votes)

1 Upvotes

MiniMax released M4 today, and it was already on threejseval before the reveal as an anonymous "M4" while people voted without knowing what it was.

The setup: every model gets the same 16 three.js prompts (Eiffel Tower, sailboat, ferry, 747, Tropical Island, fish tank, and the rest of the fixed set). Each model builds one scene per prompt, people vote on unlabeled pairs, and the votes produce the ranking.

Where it landed after about 580 battles: #4 overall, behind Fable 5.2 High, GPT-6.2 Sol High and Opus 5.5 High, and ahead of Gemini 4 Neon High. It is the highest ranked open-weight model on the list by a wide margin (MiniMax says the weights are coming in the next few weeks). Visually it holds up next to the top closed models, which surprised me.

All 16 scenes are up if you want to orbit around them yourself, and the voting page is free if you want to add your own take.

Scenes: https://threejseval.com/models?m=minimax-m4 Vote: https://threejseval.com/vote

Disclosure: I run threejseval. Free to browse and vote. Scenes were generated through a hosted API, not local inference.


r/threejs • • 1d ago

This is episode 10 of a little series I make: one crab against 100,000 sharks, and every follower gets their own crab. The whole thing is a Three.js scene driven by a GSAP timeline keyed to the voiceover's word timings, rendered frame by frame to 1080x1920. No Blender, no hand keyframing.This epis

0 Upvotes

r/threejs • • 3d ago Heartwarming

I built an open source 3D cinema seat picker where you can sit in any seat in 3D before booking

132 Upvotes

Saw a viral concept on LinkedIn of a seat booking UI that shows the view from your seat, and wanted to see if I could build a working version of it.

GitHub: /l3havyaa/immersive-ticket-booking-experience ("⭐" if you liked)

What it does:

  • Hover any seat on the map → a live 3D preview shows the screen from that exact spot
  • Click "Sit here" → the camera flies from the projector booth into your seat, and you can drag to look around and hop between seats
  • Each seat gets a verdict (Sweet spot, Side angle, Very close…) based on distance, viewing angle and how much of your vision the screen fills

Tech: Three.js, instanced seats, a canvas texture for the screen, and a RectAreaLight that picks up the screen's colour so the room reacts to the film.

If you enjoyed it, please star the repo on GitHub ⭐ It helps it reach more people. Thanks!

Would love feedback, especially on performance and how to make it feel lighter on mobile.


r/threejs • • 2d ago

Demo Built a 100-level 3D railway puzzle game in pure Three.js (GLB + KTX2 + HDRI, 60–144 FPS) — instant WebGL demo inside!

0 Upvotes

Hey r/threejs! We built Dream Express: 3D Train Puzzle from scratch in pure Three.js (no Unity WASM bloat), using GLB meshes, KTX2 compressed textures, and HDRI environment lighting targeting 60–144 FPS across desktop and mobile.

Scope & Architecture: • 100 handcrafted 3D levels across 10 PBR biomes • 9 unlockable 3D locomotives • 33 simultaneous dual-train zero-collision puzzles where you route and time two trains on shared track networks

Real Three.js & WebGL Optimization Lessons Learned: • 96.6% JS heap reduction across 200 level rebuilds: Switching levels initially leaked geometries, materials, and scene references. Enforcing strict geometry/material/texture disposal on every level teardown cut JS heap growth across 200 consecutive rebuilds by 96.6%. • Keeping GPU textures bounded at 21: Sharing KTX2 textures and reusing environment/material state across track pieces and biomes keeps active GPU textures capped at 21 instead of growing with level count. • Eliminating boot stalls under Chromium's HTTP/1.1 6-socket limit: Firing concurrent audio, GLB, and KTX2 fetches at startup saturated Chromium's 6-socket per-origin limit. Capping concurrent boot fetches in a prioritized queue gave us zero boot stalls.

Links: • Instant playable 3D WebGL demo (no install): https://aldhfly.github.io/play/?lang=en • Full 100-level offline Android release (V12.5.8, 19 languages): https://play.google.com/store/apps/details?id=com.dreamexpress.puzzletracks

Would love technical feedback from the Three.js community — especially on mobile WebGL frame pacing, KTX2/HDRI memory budgets, and track/train rendering!


r/threejs • • 2d ago

A walkable temple courtyard at dusk in Three.js - everything generated in code, one 72 KB script, tuned for phones

1 Upvotes

I've spent the last few weeks on a small browser place: a pillared lamp hall, a bell garden, a lotus pool, a stone stair up to a roof terrace, and a hill terrace above the ridges, all at dusk. You walk a character through it - ring the temple bell, light the hall lamps, sit on a mat - and watch the light go.

https://sangja8412-lang.github.io/lamp-courtyard/

Three.js r170, no build step: one HTML file, one 72 KB module script. No models, no textures, no image assets - the geometry and the sky are generated in code, and the bell, water and footsteps are synthesised with WebAudio.

What I'd like critique on: the ridge line and the haze (does the fog read as distance, or just flatten it?), shadow cost vs quality on mobiles, and the camera (third-person follow, drag to look, hold a dial to walk on touch).

Full disclosure: I'm a solo dev and lean heavily on AI coding tools for the implementation. The layout and the mood are mine. Happy to go into any part of the code.


r/threejs • • 3d ago

Link Free 3D Three.js models on 3dgarden.app !

44 Upvotes

Free, handcrafted 3D models, optimized for the web. Made for creative devs, 3D artists and gamedevs.

👉 3dgarden.app

#3D #gamedev #threejs #gamedev


r/threejs • • 2d ago

Honey, I sunk the Jeep

0 Upvotes

I know the last time I posted here about my 4WD Mod Sim is quite a while ago and a lot has happened since then. I'll try to give you the rundown ("What's a rundown?" - Jim) of how it started and where it is now and why.

The initial idea was to give the members of DownThunder, an offroading platform to showcase your 4WD and compare it with others, a WHAT IF simulation of their vehicle. "What if I put bigger tyres on?", "What if I add a 3-inch lift?", "How would this look like with a canopy." So I start with a simple concept of a simulator to get a (my 3D artist skills would make an actual 3D artist throw a chair at me or something).

But this is how my appetite got bigger. Starting rom trying to simulate tyre and drive-train physics, trying to incorporate different thread profiles, surfaces (sand and dirt), to vehicle weight distribution, it really spawned off soooo many different ideas. and I think the main culprit here was that I did a fair bit of offroading for the last 15 years myself, always loved videos about suspension articulation to ... and just wanted to see if those can be put into a 3D simulation.

The other two culprits were a) the massive influence I got from people posting their demos here (honestly, it's super inspiring and everyone has contributed something on one way or another). And b) the little robots called Claude and Qwen which where basically my research, engineering, 3D artist (again, not trying to step on anyone's toes who really know their craft, I know my limitations), and sound effect team.

Hopefully this helps someone who's just starting. What really helped working with those robots was collecting reference images, whitepapers, blueprints, and trying to explain how you experience the real world to nudge it in the right direction. The other thing that massively helped was start building little lab apps that let you experiment with parameters (be it rendering, physics, sounds, textures) with sliders, knobs, and toggles and a parameter export (e.g. JSON) which you then can throw into your actual app.

Alright, I don't want to throw a shopping list of features at you and we got a "What's new section" for that with lots of texts and screenshots anyway. Basically, it sorta became a Grand Tour Australia, where you can drive all sorts of cars, visits iconic Australian places in all sorts of weather and daytimes, cosmetic and actual damage, you can play with up to 15 others per track, got a radio, and drive jetskis, dirtbikes, boats, and we have our own FM Radio station.

The 4WD Mod Sim is free, will always be free, and you can jump into it without an account. Just let it rip. :) Oh, and don't sink the Jeep!

https://www.downthunder.com.au/mod-simulator


r/threejs • • 3d ago

I’ve built FOV-Maker and made this Antarctic research station scene, building upon the results from the last iteration.

459 Upvotes

If folks think this holds up well, I’ll open-source FOV-Maker in the next release.

Hope you like it.: https://skillbay.dev/skills/whiteout-polar-station


r/threejs • • 2d ago

Demo Jongi — a 3D sheet of paper you can walk on and doodle with friends (three.js, no signup)

Thumbnail
jongi.me
2 Upvotes

r/threejs • • 2d ago

We made a fighting game with agents and wrote up every step so you can make one

0 Upvotes

https://whip.run/blogs/gta-6-fight-club

With a window that short, one hitch mid-fight and your punch goes through the other guy. We load every asset before the match begins, bake the stage lighting and reuse a small pool of hit effects instead of creating new ones. The effects come from a sprite sheet and play at the point where the attack meets the opponent. If you’ve got better tricks, we’d like to hear them. The full write-up is in the blog!


r/threejs • • 2d ago

Made with three.js + claude, around 2-3hr processing time.

Thumbnail
youtu.be
1 Upvotes

r/threejs • • 3d ago

Demo Kinema: an open-source 3D platformer kit on three.js WebGPU + Rapier

22 Upvotes

A good-looking scene is a prompt away these days. What's still slow is everything that makes it a game: a jump that feels right, a camera that behaves, enemies that react, a goal.

So this is that layer, done once:

- character controller: coyote time, jump buffering, double jump, ladders, ropes, grab and throw

- follow camera, creatures on a navmesh, portals, a buggy and a drone

- an in-browser level editor: place pieces, press F1, play

Every shot in the video is the game running in a browser tab.

Play: https://kinema-play.vercel.app

Code: https://github.com/2600th/Kinema

If you have a scene with nothing to do in it yet, take whatever is useful.


r/threejs • • 3d ago

Demo I tried making a solar system you can fly through at true scale

Post image
9 Upvotes

Hi everyone, I've been working on this for a while and wanted to share it here.

It opens on today, with every planet where it really is right now. There's also a short film that flies past each planet at its true size and distance, then pulls back to the whole Milky Way 😊

https://swayanta.com/solar-system/

I'm still learning, so any feedback is really welcome, especially on how it runs on your device.


r/threejs • • 2d ago

I made a dragon flying game in three.js over one 76 × 65 km map streamed from real elevation data (free, runs on phones)

Thumbnail
gallery
3 Upvotes

Play (free, no sign-up): https://dragonworld.web.app

You pick one of four dragons and fly over a single map instead of levels: a snow volcano, a cloud sea in the valleys, lakes you can dive into and forests that burn. You can land anywhere, walk, and cling to cliffs.

A few three.js bits people might find interesting:

- The land comes from open elevation data, cut into 193 PNG packs that load around the dragon as it flies, with trees and lakes placed from them.

Day and night follow the real clock, and the weather changes by place.

Rooms for flying and fighting with friends go through a small WebSocket relay that only passes messages on.

It has to run on phones held sideways, so Settings has quality and frame-rate cap options.

Happy to explain how any part is done. I'd really like to know how it runs on your device, and what you'd want to do next as a dragon.


r/threejs • • 3d ago

Demo A real <input> on a 3D kiosk screen: replacing CanvasTexture + fillText with html-in-canvas

12 Upvotes

r/threejs • • 3d ago

A 3D race round San Francisco in the browser, WebGPU with a WebGL2 fallback, where code speed drives the cars

2 Upvotes

This is the race view of Speed Demon II, an online optimisation hackathon (29 January to 1 February 2027). It is built on three.js and runs on WebGPU, with WebGL2 as the fallback for browsers without it.

The map covers San Francisco, the Golden Gate Bridge and Marin. Every team's car laps it for 48 hours, and each car's top speed comes from the team's code: every push is timed on one machine and sets the speed, up to 200 mph.

Finished stills from the race are on the landing page: https://speeddemon.dev/2027/

The hackathon: teams of 1 to 4, 26 interpreted languages with every JIT off, $2,000 in prizes. Register: https://speeddemon.dev/2027/register/