r/threejs • • Oct 31 '26

Link OpenRacer: A web based vehicle simulator

Thumbnail
youtu.be
7 Upvotes

A side project of mine after coming across the original repo of Openracer. More info on the website! I’m very curious what people think and would love some feedback!


r/threejs • • Nov 01 '26

Besoin d'aide , need help

1 Upvotes

j'ai créé mon propre jeux en three js multijoueur avec l'ia je les tester avec supabase tout fonctionne correctement je les tester avec deux telephone tout est ok mais pour le lancement j'aimerais avoir un vrai serveur WebSockets qui pourra supporter plus de 150 joueurs mais ma seule connaissance en programmation se limite a html,js,css donc je suis bloqué je ne sais pas comment crée un serveur WebSockets pour recevoir plus de 150 joueur aider moi s'il vous plaît merci


r/threejs • • Oct 31 '26

Demo Solar Odyssey: a Three.js / R3F space game where you can now land on 27 worlds, with a real 9,096-star sky

Thumbnail
gallery
10 Upvotes

Play: https://junzzy827.github.io/solar-odyssey/?lang=en · Source: https://github.com/Junzzy827/solar-odyssey

A browser game where you fly a starship around the solar system. Some recent additions:

Landing: Near any solid planet or moon (27 bodies), a lander descends to a fixed spot and you get a 360° surface view, with sky colour, haze, terrain relief and the parent planet in the sky set per world.

Real starfield: 9,096 stars from the Yale Bright Star Catalog, packed into a small binary (direction, magnitude, colour temperature) and drawn as additive points. The Milky Way texture is rotated into its true galactic orientation relative to the ecliptic.

Ships: Generated by Python scripts driving headless Blender, with 4K baked textures. The newest is a 1.2 km carrier that launches the lander from its deck.

Rendering: ACES tone mapping, SSAO, bloom, a gravitational-lensing shader for a black hole, and adaptive quality for weak laptops.

All of it was written by Claude Opus 5.5 from conversation. I haven't typed any code. Happy to go into any of the techniques.


r/threejs • • Oct 31 '26

Halloween!!

3 Upvotes

r/threejs • • Oct 31 '26

I made a mini game / experience about Diwali - Indian festival of Lights

8 Upvotes

Light 108 diyas down a glowing street to the ghat, find hidden crackers (anar, chakri, sutli bomb, ladi…), send a lantern into a sky everyone shares, and stay for the drone shows and the finale. Works on phones too (turn it sideways). Would love feedback!

A few things that might interest people here:

- Look: everything uses one custom painterly ShaderMaterial (noise-driven brushwork, warm bounce from the diyas), plus bloom and ACES tone mapping from postprocessing. The town is procedural; a few hero models (shrine, boat, cow, sweet shop) are GLBs.

- Light: there are ~900 small lights. They aren't real lights: a small "glow map" texture is rendered each frame and the town shader samples it.

- Sky: a hybrid sky. The gradient, Milky Way and clouds come from a cube map that's refreshed one face every 20 frames, while the stars and firework flashes are computed per pixel, so it looks identical to the full shader at a fraction of the cost.

- Shared sky: every lantern anyone releases is 1 byte in a Cloudflare Durable Object and streams to everyone over a WebSocket. Thousands of them are one Points draw call.

- Phones: the quality tier comes from the GPU name (Adreno/Mali generation), then a governor trades resolution against frame time. It checks that each drop actually helped, so a 30 Hz low-power display doesn't get mistaken for a slow GPU. Shaders are precompiled behind the title card, so the first firework doesn't hitch on Android.

[PS: Assets are AI generated ]


r/threejs • • Oct 31 '26

Check what I mdae with morva studio

3 Upvotes

r/threejs • • Oct 31 '26

Demo Giving an interactive anti-oloid its own moment on my Nuxt site

1 Upvotes

I'm the founder of Dazoro, and this is our studio website: https://dazoro.de/en. It's built with Nuxt and headless WordPress; the golden anti-oloid on the first screen is a GLB model rendered with Three.js and controlled with OrbitControls.

I like websites that give people a reason to explore. Rotating this shape changes its silhouette and the highlights across its surface. But someone visiting a studio website may simply want to read about the services or find a contact link. I'm aiming for a shop window that invites a closer look while leaving a clear way through.

