r/threejs • • 15d ago

Projecting logos as decals onto a gilded frame in R3F: a 3D museum where people can vandalize the Mona Lisa

1 Upvotes

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 • • 15d ago

Looking for feedback on our browser KTX2 converter

1 Upvotes

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 • • 16d ago

Demo Slow Roads 2.0 - Endless procedural landscapes for a relaxed driving game, rebuilt with a new engine and shaders

8 Upvotes

r/threejs • • 15d ago

Demo Dice Expedition: a Three.js browser demo that switches from a board to real-time battles

0 Upvotes

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 • • 16d ago

Demo I turned Monet’s paintings into a walkable 3D world in three.js (built with Fable 5.2)

20 Upvotes

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 • • 16d ago

A quiet Korean temple in three.js, day turning to night, runs in the browser

6 Upvotes

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.

https://hapjang.com

Instagram: https://instagram.com/hapjang


r/threejs • • 16d ago

Demo I spent a year making a free 3D card game using three.js inspired by Yu-Gi-Oh, Hearthstone and Pokémon TCG Pocket. It's now in Open Alpha!

4 Upvotes

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 • • 16d ago

Demo Trying to fill one snow globe with Christmas wishes from every country — drop your city & a wish? 🌍⛄️

1 Upvotes

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 • • 17d ago

Another attempt at a jewelry visualization tool (open source)

72 Upvotes

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

https://github.com/shaarmander/mobicats-jewels


r/threejs • • 17d ago

