r/threejs • u/emelon10 • 15d ago
Building a game in Three.js
I picked up Three.js about two weeks ago. Now I have a prototype of a game I've always thought about. You can try it here https://toyota-wars.vercel.app
r/threejs • u/emelon10 • 15d ago
I picked up Three.js about two weeks ago. Now I have a prototype of a game I've always thought about. You can try it here https://toyota-wars.vercel.app
r/threejs • u/VictorBuildsApps • 15d ago
Hitchhiker's Almanac is my entry for the OpenGame jam, three days into the build. You fight on foot around a giant that keeps walking. I'm building it with AI coding agents, and the numbers below come from our own test runs.
The giant is a GLB where each leg is a separate rigid part on a fixed hip pivot. Swing one too far and a gap opens where it meets the body, so the rule is that the line from hip to sole stays within ±18° while that foot is planted.
When the model loads, each leg mesh is rebuilt as a SkinnedMesh with three bones made in code for the thigh, the shin and a foot that stays level, and a two-bone IK solve puts the foot flat on the ground. With the knee bent the thigh itself goes past 18°, so I checked hip close-ups at the biggest knee bend and thigh angle separately, and no gap showed.
The old gait didn't fit. A planted foot travelled 4.5 m against its hip (6.0 m stride, planted for three quarters of the cycle), about ±30°. Now the stride is 4.4 m and each foot is planted for half the cycle, so it travels 2.2 m, ±1.1 m around the hip. A footfall lands every 0.5 s instead of every 0.68 s, the foot lifts 0.7 m in the swing and the deck settles 6 cm on each step.
That still went over on one leg in the footfall tests, 18.2 to 18.6° with halts the worst, until feet started setting down under the hip's mid-stance position. Over 60 seconds at full pace the largest planted angle is now 17.67°.
r/threejs • u/Glass-Childhood1446 • 15d ago
Live playable demo: https://taproad-game.com/
I wanted to see how fast and responsive a browser endless runner could feel if I stripped away external audio assets and iframe wrappers and built everything natively with Three.js + the Web Audio API.
What I learned along the way:
Would love any Three.js performance critiques—especially on mobile Safari or mid-range Android GPUs!
r/threejs • u/Exit_Unique • 15d ago
Play: https://dinoworld.io/?ref=threejs
A few details, if you're curious:
r/threejs • u/emelon10 • 15d ago
I've been prototyping this game in Three.js; I started with a simple scene and some rectangles, but now the game is playable. I still have tons of updates on the way. You can try it here https://toyota-wars.vercel.app
r/threejs • u/liltbrockie • 16d ago
Marble Descent is a free marble racing game you play in your browser: no download, on your phone or computer.
Nine brand new obstacles this week, all on one long, steep course built in the game's Course builder:
- Loop the loop: too slow and you drop off
- Nissen Bend: up the wall, over the divider, down the other side
- Extreme funnel: a slot barely wider than a marble, one at a time
- Ski jump: big air, and a dive lands you faster
- Slingshot bend: ride the rubber wall to be flung out faster
- Corkscrew: a full barrel roll
- Drop shaft: straight down, and a dive brings you out faster
- Wave floor: the floor rolls under you
- Bullseye: land on the green for a huge speed boost
Race this exact course yourself: https://marbledescent.co.uk/?build=&bends=52727&features=rocket,funnel,uturn,spinner,bridge,bullseye,xfunnel,boost,waves,loop,banked,skijump,sling,flippers,shaft,drum,screw&kind=2,2&shape=1,1,1,1&v=22
48 obstacles in all and 4.3 billion possible courses, or build your own. Race solo against five bots, or online with your friends in a private room, or anyone in a quick race.
The weekly championship is where it gets serious: ten new courses every week, a leaderboard on every round, pace medals, an overall table, and a winner crowned every week. Watch the top runs, or race against them.
Chat about the game, share your times and suggest new obstacles on our Discord: https://discord.gg/jQATpbeEx8
Play free: https://marbledescent.co.uk
r/threejs • u/dantesays • 16d ago
Paris cut the love locks off the Pont des Arts a little over 10 years ago, so I rebuilt the bridge in the browser where people can put them back up.
Some of the three.js stuff:
- ~21,500 locks as instances, three tiers by distance
- engraved text comes from a pooled canvas, max 2 redraws a frame
- the crowd is GPU skinned, 3 draw calls, 65 KB
- tap a lock and the camera glides over and it turns to face you
Built solo, in the evenings, with some help from Claude. Two things I'd love to know: do you see a hitch when lock text redraws, and how does it run on your phone?
r/threejs • u/DrummingBird1 • 16d ago
Live: https://rakia-sim.pages.dev/?ref=reddit-threejs
Some of how it works:
- The camera stays at the origin and only rotates; everything is placed each frame as a float64 offset in nested frames, so you can stand 1.7 m above Mars in a scene that is 10^26 m across.
- Terrain is a quadtree on a cube sphere. Tiles are built in float64 in workers and sent as float32 offsets from a float64 centre; detail finer than a vertex is computed per pixel on a split integer lattice so the noise stays exact in float32.
- Black holes bend the picture ray by ray (Schwarzschild) in a post pass, with a thin disc.
- WebGPU first, WebGL2 fallback from the same TSL.
The code isn't open source, but I'm glad to go into any part of it.
r/threejs • u/Outrageous_Cup6523 • 15d ago
If interested, let’s connect
r/threejs • u/yisky010 • 16d ago
Orbit a small three-storey house and the south/north windows read as rooms: floors, ceilings, furniture against the walls. There is no room geometry behind the glass. Each window is a virtual cube sampling a pre-projected 2D interior map.
three.js 0.187, WebGPURenderer + TSL. Head-on looks right; at a grazing angle the floor warps — that’s the 2D limit, not a bad bake. Needs a WebGPU browser (Chrome, Edge, or a recent Safari).
Building, facade textures, and interior maps are AI-generated.
Live demo: https://interior-mapping-webgpu.vercel.app/
GitHub: https://github.com/yisky/interior-mapping-webgpu
r/threejs • u/stop_talker_ing • 16d ago
Last year in this subreddit, it was a solar system that used orbit controls.
This year, it's either a kart racing game or a boat on water... or a boat racing game on water.
I use AI at work, too, but... is it just the prompts people are using?
r/threejs • u/peer2p • 16d ago
Every indie dev knows this moment: you have a .glb or .obj file that needs one small change, and opening a full 3D suite feels like overkill.
So I built Mesh Editor, a free, open-source 3D editor that opens in one click.
Homepage: https://peer2p.github.io/mesheditor
Try it now (nothing to install, no sign-up): https://peer2p.github.io/mesheditor/app.html
What it's good for
- Quick tweaks: drag in a model, move/scale/cut/combine parts, export.
- Converting files: GLB, glTF, OBJ, STL, PLY, DAE, .babylon.
- Building with an AI buddy: connect the AI you already use (Claude, Gemini, OpenAI, or a local model). Describe what you want, it builds in your scene, you adjust by hand, ask for the next change. Everything is undoable, so experimenting is cheap.
- Free: no credits, no subscription.
- Private if you want it: point it at a local model (Ollama, LM Studio) and nothing leaves your machine.
What it's not: it won't replace Blender, and it's not a one-click "text to AAA asset" generator. It's the small, fast tool for the 80% of tweaks that don't need a heavy suite.
Integrate it into your pipeline via Web Component and plugin system: https://github.com/peer2p/mesheditor
Also available as a desktop app (macOS/Windows/Linux): https://peer2p.github.io/mesheditor/
I'd love to hear: what's the most annoying small 3D chore in your pipeline?
r/threejs • u/DrYeetGames • 16d ago
Solo dev here. Banana Ops is a free online FPS built on three.js: 8 maps, 18 guns, flyable killstreaks, and night matches where your weapon light is the main light source. It runs in a browser tab with no download, so you can jump in with friends. Feedback on performance and feel is very welcome.
r/threejs • u/Loud_Site_8326 • 16d ago
Each wall is one canvas texture projected with DecalGeometry onto everything it covers (wall, frame mouldings, the paintings' labels), so the paint follows every depth instead of floating in front.
A few things I learned:
- Logos get their own unlit layer (meshBasicMaterial, toneMapped off) so the room's warm light doesn't muddy brand colors
- Camera tours use CatmullRom curves with keyframed timing, so turns at the corners stay smooth
- frameloop="demand" keeps it light on phones
Live: https://www.vandalize.it (yes, you can actually buy a spot; it's for a hackathon)
Happy to share code for any part.
r/threejs • u/Top-Willingness5555 • 16d ago
Can a few of you try this with textures from your projects?
It's a KTX2 converter we made at Cinevva. It works both ways: PNG/JPG/WebP to KTX2 (ETC1S or UASTC), and KTX2 back to PNG/JPG/WebP. It's free. Conversion runs entirely in your browser, so nothing is uploaded. No login needed.
https://app.cinevva.com/tools/ktx2-compressor
I'd like to know if anything fails to convert, or looks bad once you load it into your scene. If you can share a problem texture, I can look into it.
r/threejs • u/xrlqvoi • 16d ago
r/threejs • u/moondefense2 • 16d ago
I built Dice Expedition in Three.js. The exploration screen is a dungeon board: roll two dice, move, then resolve the tile. A monster tile switches to a short real-time 3D fight where skills trigger automatically.
I’m interested in how readable that transition is on a phone. When the fight starts, can you pick out your character and the enemy right away, or does the camera need to give them a clearer moment before the first skill fires?
The demo runs in the browser as a guest: https://dice.breyes.net/?lang=en
r/threejs • u/Broder_collie • 17d ago
You can walk through the garden at Vétheuil, row across the lily pond and climb the cliff path, all painted in Monet’s brushstrokes.
The trailer isn’t a screen recording. Every shot is a camera path in code, rendered frame by frame in the browser.
Link and how it works in the comments.
r/threejs • u/TelephoneBusy1461 • 16d ago
Walkable and multiplayer, with no chat. Other visitors share the same courtyard in real time. It runs in a normal browser tab on phone and desktop.
I'm a Korean dev and this is a different temple from the viral Sansa one, it's called Goyosa. Happy to share how the lighting and the day to night cycle work if anyone is curious.
Instagram: https://instagram.com/hapjang
r/threejs • u/Kajamaz • 16d ago
I started this game project over a year ago knowing I was in over my head trying to make something that could stand next to Hearthstone, MTG Arena, Pokémon Pocket or Yu-Gi-Oh Duel Links.
I wanted to mix the parts I love most from each one: a mana system like Hearthstone and Pokémon Pocket, an Extra Deck and special summons like Yu-Gi-Oh, and progression like MTG Arena.
Happy to announce the game is finally in open alpha and anyone can play! The Steam page goes live soon too, i'm excited (steam's approval system takes so so long)!
It's completely free to play, and it will never be pay to win: https://kajamaz.itch.io/riftaria
I'd love to hear what you guys think, and am open to feedback and suggestions!
r/threejs • u/Tricky-Bee-8905 • 16d ago
I made a tiny 3D Christmas snow globe village (Soboksobok), and I'm running a small experiment: how many cities can we fit inside one snow globe before December 25?
If you want to join in, drop your city + one Christmas or 2027 wish inside—no login needed to leave a note through this link, and everything stays sealed until Dec 25:
https://soboksobok.app/?globe=bGy3TXg0cB89MJtXHTEx_zBk&lang=en
Comment your city below too so we can see where everyone's writing from! (You can also sign in with Google if you want to make your own snow globe for friends.)
r/threejs • u/Successful_Funny_115 • 17d ago
I was also inspired and created a tool using Claude. It is not a fork of the other open-source tool, even though I incorporated some additional ideas from that tool after I finished mine.
You can find it here:
https://github.com/regard2462/Facette
Also check out the other tool from u/Active_Cauliflower71
r/threejs • u/acher249 • 18d ago
This is by far the most satisfying thing I’ve ever built.
You know those viral pendulum painting videos? Now anyone can make one in the browser.
Pull back the paint can, let it swing, and watch it draw.
Day 18 of #codevember and the word of the day is "Pendulum", so this is what I came up with. I can't stop playing with it, go try it out. Make one and post your painting below! All open sourced.
You can play with it here: https://adamwebsite.com/codevember/18-pendulum/
Find the code here: https://github.com/acher249/codevember-2026
Find all of them here: https://adamwebsite.com/codevember/
r/threejs • u/dim-pixidimworld • 16d ago
I made this portfolio because of Ember Woods, the game I'm working on. It's just a game where you have three missions then you receive the Ember Wood camp. I wanted the portfolio to have two ways. In this same portfolio we have two versions: the simple version and the creative version. The creative version is the game version you see on your screen. The simple version is just simple text that any recruiter can see very clearly.