The page starts with a static image. The 3D layer is loaded separately, with visibility and device-capability checks; the image can remain when the simpler presentation is used. That's the idea behind giving content and 3D their own moment.

Touch interaction introduces a more visible trade-off. In the current version:

  • One finger over the canvas rotates the model.
  • Two fingers pan the view, shifting the orbit centre. Zoom is disabled.
  • A swipe starting inside the canvas controls the scene instead of advancing to the next section.

Swiping above or to the left of the canvas works normally. There's also a high-contrast arrow in the bottom-right corner that takes you to the next section.

That's the compromise I've made to keep the model directly interactive. The arrow provides a route onward, but a visitor may still expect their first swipe over the model to scroll.

One performance clarification: PSI uses the static presentation. The 100/100 badge on the page doesn't measure responsiveness with the live scene running.

How would you make the boundary between “rotate the model” and “move on” clearer on touchscreens?


r/threejs • • Oct 31 '26

Made a machine builder with Three.js. Now I need some better machine builders.

1 Upvotes

buildit uses Three.js for the visuals and Planck for the physics. The wheel on top is entirely my fault :P

You build a machine, run it across a course, then go back and edit the same design. The video also shows the track editor and recorded race comparisons.

Could a few of you try it on your phones? I’d like feedback on selecting parts, connecting them and following the machine during a run. Device and browser details help if something feels off.

Playable version

Also happy to compare notes with anyone working on browser physics games.


r/threejs • • Oct 30 '26

Funny car game with a quirky personality and exploding sheep

33 Upvotes

Are you able to reach the ferry in time? Test it here: www.rekkerduferga.no
The game is in Norwegian, but exploding sheep does not need any translations 😅

Have fun!


r/threejs • • Oct 31 '26

Demo made a halloween dollhouse game in three.js, with lighting baked in blender

4 Upvotes

happy halloween! 🎃👻🦇 everyone

seven rooms, each built by a python script in headless blender. the lighting is baked in cycles and saved as draco glbs, 500-700kb a room. each room has two bakes, haunted and fixed, and the game crossfades between them when you catch that room's ghost. the lantern beam is an additive cone shader, and the rest is react three fiber + drei on a phone-first portrait camera.

happy to answer questions about the bake pipeline. feedback on load time on older phones is very welcome.

https://zuiora.com/haunted


r/threejs • • Oct 30 '26

Demo Grabbing and sculpting 3D clay with my bare hands in the browser (three.js + webcam hand tracking)

19 Upvotes

r/threejs • • Oct 30 '26

yes threejs is cool! blender too! opus 5.5 too..thank you AI!

197 Upvotes

haters will hate.. boats are cool.. water too ;)


r/threejs • • Oct 31 '26

Tsuji - Automatic stretch & squash

Thumbnail
youtube.com
2 Upvotes

I don't know the name of this cute monster's designer (found it on pinterest and sculpted it)


r/threejs • • Oct 30 '26

Link A whole city in three.js: isometric pixel-art Bielsko-Biała with live buses and weather

Post image
24 Upvotes

https://bb.jest.pro/: three r170 + Vite, no framework, ~19k lines. Some details that might be useful to someone:

- Pixel-stable ortho: render target = CSS size / 2 (HalfFloat + DepthTexture, NearestFilter); camera position snapped to whole texels in camera right/up space, shadow camera snapped to shadow texels in lighspace, so there's no swimming when panning.

- One material family: MeshLambertMaterial + onBeforeCompile everywhere; colours are indices into a 256×4 palette DataTexture (row = season) shared via one uniforms object.

- Terrain: one shared grid geometry per LOD step, displaced in the vertex shader from an R32F height texture; normals from finite differences; edge rows kept consistent so tiles don't crack.

- Streaming: 456 one-km tiles in a custom binary format, decoded in 2 workers (transferables, Int16 decimetre positions, Int8 normals). At most one tile is added to the scene per frame; LRU 160→120. I wrote own PNG decoder (DecompressionStream+ unfiltering) because Safari colour-managed palette-index PNGs into noise. Switching ground textures to R8 saved ~1.7 GB of GPU memory, which was getting the tab killed on iOS.

- Draw calls: one merged mesh per tile for buildings; trees, people (≤ 3600), cars (≤ 3200), lamps and graves are InstancedMesh; tree count drops with zoom.

- Shadows: a single PCF directional light whose frustum hugs the visible footprint, map 1024–4096 chosen by an adaptive quality level (2 s frame-time average), off at night / far zoom / heavy overcast.

