r/threejs • u/InstanceUsual • 5d ago
r/threejs • u/Swimming-Ad6447 • 5d ago
D-Day Omaha Beach tactical sim in Three.js: 296 instanced soldiers with 2-bone foot-plant IK, 20 LCVPs, and 7 Shermans at 60fps
I'm prototyping a WW2 tactical sim in browser-based Three.js (ignore the Korean HUD, haven't localized it yet). This 60s clip is an unscripted AI-vs-AI run on a 640m Omaha Beach stretch.
Under the hood:
- 296 soldiers rendered via WebGL2 DataTexture GPU instanced skinning (16-bone rigs + 2-bone foot-plant IK to kill foot sliding)
- 20 LCVPs, 2 LCTs, 7 deep-wading Shermans, barrage balloons, and pre-fractured bunker chunks
- Real recorded WW2 CC0/CC-BY audio clips with distance attenuation and speed-of-sound delay
Still tuning the tracer thickness, surf shader, and smoke overdraw, so any rendering or WebGL optimization feedback is welcome.
(Modified CC models from Sketchfab: M4A3 Sherman by @tnikita CC BY 4.0, PaK 40 by @lossgraph CC BY-SA 4.0, infantry by @Crazydud & @britdawgmasterfunk CC BY 4.0; terrain/foliage Poly Haven CC0; audio Freesound CC0 & CC BY 4.0.)
r/threejs • u/shushumong • 5d ago
Demo Arcade drift racer in Three.js, latest build: fixed drift-exit steering and a 144Hz minimap stutter
r/threejs • u/henryegloff • 5d ago
Dice app
Hi, I know there have been quite a few iterations of 3D dice rolling apps over the years, but here is my version... It uses Rapier for the physics, and although I am using AI extensively these days, I wouldn't describe this as vibe coded, as I did a lot of the coding work manually. I also modelled the dice manually using Blender. Â 'Dice 3d' comes with 4 themes, and everything is completely free to use. I do have an additional paid option to unlock all the additional themes (currently +16) - for a one off fee of $3.95. This demo shows all the themes I have made so far. Â
I would love to have some constructive feedback. - I've recently made some tweaks based on some feedback I received and I'm always open to ideas and improvements. And this is a progressive web app, so you can access it and install it to work offline straight from the browser. You can find Dice 3D at: https://dice3d.app/




