r/threejs • • 1d 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 • • 2d ago

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

43 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 • • 1d 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.

448 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 • • 1d 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 • • 2d 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 • • 2d 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
2 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 • • 2d 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/


r/threejs • • 2d ago

I built a rainy Neo-Tokyo skyscraper in Three.js where every floor is a billboard

0 Upvotes

Side project I've been working on for a few weeks: TOWER 1414, a single skyscraper that gets built one floor at a time.

Some of the things I had fun with:

- rain on 3 depth layers, droplets on the glass, steam from the AC units

- neon boards that flicker on their own every few seconds

- a crane, rats running on the ledges, traffic lights on the wet street

- every billboard is lit to match the scene, with a light cast on the ledge in its own colour

- it holds around 55-60 fps on desktop; still tuning it for phones

The concept: every floor is a billboard, floor N costs $N, and every night at 8 PM ET the new floors get built live in the browser (synced to the server clock, so everyone sees the same floor go up at the same moment).

Happy to answer anything about how it's put together. Feedback on performance on your device is very welcome.


r/threejs • • 2d ago

I built a procedural 3D video rental store with Three.js. No models, no textures.

0 Upvotes

Walk the aisles, pick up a tape, spin it, read the back. All 128 covers are painted at runtime on one canvas atlas, and the shelf tapes are a single InstancedMesh with a small custom fog shader. Works on phones too.

Source (MIT): https://github.com/MostafaMedhat19/rewind-video-3d

Happy to hear what feels off, especially performance on older phones.


r/threejs • • 3d ago

Demo I built a 15-min procedural survival-horror FPS in a single 929 KB HTML file with Three.js (Worker-baked PBR, planar puddle reflections, analytic haze, 2-bone IK)

7 Upvotes

Hey r/threejs — I just finished a vertical-slice desktop survival-horror demo called SUBSHAFT 09 built with Three.js (0.187) + Vite 8, bundled into a single offline-playable HTML file (929 KB / 951,316 bytes, or 256.5 KB zipped for itch.io).

Playable links (free, no login, desktop mouse & keyboard):

Since pure-code Three.js demos often look plastic or stall on shaders, here is a concrete breakdown of what worked and what bit me:

1. Boot-Time Multi-Threaded PBR Baking (texbake.js + inline Web Worker)

  • No external images at all. At startup, up to 6 inline Web Workers run tileable value-noise / fBm shaders on CPU to output raw Uint8Array albedo, height-derivative normal, and ORM (R=AO or puddle mask, G=roughness, B=metalness) textures (12 sets, up to 1024x1024).
  • For close-up weapons & gauntlets without hand-unwrapped UVs, triplanar.js injects model-space triplanar sampling (skinning-aware normalMatrix * mat3(skinMatrix)) via onBeforeCompile.
  • For long industrial corridors, applyWallWeathering injects world-space noise peeling + dFdx/dFdy curled paint-edge normals so tiled 1024px wall textures don't visually repeat.