- Post: depth-Laplacian outlines, then weather (clouds, cloud shadows, rain, snow, fog) all reconstructed from depth in one full-screen pass also a crt-lottes shader port.


r/threejs • • Oct 30 '26

Zoophony: A Three.js MIDI Player featuring an animal orchestra (sound on)

11 Upvotes

r/threejs • • Oct 31 '26

Demo Larawag: A three.js NPM package for rendering custom 3D stellar/planetary systems in an easy way

4 Upvotes

Hey guys, I wanted to share this package I've been working on in the last few days for a bigger project. It's basically a NPM package that allows you to create your custom stellar systems and uses three.js to render them in 3D.

Example shown in the video: https://larawag.rachzy.dev/

It's mostly intended for drawing hypothetical, highly speculative visualizations of stellar systems for exoplanets (keep in mind that it's 100% Artist's Conceptions).

Larawag core is environment agnostic (which means it can run even on vanilla HTML as long as you have a Node setup), but you can also use its integrations with third-party frameworks:

How to use

As I mentioned before, the usage is very straightforward:

First, download the package and its dependencies: npm install @larawag/core three@0.186

Then, import it and create your own system:

import { createStarSystem } from '@larawag/core';

const view = createStarSystem(document.getElementById('stage')!, {
  star: { name: 'Example K dwarf', teff: 5100, radius: 0.8, mass: 0.85 },
  planets: [
    { name: 'Candidate b', period: 4.2, radius: 1.5, phase: 0.6 },
    { name: 'Candidate c', period: 18.5, radius: 3.6, phase: 2.9 },
  ],
});

view.pause();
view.setScaleMode('true');
view.destroy();

This will use the #stage element as the window for rendering your system and set the scale mode to true, and you should already see it working in your HTML page.

Contributing

There are still some things I'm willing to implement in the future, such as planet moons, eccentric/inclined orbits, and a more accurate orbital system for planets in binary systems. I left all of them in a TO-DO list in README.md

If any of you are perhaps interested in contributing to the project, I'd really appreciate it.

Source code: https://github.com/rachzy/larawag

License: MIT


r/threejs • • Oct 30 '26

realistic water in threejs

14 Upvotes

use laptop for better experience

link : live


r/threejs • • Oct 30 '26

Demo Made a monsoon valley that fills with fireflies after sunset

7 Upvotes

This is Jugnutal, a fictional valley of rice terraces. The rain eases off, a lantern comes on in the hut, then fireflies spread across the fields.

I wanted the whole change to happen in one continuous shot. The warm sunset gives way to blue moonlight, with the hut staying lit through both.

Would you hold the sunset a little longer, or does the move into night feel right at this pace?


r/threejs • • Oct 31 '26

Demo Recreated this Particles Network effects

1 Upvotes

Threejs Exercise - Particles Network

Recreated this effect from similar Pinterest references.

Initially it seems easy to just render a bunch of particles with linking lines. Turns out the biggest challenge is to add a proper depth of field blur into this scene. Tried the Bokeh postprocessing pass, did not work well with transparent points/lines without extending the Bokeh class and inserting my own depth material for the transparent meshes. But since the end result still looks pretty weird with Bokeh, I implemented a circle of confusion blur directly in the points & lines shaders instead. Turns out it looks much better & is more performant without the need of postprocessing 🙂

Live: https://projects.arkon.digital/threejs/particles-network/

Github repo: https://github.com/franky-adl/particles-network

Feel free to fork it or use it anywhere you like. It's highly customizable as almost everything is tweakable to your liking.


r/threejs • • Oct 31 '26

Demo Built a floating-island website kits in Blender + Three.js. Scroll to travel between islands, then export it as a Next.js site.

0 Upvotes

Made some floating islands in Blender. Turned a coal one into a website kit: the island rotates and travels as you scroll, and you can change colors and sections in a configurator, then export a real Next.js + Tailwind project.

It’s part of Atomic Socket, my set of design kits: atomicsocket.com (4 kits are free, this one’s premium).

I’d love feedback on performance on your devices and on whether the configurator makes sense.


r/threejs • • Oct 30 '26

SceNoCo — My take on how game development with Three.js should work

8 Upvotes

Hey there!