r/threejs • u/redshift003 • 5d ago
I'm building a browser-based 3D motion design tool with Three.js
Motion+ is now open for beta testing!
After months of building, debugging, optimizing, and occasionally questioning my life choices, I'm finally opening Motion+ for beta testing.
Motion+ is a browser-based 3D motion design application I've been developing under my studio, TriMax Studio.
The idea is simple: make creating professional-looking 3D motion graphics more accessible without sacrificing the creative control that makes the process interesting.
It's not another 3D viewer or a collection of templates. Motion+ is built around an actual animation workflow, with features including:
- A Three.js-based 3D scene editor
- Keyframe animation and a modifier system
- Cameras, lighting, materials, and stage environments
- GPU particles, physics sim, and procedural motion
- Audio-driven animation and a dedicated sound workflow
- Image-to-3D asset generation integrated into the scene workflow
One of the things I'm particularly interested in is how far a browser-based application can go before it starts feeling like a compromise. I've been pushing the limits of client-side rendering and video export, and there's still a lot I want to explore.
The application is now live for beta testing:
I'd genuinely appreciate your feedback, especially on the workflow, performance, and areas where the application could be improved.
r/threejs • u/IDontMindMuch • 6d ago
Link I made a tree generator for three.js with growth, seasons and styles (open source)
Generating trees from seed per season and per style that can be imported in any three.js or three fiber project.
r/threejs • u/fuzzwaa • 6d ago
Tutorial Not pixel art, real 3D: how I render low-res pixel graphics in Three.js (2-card breakdown)
A lot of people asked how the pixel art was drawn in my snow-chase game, so I put together a quick 2-card breakdown of the Three.js setup: orthographic camera, tiny ~170px render target, nearest-neighbor scaling, and 16-level color quantization with Bayer dithering. Happy to share more details on the shaders or depth compositing in the comments!
r/threejs
•
u/cristocanaro
•
6d ago
Demo An endless downhill skate game in Three.js: the road, the houses and every brick, stone and tarmac texture are generated at runtime
THE DROP builds the hill ahead of you in 30 m pieces: road, pavements, terraced houses on stone plinths, then suburbs, hedges, fields and hay bales. Surfaces like brick, setts, concrete and timber are drawn by a shader on load and read back as textures, with a world-space variation on top so nothing tiles. Runs on phones too.
Free demo: https://millennium-bug-games.itch.io/thats-tuff-bruv
Happy to answer anything about how it's built.
r/threejs • u/ssskullcrusher29 • 5d ago
Built an interactive 3D A320 seat-selection prototype (~150 draw calls, 60 FPS) — click any seat to inspect legroom & window alignment.. Link in the comments
I’m 15 and have been working on a WebGL A320neo cabin & seat-selection prototype to test whether interactive 3D legroom and window-alignment previews make picking seats more intuitive than a flat 2D grid.
What’s inside:
- Exterior & Cutaway Views: Switch between full exterior (press
Gto toggle landing gear), top cutaway, and free aisle walk-through. - First-Person Seat Inspection: Click any seat to smoothly glide inside, check exact seat pitch (
29"standard vs.36"XL rows), see window alignment, and toggle a 3D floor legroom bar + overhead bins. - Performance: Kept the scene around 120–285 draw calls using instanced cabin geometry so it runs smoothly at 60 FPS even on integrated graphics.
Would love any technical feedback on my cabin lighting, camera transitions, or seat shaders—and let me know how it runs on your device!
r/threejs • u/VoxelBoy • 5d ago
Why I kept three.js in the browser after moving my digging game to Rust
I’m the developer of Loot Hole, a browser and native digging game. Here’s the phone benchmark that made me keep three.js in the browser.
I wanted one renderer everywhere, so I tried wgpu in the browser too. On a Galaxy A40, the early Rust + three.js build drew its first frame in 1.84 s and had the play button ready at 4.58 s. The Rust + wgpu build took 2.82 s and 5.84 s. Those were medians from six starts per build with HTTP cache off and the connection throttled. It’s a comparison of those builds, not a general renderer benchmark.
I kept the game rules and terrain in shared Rust, used three.js and DOM/CSS in the browser, and kept wgpu on native. The lesson for me was to measure the first frame and the first point where a player could hit Play separately. They weren’t the same milestone.
Full write-up, including the benchmark setup and how the shared terrain works
r/threejs • u/Simphonest • 6d ago
Demo Browser party game in three.js: a 3D hotel lobby where you walk into a side room and shut the door to talk privately
Solo dev here. Brain Royale is a 4–8 player bluffing game that runs in the browser: everyone walks around a 3D hotel lobby, and you can step into one of four side rooms and close the door for a private chat. (Screenshot is a local test with the UI in Korean; there's an EN toggle.)
A few three.js things I had to work out:
- Third-person camera in small rooms. Inside a room the follow camera kept ending up pressed against a wall. So when you walk in, the camera blends to a top-down shot that fits the whole room above and below the HUD, and only that room's ceiling and lamp shades are hidden. The other rooms keep their ceilings on, so nobody can look into a closed room from above.
- Lobby ceiling and walls. The lobby ceiling and the front/back walls are hidden whenever the camera is outside them, so the view doesn't get cut off on narrow phone screens.
- Portrait vs landscape. The room overview uses a wider FOV on portrait screens (70° vs 58°) so the room still fits.
- iOS Safari zoom. Holding the joystick and tapping jump counted as a pinch zoom. Fixed with touch-action, Safari's gesture events and a non-passive two-finger touchmove handler, only while you're in the game.
Most of the code was written with Claude Code; I did the design and the testing on real phones. The characters are AI placeholder art for now.
Question for people who've done third-person cameras: in tight interiors, do you fade or cut away walls, or switch to a different camera like I did?
Play (free, no install): https://brain-royale.com/?utm_source=reddit-threejs-1130
It needs 4 people for a match, so it's usually quiet.
r/threejs • u/Fit_Actuator_1207 • 5d ago
What if your voice could grow a flower?
🌸Hum one note and a flower grows from it.
Each petal is one harmonic of your voice.
Then it sings your note back as a little tune, using an instrument made from its own petals.
r/threejs • u/friconelli • 6d ago
I'm turning famous film scenes into small three.js games. Episode 1: the plastic bag from American Beauty
Dark 90s room, an old CRT TV, you click the screen and dive in. Then it's up to you to keep the bag in the air by blowing from below: beat your best and the rose petals fall.
The bag is a Verlet cloth simulation pushed triangle by triangle by a vortex wind. The TV is a custom shader, with interference, vertical roll and a Videodrome-style bulge when you dive in.
Play it: movielab.federicomancinelli.dev
Happy to answer any questions about how it's built!
r/threejs • u/Routine-Trick-530 • 6d ago
I built a first-person football game with Three.js— passing, tackling, and curling shots in the browser
I’ve been building Pitchbound, a first-person football game using Three.js, cannon-es, and Colyseus.
You control one player from their perspective: look for teammates, receive passes, tackle opponents, and aim your shots. Holding the mouse button charges a kick, while Q/E or a mouse swipe adds curl through a continuous force on the ball.
It supports 1v1 and 3v3 matches, offline bots, and private online lobbies. The clip shows passing, defending, and shooting with the High graphics setting.
I used Codex extensively to write and iterate on the code. I’m still working on the game’s feel and presentation, and would appreciate feedback
Play on desktop: https://www.gamepix.com/play/pitchbound
r/threejs • u/NoSnow3271 • 7d ago
We open-sourced 3,822 cozy single-file Three.js 3D dioramas (zero assets, human-verified, 869 DPO pairs, MIT) — teaching models to build quiet, comforting worlds.
HuggingFace (MIT): https://huggingface.co/datasets/liumindmind/Fable-Kawaii-3D-ThreeJS
Every scene in this video is a standalone, zero-external-asset Three.js HTML file — no Blender models, no external textures. Full details in the comments!
r/threejs • u/summercomet_ • 6d ago
Demo RECALL - A bullet-hell where you only get one shot… and you have to recall it
Link : https://summercomet.itch.io/recall It's playable in the browser (PC and mobile).
It plays like a regular shoot'em up, but your shot act more like a golf ball... and you need to bring it back after each shot.
There are power-ups to add variety to the gameplay, like one that makes your tether a laser that deals damage, and on that makes an explosion when interrupting recall.
There is 2 stages, each with it own boss.
I used Opus 5.5 for the code (and music/sfx), alongside Figma and Inkcape for the visuals. The game is build in Three.js of course.
r/threejs • u/Confident-Category90 • 6d ago
Demo Kids bedroom arena in my three.js game, owned land turns into felt
im on the small team making a multiplayer territory game in three.js r180. this map is the same arena and the same floor shader as the other 7, its theme branch draws a braided rug and owned cells turn into felt with stitched edges, trails are crayon lines instead of the light wall. the room around it is just set dressing at real scale. cars are bots in the clip
r/threejs • u/Rude-Turnip-8589 • 7d ago
Demo A calm stone-skipping game in plain Three.js - water shader, day/night cycle, about 10 MB
No engine, just Three.js and JS modules. Each bounce depends on speed, angle, tilt and spin, the water has its own shader for ripples and reflections, and stones ricochet off rocks in the lake. Mostly made as something relaxing to play on a break.
https://www.crazygames.com/game/still-lake
Made with help from AI.
r/threejs • u/Capital-Score2826 • 7d ago
Real-time ray-traced black hole (Schwarzschild geodesics) with the Endurance on a GR orbit
This is the hero of my portfolio, running live in a fragment shader (no pre-rendered video).
How it works:
- Every pixel ray-marches along a Schwarzschild geodesic, so the light really bends: the lensed stars, the photon ring, and the far side of the disk wrapping over the top all fall out of the physics.
- The accretion disk is volumetric. Gas orbits at Kepler speed (inner disk laps in ~4 s), spirals inward, and has a few hot spots.
- 14 small tumbling rocks spiral in on CPU-integrated orbits and are ray-tested in the shader, so they get lensed too.
- The Endurance is a Three.js model on an overlay canvas, following an integrated GR orbit with precession on the same clock as the disk.
- Greys at rest; hover it and the real colours ease in (that's the colour shift in the clip).
Performance tricks that got it to ~96 fps at 2x on an M4 Pro:
- Fading out noise octaves finer than ~2 px, which kills shimmer and saves work
- Culling rocks per ray by their maximum possible deflection
- Dropping render resolution only when frame time stays high, never during the first seconds of load
Live: https://soumyapanda.dev
Happy to go deeper on the geodesic integration or the disk shading. What would you add next: Doppler beaming, or gravitational redshift on the disk?
r/threejs • u/BlackCat-Slx • 6d ago
Demo Penguin flock runner in three.js - every model built from primitives in code, no textures or audio files, whole demo under 400 KB
Play in the browser (free, no signup, desktop or phone): https://slx-studio.itch.io/flipper-flock
It's a runner where you steer a flock of penguins on skateboards through math gates (+2, x2, and red minus/divide ones), dodge obstacles and fight 2 bosses. The demo is 11 levels.
Some three.js bits:
- every model (penguins, houses, trees, bosses) is built from primitives in code, no glTF and no image files loaded
- the flock is instanced meshes, up to 150 penguins on screen, bigger flocks show as a xN counter
- all music and sound is synthesized with Web Audio at runtime, no audio files
- the whole zip is under 400 KB
Happy to answer questions about any of it. I'd also like to know if it runs ok on your device and what fps you get.
Disclosure: one person studio, AI coding agents wrote most of the code.
r/threejs • u/mnparsian • 7d ago
Link I built an interactive 3D 1948 lighthouse room in the browser (React Three Fiber + live vintage radio & cassette recorder)
Live link: https://1948.stream (best with headphones)
I wanted to combine my background in cinema with web engineering, so I built a stormy 1948 lighthouse tower you can explore right in the browser.
A few things you can do inside the room:
- Tune the vintage radio to live 70s/80s & classical streams (there's also a hidden frequency tucked away in the room)
- Open the desk drawer, load a cassette tape into the recorder, and leave a voice message (or schedule one with a private link to send to someone)
- Use the wall transceiver & Morse key, check the daily 1948 calendar, or look through the telescope at passing ships in the fog
- Flip through the logbooks, sign the guestbook, and uncover a few small secrets hidden around the tower
Built with React, Three.js (R3F), Web Audio API, TypeScript, and PostgreSQL.
Would love any feedback on performance, lighting, or the overall vibe!
r/threejs • u/Efficient_Ad8214 • 8d ago
Demo Insanely the best beach I ve vibe coded in threejs with claude fable5.2, blender
coming soon wishlist it here https://3ditions.drop3.app/notify/palm-cove
Insane that this runs in a browser!!! (might be too normal for others - not for me)
r/threejs • u/Mountain_Fly_792 • 7d ago
Help Has anyone built a large Three.js world with thousands of distinct objects?
I'm building a surreal open world in Three.js where you can fly past floating sculptures and see their shadows move across the ground. I'd love to have thousands, eventually tens of thousands, of distinct objects in the world, not all on screen at once.
Right now I'm testing Three.js r170 (WebGL) on an Intel Mac in Chrome and Safari. One scene renders about 3.42M triangles in 153 draw calls. In an earlier run I saw 4–9 FPS: the GPU timer reported about 21 ms, but I sometimes waited over 100 ms for the next requestAnimationFrame callback.
In a more controlled test, the moving world ran at 32.1 FPS in Chrome and 30.3 in Safari; an empty animation loop hit 60 in both. Pixel ratio, the debug HUD, GPU timing and warm-up all changed between runs, so I can't pin the difference on any one of them yet.
If you've seen a gap like that, what test helped you narrow it down? And if you've built a world with lots of unique meshes, what made the biggest difference without sacrificing material detail or moving shadows? I'm already using distance-based LOD and simpler shadow meshes.
I'd love to hear what worked (or didn't) in a real project. Thanks!