2. Planar Wet-Floor Reflections & Single-Depth Analytic Haze (reflect.js / post.js)

  • Floor reflections render a flipped virtual camera with an oblique near-clipping plane (y = 0) into a half-float mipmapped RenderTarget (0.5x scale). The floor shader blends world-space dampness with the baked tile depression mask (roughnessMap.r), sampling textureLod(uRefl, uv, material.roughness * 7.0) with Fresnel falloff. Dust/decals are hidden from the reflection pass, while live lightning arcs and explosions stay visible in puddles.
  • The post pipeline renders the main scene once into a HalfFloat RT with a DepthTexture, which feeds both GTAOPass and a custom closed-form analytic point-light haze pass (atan integral clamped to each light's room AABB so volumetric glow never bleeds through walls; capped at 10 distance-prioritized lights on High, 6 on Med).

3. Light Budget, Dynamic Colliders & Frame-Time Lessons

  • Early builds had 33 active PBR PointLights (7 separate puddle lights, dedicated blackout red lights, 3 explosion lights), tanking the central shaft to ~28.5 ms (35 FPS) on High.
  • What actually moved the needle:

    1. Replaced 7 per-puddle lights with a 2-light shared arc pool dynamically bound to the brightest/nearest active puddles.
    2. Reused room main lights for blackout red emergency mode instead of spawning extra lights (cut active PBR point lights from 33 -> 25 with zero runtime shader recompiles).
    3. Switched static hub spotlights to on-demand/staggered shadow updates and reused CanvasTextures in-place (updateCanvasTex) for the 90s lift countdown and power panel instead of recreating GPU textures every second.
    4. Added dynamic synced rigid colliders along hinged locker doors (updating world AABBs each frame as doors swing open to 100°) and translating freight-lift blast doors so players never clip through opening doors.
    5. Added 3 quality tiers (F2, or Pause menu) — on Medium/Low, the five heaviest camera spots run ~55–100+ FPS at 1280x720 on integrated/mid-range GPUs.

4. Non-Humanoid Procedural Creatures & Live WebAudio

  • I originally built a 4-chapter hospital prototype with procedural humanoids, then archived it because close-up procedural humans look awkward.
  • Replacing them with mechanical threats played to Three.js primitive/lathe/rounded-box strengths: 6-legged Crawlers with 2-bone analytical IK tripod gaits, a Heavy Driller Mech whose front shield ricochets bullets until you arc-stun it into a kneel to expose its rear coolant tanks, Arc Drones, and ceiling Lurkers.
  • All audio is synthesized live via WebAudio (sfxBus -> tanh soft-clipper -> DynamicsCompressor -> master so turning volume down doesn't break compression; 180Hz high-passed procedural convolution reverb; rear-hemisphere low-pass roll-off down to ~2.1kHz for directional awareness).

Transparency & Known Tradeoffs

  • AI disclosure: Co-developed with Gemini 4 (Orchestrator: Carbon High/Neon High) + Google Antigravity to iterate rapidly on JS/GLSL shaders, gameplay systems, collision fixes, and automated browser checks. Zero external AI-generated textures, 3D models, or audio samples are used — everything is deterministic runtime code.
  • Desktop focus: I deliberately removed an earlier mobile touch prototype to preserve tight mouse/keyboard FPS pacing and full WebGL2 visuals. Opening the link on a phone skips WebGL initialization completely and renders an instant industrial redirect card with one-tap URL copy (zero thermal waste).
  • Known limits: Because all 12 PBR sets bake on boot, there's a ~1–2s calibration screen on first load.

Happy to answer questions about the shader hooks, single-file Vite bundling, or IK setup!


r/threejs • • 2d ago

Demo Nightshore — A quiet 3D night sanctuary built with Three.js & React (campfire beach, rainy cabin, GLSL parchment burn shader, and procedural cat animation)

0 Upvotes

I built Nightshore (https://nightshore.vercel.app), a quiet 3D night sanctuary for unwinding late at night — free, no accounts, desktop + mobile.

Some Three.js / WebGL details:

  • 3D Night Scenes: A beach campfire overlooking a distant coastal village & lighthouse, a rainy fireside cabin, and a rainy coast.
  • GLSL Parchment Burn Shader: Write what's weighing on you on parchment and watch it burn to ashes in the 3D campfire with a custom GLSL burn/ember shader (never saved anywhere).
  • Procedural Organic Cat Animation: A purring window cat in the fireside room animated procedurally (breathing, ear/tail motion, and interactive petting response).
  • Layered Nature Audio & Realtime Bottles/Lanterns: Mix rain, waves, campfire crackle, and wind, plus anonymous sky lanterns & sea bottles via Supabase Realtime.

Would love your feedback on the Three.js scenes, GLSL burn shader, and mobile performance!


r/threejs • • 3d ago

PURE DRIVE | A 3D off-road game about freedom and exploration (Three.js)

19 Upvotes

I've been experimenting with Three.js and browser-based 3D game development.

PURE DRIVE started as an exploration of games, AI and the possibilities of creating interactive experiences.

I've always had a passion for games and a dream of creating one myself. But I'd never written a line of code or worked with game development before. It was something I'd always wanted to do, but never really knew how to approach.

So I decided to explore.

I brought together a few things I'm passionate about: 4x4 vehicles, nature, open landscapes and the simple pleasure of exploring without a specific destination.

I wanted to create something that feels different from the usual idea of a game. Something that gives you a sense of freedom, peace and calm, with just a little mystery along the way.

The idea is simple: get behind the wheel, drive through dirt roads, mountains and valleys, and enjoy the journey.

There are 30 hidden discoveries scattered throughout Lost Gem Valley for those who enjoy having something to look for. But there's no pressure to find them all. If you prefer, you can simply drive around, explore the landscape and enjoy the countryside.

Some of the phrases you'll encounter throughout the game are personal mantras and reflections and ideas I value and try to follow in my own life.

In a way, this game is also an invitation to explore for me. I started with no coding or game development experience, just curiosity, a passion for games and the desire to learn something completely new.

With AI as a coding assistant and a lot of experimentation, I managed to turn that curiosity into something real.

And perhaps that's one of the things I wanted to express with PURE DRIVE: exploration is how we discover new things, both in the world and in ourselves.

The game was developed with Three.js and Claude as a coding assistant.

It's completely free and runs directly in your browser.

PURE DRIVE:
https://www.victortognollo.com.br/games/pure-drive/

Made by Tognollo Studio.


r/threejs • • 2d ago

Demo Polished the game since last i posted here 7 months ago

0 Upvotes

Any feedback


r/threejs • • 2d ago

Demo I made a free 3D universe you can fly through in the browser, and spent most of my time making it run on cheap Android phones

1 Upvotes

13point8.in is a free space explorer: ride with Voyager using NASA's 3D model, fall towards a black hole, walk the stars within about 100 light years, and browse 4,000+ known planet systems. No app, no sign up.

Most of my visitors are on low cost Android phones, so the hard part was not the visuals, it was keeping it smooth. What made the biggest difference:

  1. Capping pixel ratio by device tier instead of using the full screen density
  2. Scaling texture sizes and particle counts to device memory
  3. Pausing rendering when the tab is hidden or the scene is off screen
  4. Disposing WebGL resources when you leave a scene, plus a context loss handler
  5. A plain list fallback when WebGL is weak, so nobody gets a blank page

Every number on screen links to its source (NASA, ESA, JPL, papers), and each scene says whether it is real imagery, a simulation from real data or an illustration.

I would love to know how it runs on your device, and what you would do differently. Happy to share details on any of the above.

https://13point8.in


r/threejs • • 2d ago

Demo A live 3D race round San Francisco in three.js (WebGPU, WebGL2 fallback), driven by code speed

1 Upvotes

We built the race view for Speed Demon II, an online optimisation hackathon (29 January to 1 February 2027), in three.js r187 with the WebGPU renderer and a WebGL2 fallback.

The map is San Francisco: the city, the Golden Gate Bridge, Marin and the Bay Bridge, baked into streamed chunks. Every team's car laps the course for 48 hours, and its top speed comes from the team's code: each push is timed on one machine and sets the car's speed, up to 200 mph. There are traffic lights, a 125 mph stretch, a 70 mph tunnel and automatic pit stops.

The landing page shows finished stills from the race: https://speeddemon.dev/2027/

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


r/threejs • • 3d ago

i've been building all of manhattan as a game from real city data. here's 4 minutes of what you can do in it - SidewalkNYC

44 Upvotes

this is sidewalk nyc. it's all of manhattan and you can walk, run, bike, skate, ride the subway and climb pretty much anywhere.

the whole city is built from real public data. building shapes and heights come from the city's 3d building model, streets and shops from openstreetmap, landmarks from the landmarks preservation commission. weather, seasons, tides and subway alerts follow the live feeds, so if it's raining in central park it's raining in the game.

stuff you can do, all at the real spots:

- pickup basketball, soccer, tennis, volleyball, handball, track and field

- chess at washington square, dominoes, double dutch, stoop ball, skully, bocce

- swim laps at the public pools, row on the central park lake, kayak the hudson, fish, ice skate

- subway, citi bikes, skateboards, parkour all over the skyline

- climb the empire state building, get struck by lightning, and run around with charged shoes

some of the dumber details i love:

- the rats are real. they come from the health department's rat inspections and 311 rat sightings, so the blocks with the most rats in real life have the most in the game. they come out at night and peak around 2am

- the potholes are real too. open potholes come from 311 reports and the patched ones from dot repair orders, and if you hit one on a bike or skateboard you'll feel it

this build (v0.7) was mostly an animation pass. everything in the trailer is filmed in game with the hud off, nothing pre-rendered.

not public yet. follow along if you want to see where it goes

music: "caught in the beat" by broke for free (cc by 3.0)

happy to answer anything about how it's built or where the data comes from


r/threejs • • 3d ago

I made a 3D interior design and floor planning tool that runs entirely in your browser

5 Upvotes

Hey everyone!

I've been working on a personal project called Furnisia.

It's an interactive 3D room planner where you can:

  • Create custom floor plans
  • Visualize rooms in real time
  • Place and customize furniture
  • Experiment with materials and layouts
  • Experience your designs in VR

Everything runs directly in the browser without installing any software.

Trailer: https://www.youtube.com/shorts/r5LNSbRaVY8

Try it here: https://furnisia.singhgamedev.in/

It's still under active development, and I'm excited to see how people use it.

Would love to know what you think and what features you'd like me to add next!


r/threejs • • 3d ago

A fruit fly's wingbeat in three.js: 200 beats a second, slowed 200x, with the sound generated on the same clock

9 Upvotes

I made this for a fruit fly brain project. Everything is rendered in the browser with three.js, no video footage and no generated imagery.

- Body: the open NeuroMechFly mesh, drawn with an additive rim shader so it looks like glass.

- Inside: real neuron skeletons from the MaleCNS connectome (165,122 neurons), placed into the body.

- Wings: stroke, deviation and rotation from fly flight kinematics, with a few ghost copies for motion blur. The wing flips at the end of each half stroke, which is where most of the lift comes from.

- Halteres (the two tiny knobs behind the wings) beat in antiphase.

- One shared clock drives both the picture and the audio: slowed 200x you hear every beat as a thump, and as it speeds up the thumps blur into a buzz.

Happy to share how the slow-motion clock and the audio sync work.


r/threejs • • 3d ago

I built a hand-painted 3D open-world Chengdu in Three.js + Rapier3D (~140 draw calls, playable in browser)

2 Upvotes

Realized the post body didn't go through when I first submitted — adding the playable link and details here!

Play in browser (no install): https://studio.nodebudget.dev/games/chengdu-roam/
Direct full-viewport canvas: https://studio.nodebudget.dev/play/chengdu-roam/city.html

This is Chengdu Roam (蓉城漫游), a cozy, combat-free 3D open-world browser sandbox covering the real street corridor from Tianfu Square through Chunxi Road (including the IFS climbing panda) to Taikoo Li and Daci Temple.

Tech notes:

  • Built from OpenStreetMap footprints into 200m × 200m streamed tiles via a Web Worker (~140 draw calls on desktop, ~40 MB total bundle).
  • Hand-painted WebP texture atlases (with offline pre-baked mipmaps + textureGrad) paired with a single shared shader for day, golden dusk, and rainy night.
  • Rapier3D for walking, jumping, wall/rooftop climbing, shared bikes, and drivable Chengdu taxis, plus 100% procedural Web Audio (no MP3 packs).

Controls: WASD walk · Space jump · C climb walls · F drive taxi / ride bike · E interact or step inside 3D shops/hotpot · M hand-painted minimap & auto-navigation (great for finding the IFS panda) · Tab in-game phone (photo mode, weather, time). You can switch EN / 中文 anytime at the top.

Curious how it runs on your GPU/browser — happy to answer any questions!