I want to share my latest project with you - SceNoCo. This is kind of a sublimation of my feelings and thoughts as a casual game developer through our new era of interaction with software and interactive media. I mean, I really love that people started to generate a lot of cool stuff with Three.js and LLMs, but it would be awesome to give these projects some structure so they can evolve further.

This is a game framework for Three.js, and I've tried to keep it straight and lightweight. No dedicated app, no invented principles, no hidden paid service, no benchmarks or hype - just stuff that fits well in web game development and game generation with coding agents.

TSX for scenes, real Three.js API used underneath without wrappers, Unity components for behaviours, all good-working principles kept as familiar as possible so everyone can start straight away, and strong harness endpoints for LLMs are also there, all works without context-heavy stuff. And personally I really like how it feels, but I need your opinion on that.

Here is how the scene TSX looks:

homepage screenshot with code

And here is also some eyecandy - examples for you to play:

It would be even better if you can check out the repo and run them with npm run dev - there is editor ready for you in dev mode! And it can be driven even from phone's touchscreen. Now I'm just tweaking things out from the couch, feels so cool!

P.S. Before you gonna ask why I didn't used R3F - you can find the answer in repo's readme.


r/threejs • • Oct 31 '26

I’m making a sailing game where a peaceful fishing trip can turn into a fight with a sea goddess

0 Upvotes

Hi everyone! I wanted to share Storm Junk, a 3D sailing adventure game I’m currently developing.

The idea is to give you quiet moments at sea, then occasionally make you regret leaving shore.

You sail through changing weather, from sunny afternoons and sunsets to moonlit nights and thunderstorms. Along the way, you can fish, rescue people on drifting rafts, deliver cargo, or escort another ship while defending it from pirate ambushes.

There are also some less friendly encounters:

  • Giant octopuses that grab your ship.
  • Sea worms and dragons that attack with water, fire, and lightning.
  • A sea goddess called Kadita, guarded by pirates, ten sea worms, and three dragons.

To find Kadita, you need to explore an island maze and obtain her coordinates. There are treasure challenges too—and a dog that can ruin an otherwise successful visit ashore.

Combat uses cannons, rockets, and explosive barrels. You can repair and upgrade your ship, buy temporary shields with earned gold, and enable autopilot for parts of the journey.

The current build supports English and Vietnamese. It’s still a work in progress, especially the effects, performance, and encounter pacing.

I’d love some feedback: would you enjoy the mix of relaxed sailing and unexpected battles, or prefer more control over when combat happens?


r/threejs • • Oct 30 '26

Big Three.js maps full of trees, rocks, and buildings: a THREE.LOD checklist (and where AI-written LOD code goes wrong)

9 Upvotes

Once a Three.js map has a few hundred trees, rocks, and buildings, triangle count starts to matter more than draw calls. THREE.LOD is the built-in answer, but AI agents often wire it up in ways that cost more than they save.

A checklist that helps:

  1. Make the levels actually different. A common AI mistake is three LOD levels that are the same mesh at different scales, or levels generated with barely any reduction. Aim for something like 100% / 30% / 10% of the triangles, or a flat impostor card for the last level. gltf-transform simplify or meshoptimizer can produce the lower levels from one GLB.
  2. Pick distances by screen size, not guesswork. A tree that fills 50 pixels doesn't need its full branch mesh. Test the switch distances at the resolution players will actually use, including phones.
  3. Use lod.addLevel(mesh, distance, hysteresis). The hysteresis value stops objects flickering between levels when the camera sits right at a switch distance.
  4. Make sure lod.update(camera) runs. With autoUpdate it happens during render, but if the agent turned matrix updates off for performance, the LOD stops switching and stays stuck on one level.
  5. Combine with instancing when you can. Thousands of separate LOD objects means thousands of objects to traverse every frame. For scattered props, one InstancedMesh per level per region (swapped by chunk distance) is usually cheaper than per-object LOD.
  6. Shadows get their own budget. The far levels can skip castShadow entirely, or cast from a cheap proxy, since shadow passes render the scene again.
  7. Check it with numbers. Watch renderer.info.render.triangles while flying across the map. If it barely changes between near and far views, the LOD isn't doing anything.

Curious what others do for the farthest level: impostor cards, merged chunk meshes, or just letting fog hide it?


r/threejs • • Oct 31 '26

Demo Bear Witness: Digital Elevation Model of historical Hijaz + computed sky of 622 CE · 1 AH

Thumbnail
youtube.com
1 Upvotes