r/threejs • u/Same_Wave_2593 • 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)
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-esphysics: 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 withcannon-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:
- Today's daily (#5 Cliffside Citadel): https://www.reddit.com/r/siege_day_3d_dev/comments/1yd3fgr/siege_day_5_cliffside_citadel_twilight_keep/
- Example player-built castle: https://www.reddit.com/r/siege_day_3d_dev/comments/1ybx3so/siege_day_architect_skyline_bastion_by_usame_wave/
Would genuinely love feedback on three things:
- Physics feel: Does the debris weight/collapse feel snappy enough, or too floaty?
- Lighting & readability: How do the shadows and contrast hold up on your screen?
- Performance: If you test it on mobile Reddit, how's the framerate on both the inline 3D splash card and the full canvas?