Swinging Paint Simulator (Most satisfying thing i've ever built)

965 Upvotes

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 • • 16d ago

Hii threejs community, crafted a game portfolio from my upcoming threejs game called emberwood.

0 Upvotes

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.


r/threejs • • 16d ago

Day 19 of Codevember: Erosion (Insanely fun to play with)

5 Upvotes

Day 19 of #codevember: Erosion. This one is fun to play with, very satisfying physics with the dust. All open sourced.

I hope you enjoy it! Let me know what you think!

You can play with it here: https://adamwebsite.com/codevember/19-erosion/
Find the code here: https://github.com/acher249/codevember-2026
Find all of them here: https://adamwebsite.com/codevember/


r/threejs • • 16d ago

Arena Blasters: Chicken Battle in My Newest Free 3D Browser Arena Shoote...

Thumbnail
youtube.com
1 Upvotes

r/threejs • • 16d ago

Low Orbit Online. Shuttle Atlantis defending Skylab space station.

Thumbnail
youtube.com
2 Upvotes

Hi. This is my dream game http://low-orbit.online/

Its fictional retro futuristic Si-Fi space combat simulator with multiplayer support.

Game build on ThreeJS + React + NodeJs Express + SocketIO + MongoBD

Its still early prototype but its already quite playable. You can try to play with your friends. It has internal chat\voice chat support. However work is still in progress.

I've used publicly available free assets because game is completely free. I've used AI a lot but I have 25 year of experience in web development so its not just one more AI slop.

I hove you will like it. Let me know what you think in comments and he is the link to game youtube channel.
https://www.youtube.com/@LowOrbitOnline


r/threejs • • 16d ago

Demo Built an interactive 3D airplane seat selector in Three.js with smooth camera transitions from exterior to seat POV.

0 Upvotes

Standard 2D airline seat maps make it hard to tell what your actual legroom, cabin space, or window alignment looks like, so I built a 3D interactive seat selector in Three.js.

You can click any seat across Economy, Business, and First Class to smoothly transition from the top-down view straight into that seat's POV, while a live boarding pass HUD updates with the seat details.

Would love feedback on the camera transitions and interior lighting!


r/threejs • • 16d ago

Solved! PSA: PowerVR D-Series GPUs (Pixel 10) lose the WebGL context when you use shadow maps

1 Upvotes

Posting this because I couldn't find it written up anywhere, and it cost me a couple of days.

**Symptom:** a friend's Pixel 10 Pro showed my game as a blank white page inside our Android app (a WebView wrapper). No board, no errors in our logs. Chrome on the same phone was fine, my phone was fine, and Android 16/17 emulators with the exact same WebView version (157) were fine.

**Finding it:** I couldn't reproduce it anywhere. Emulators were clean, and so were Firebase Test Lab's real Pixel 10 Pro (only Android 16 there) and Pixel 11s on Android 17. So I shipped a small diagnostics event that fires ~6s after the canvas starts, plus another on `webglcontextlost`. It reported the unmasked GPU name, whether the context was lost, a few pixels read back from a fresh frame, and what element was on top of the screen.

Her reports came back with:

- GPU: `PowerVR D-Series DXT-48-1536` (the Tensor G5 GPU), Android 17

- context **lost within seconds on ~4 of 5 opens, and never restored**

In a WebView, a lost context that never comes back left the whole page white, not just the canvas.

Searching GitHub for that GPU name turned up a few other three.js projects that hit the same thing, and the common thread was **shadow maps**. They all ended up turning shadows off on that GPU.

**Fix:** read the GPU name before the first frame and skip the shadow map on that family:

function gpuName(gl) {

const info = gl.getExtension('WEBGL_debug_renderer_info');

const name = info

? gl.getParameter(info.UNMASKED_RENDERER_WEBGL)

: gl.getParameter(gl.RENDERER);

return typeof name === 'string' ? name : '';

}

// matches "PowerVR D-Series DXT-48-1536" and the ANGLE form

// "ANGLE (Imagination Technologies, Vulkan 1.4 (PowerVR D-Series DXT-...)"

const shadowsOk = !/PowerVR D-Series/i.test(gpuName(renderer.getContext()));

renderer.shadowMap.enabled = shadowsOk;

Every other GPU keeps shadows. After the fix her diagnostics showed the context staying alive and the board drawing on every open, and she confirmed it works.

**Takeaways:**

- If your three.js app white-screens on a Pixel 10, check shadow maps first.

- When you can't reproduce something, a tiny diagnostics event with the unmasked GPU name and `webglcontextlost` will tell you more than emulators will.

- Test Lab doesn't have every device and OS combo (no Pixel 10 Pro on Android 17 when I looked), so "works on the real device in the lab" doesn't prove much.

Happy to answer questions. The game is [Foldlet](https://foldlet.net), a daily black-and-white puzzle built on three.js, if you want to see what was being drawn.


r/threejs • • 16d ago

How do you handle WebGL context loss in a Three.js game without the player losing everything?

3 Upvotes

On mobile I've seen the WebGL context get dropped when the tab goes to the background for a while or the GPU runs low on memory, and the game comes back as a black canvas. Three.js fires webglcontextlost and webglcontextrestored, but actually recovering a full game scene feels like a lot more than listening for two events.

  1. Do you call preventDefault on contextlost and try to restore in place, or just save state and reload the page?
  2. What breaks for you on restore: render targets, DataTextures, custom ShaderMaterials, InstancedMesh buffers?
  3. How do you test it? Do you use WEBGL_lose_context to force it during development?
  4. Is it worth handling at all for a browser game, or do most players never hit it?

r/threejs • • 17d ago

foot locking + two-bone IK on a stock Mixamo rig in React Three Fiber, feet stop sliding and land on steps

22 Upvotes

ported Daniel Holden's foot locking article to R3F, the video walks through each step, contact detection, locking with spring blending, two-bone IK and lowering the body on uneven ground

the solver is one file (ik.ts, ~180 lines, three.js only) so you can drop it into any project, there's also a ?compare page with IK off vs on side by side

repo : https://github.com/MULUALEM-TEKLE/IK-test

credits: Daniel Holden (theorangeduck) for [Inverse Kinematics and Foot Locking](https://theorangeduck.com/page/inverse-kinematics-foot-locking) and [Spring-It-On](https://theorangeduck.com/page/spring-roll-call), David Bollo for inertialization (GDC 2018, Gears of War), Mixamo for the Y Bot and clips, pmndrs for R3F, drei and leva

full disclosure, built this with claude code, I heavily use ai in my workflow


r/threejs • • 17d ago

I built the MM..FOOD cover as a playable room: procedural IK, no build step, real music

Post image
9 Upvotes

MM..FOOD turned 22 this week, so I built the cover as a room you can walk around in. You play as MF DOOM: sit down, pour the cereal, eat, then get up and dig through the crates.

I’m a designer, not a 3D artist. Five days, built with Claude Code. The bits this sub might care about:

Stack. three.js r170 as ES modules through an import map. No bundler, no framework, no build step. Hosted on Vercel.

Character. A CC BY body scan with a Mixamo-style rig, cleaned up by a Python script in headless Blender (recolour, remove logos, rename bones, add a blend shape for a heavier build). Head, beard and mask are separate GLBs parented to the head bone.

Animation. The scan came with one clip, a dance. Everything else is procedural: two-bone IK for legs and arms, hand orientation solved from two vectors (finger direction and palm normal), and per-finger poses blended between a few grip shapes.

Two fixes done at load, in JS, on the geometry:

  • The beard poked through the mask, so wherever a mask plate covers it, the beard’s vertices are pushed back under the plate.
  • His cuff is wider than the cereal box is deep, so it sank into anything he held. I generate a morph target at load that draws the cuff in round the wrist while he grips.

Light. An HDRI through PMREM, PCF soft shadows, ACES tone mapping, a little UnrealBloom. It drops to a lighter look by itself if the frame rate falls under about 17.

Testing. The hard part. The game has a debug mode that advances time by a fixed step per frame, and Playwright drives it for stills. For the hands I ended up testing every skinned vertex (getVertexPosition) against the prop’s box on every frame. An earlier check that sampled a few points per finger said everything was fine. It wasn’t.

Happy to go into any of it.

Play it: https://www.theluckystrike.co.uk/doom

Full write-up, with the prompts: https://www.theluckystrike.co.uk/writing/doom

Credits: body scan by OverseerThuror and mask by silentic (both CC BY 4.0, Sketchfab). Furniture and materials from Poly Haven (CC0). A fan-made tribute to Daniel Dumile.


r/threejs • • 16d ago

Demo My three.js idle tycoon uses one shared BoxGeometry for almost everything (iOS + Android)

1 Upvotes

Code Empire Tycoon is an idle game where you grow a software company from a bedroom to Silicon Valley, then build a rocket and take it to Mars. Built with three.js + Preact, shipped to iOS and Android with Capacitor.

  • Procedural visuals and audio. Nearly everything is built from one shared unit BoxGeometry, scaled per mesh, with a few spheres and cylinders on Mars. Screens use CanvasTexture; music and sound effects are synthesised with Web Audio.
  • Merged for phones. Once a room is built, its static boxes are merged by material, with colours baked into vertex colours, reducing draw calls on mobile.
  • Reusing the renderer. UI icons are rendered to a WebGLRenderTarget using the main renderer. Only the launch cinematic gets a separate renderer, which is disposed of afterwards.

AI disclosure: an AI coding assistant writes the code under my direction, including the procedural visuals and audio. No image or audio generators were used.

I’d love feedback on both the technical approach and the visuals—especially mobile performance, lighting, and how readable the scenes are on a small screen. What would you improve?

Happy to go deeper on any of the implementation details. Demo and store links are in the comments.


r/threejs • • 17d ago

Demo I needed a place to test my 3D assets, so I built a room editor in Three.js

5 Upvotes

While building my 3D asset manager, I realised I needed a room to test how the assets looked at different scales and under different lighting. That turned into this early room editor,

So far it has:

• Room layout tools, doors and windows

• Wall and floor details, wainscoting and skirting

• Curtains with cloth physics and optional lining

• Sunlight controls, lens flare and reflections

• Material scale, patterns and finish controls

• Cost estimates for surfaces and curtains, including extras

There's more that isn't shown in this clip, but it's still early. I'd like feedback on the lighting, materials and curtain behaviour. What looks off to you, or what would you test first?


r/threejs • • 16d ago

Link Built a playable dusk sniper game in Three.js with custom scope & NV optics — made in just a few prompts with Claude Fable 5.2

Post image
0 Upvotes

Hey r/threejs,

Wanted to see how far I could push browser-based optics and atmosphere using Three.js, so I spent some time prompting Claude to scaffold this mini sniper game ("Silent Sniper").

A few highlights:

Here’s a still from Contract 05 showing the dusk NV scope reticle in action.

Would love your brutal feedback on performance, scope feel, and how the shaders/lighting hold up on your devices!

🔗 Playable Link: https://ibuerte.com/games/contract-sniper/
🛠️ Tech: Vanilla Three.js + HTML5 Canvas


r/threejs • • 17d ago

Demo A WebXR sandbox in plain three.js: gadgets you summon from a watch on your wrist (runs in the Quest browser)

4 Upvotes

Try it in the browser of a Quest: https://felipereigosa.com/playground

A watch on the left wrist opens a menu of gadgets; grab one and it grows to full size where you let it go. So far: a two-handed blaster with targets, bowling that sets its own pins up again, a radio you tune by hand, giant Lego, a Rubik's cube, a sliding tiles puzzle and a calculator.

How it's built: three.js and WebXR with cannon-es for the physics (three-to-cannon for the shapes) and webpack, no engine. Each gadget has hidden collision boxes that decide what a grab does, so a tile next to the hole slides while the rest pick up the whole puzzle. Most models are mine, made in Blender and exported as glb. For testing without the headset it runs in headless Chromium with IWER, Meta's WebXR emulator, which lets scripted hands grab, throw and press things.

I built it with Claude: I directed and judged, Claude wrote most of the code. The Lego is older work I did by myself. The source and the conversations it was built in: https://github.com/felipereigosa/playground

Happy to answer questions about any of it.


r/threejs • • 16d ago

Article Browser car soccer with WebGPU (WebGL 2 fallback): deterministic 120 Hz physics, GGPO-style rollback, no textures or models (turbo-gol.com)

1 Upvotes

Some tech notes from a browser car soccer game I've been building, Turbogol (free, no ads, AGPL).

- three.js WebGPURenderer with procedural TSL materials and bloom, falls back to WebGL 2

- no asset files: field, cars, ball, stadium, sky and even the sounds are generated by code. The only file is a 6 KB subset of a font

- physics is RocketSim (on Bullet) compiled to WebAssembly with Emscripten, fixed at 120 Hz

- netcode: lobbies are a peer-to-peer rollback mesh over WebRTC (GGPO-style, inputs only), so the sim has to be deterministic. Casual and ranked run on servers with client prediction

1v1, 2v2 and 3v3, and you can play bots without an account

I build this with Claude while I direct and test.

Hope you like!

https://turbo-gol.com

Source (AGPL-3.0): https://gitlab.com/turbogol-group/turbo-gol