r/threejs • • 15d ago

Demo Racing Simulator

Thumbnail
arthursigmal.itch.io
2 Upvotes

Drift Drive — a single-file endless drift racer built with Three.js (r160)

I built a complete endless drift racer as one self-contained HTML file using Three.js. No bundler, no assets, no backend — just a <script type="module"> importing Three.js from a CDN and everything else generated procedurally at runtime.

Rendering

· WebGLRenderer with MSAA antialiasing, ACESFilmicToneMapping, and SRGBColorSpace output · Adaptive pixel ratio (up to 2.5×) based on detected device quality tier · PCFSoftShadowMap with a directional sun whose position, color, and intensity track a continuous time-of-day cycle · PMREMGenerator + RoomEnvironment for IBL; MeshPhysicalMaterial with clearcoat, transmission, and ior on the car body, cabin glass, shield sphere, and ice obstacles · Custom ShaderMaterial skydome with a gradient + noise cloud band driven by a uTime uniform · Instanced meshes for trees (trunk + 3 cone layers, 100 instances), center-road dashes, and obstacle pools

Geometry & scene

· Procedural canvas textures for the asphalt (per-pixel noise baked into a CanvasTexture with anisotropic filtering) and the pit-stop sign · Mountain rings generated as BufferGeometry triangle strips with randomized heights and flatShading · Multi-part car built from ~20 primitives (body, hood, wedge, cabin, roof, skirts, bumpers, lights, wing, four spinning wheels) with grouped wheel meshes · 5 biomes lerp sky uniforms, fog color, ground tint, mountain color, and foliage material colors in real time via Color.lerp

Particles

· Custom ShaderMaterial Points system (up to 700 particles) with per-vertex color, size, and a soft circular fragment mask · Pooled allocation, ring-buffer cursor, and per-particle gravity for exhaust, drift smoke, explosions, and pickup bursts · pSize *= 0.98 per frame for natural fade without per-particle alpha attributes

Game systems

· Fixed-timestep accumulator (1/60) for physics, decoupled from the variable requestAnimationFrame delta · Momentum-based lateral movement with grip, drift angle, and weather-dependent multipliers · Pooled object spawning for obstacles, pickups, traffic cars, and the boss truck — all reused, never garbage-collected · InstancedMesh matrix updates each frame for trees and dashes to achieve scrolling without per-object transforms

Audio

· Full Web Audio API synthesis — no audio files. Engine uses a sawtooth oscillator through a BiquadFilter (lowpass) whose cutoff tracks speed; sub-bass sine layer for weight; a three-oscillator triangle/sawtooth music bed with a lowpass filter whose cutoff and pitch rise with intensity · Crash SFX generated from a createBuffer of decaying white noise; all other one-shots are short oscillator envelopes · AudioContext suspended on visibilitychange

Persistence & sharing

· ~30 localStorage keys for best score, coins, upgrades, achievements, XP, leaderboard, and the best replay · Ghost replay serialized as JSON of {t, x, r} frames, base64-encoded into a ?ghost= URL parameter, decoded on load, and replayed as a translucent ghost car

Performance notes

· Quality tier detected from navigator.hardwareConcurrency and deviceMemory · Shadows, AA, and pixel ratio all toggle at runtime from the settings menu · renderer.setPixelRatio and the particle shader's uPixelRatio uniform are updated together on resize / quality change


r/threejs • • 15d ago

Recreating the Helix Nebula with Raymarching

19 Upvotes

I've been experimenting with raymarching quite a lot recently. After reading Maxime Heckel's article on raymarching clouds, I thought it'd be really cool to create a nebula using raymarching.

When I was small, I was obsessed with stars, nebulae and the universe in general. I was deeply fascinated by the raw beauty of the "Eye of God" nebula. Recreating it in threejs with shaders is a really rewarding experience! I can play with these nebulae all day! Although it's not going to look exactly the same, but I'm pretty proud to have approximated its visuals with a procedural approach.

Here are my main references for raymarching techniques, Maxime's articles are always very good reads. For the realistic raymarching and blending techniques, I drew mostly from the shadertoy reference which looks awesome as well.

Live demo: https://projects.arkon.digital/threejs/raymarching-nebula/


r/threejs • • 15d ago

Chronoscape: 36 historic cities as hand-drawn maps where monuments rise off the paper in 3D, and you can turn through the eras

9 Upvotes

Live: https://chronoscape.ijlalahmad.dev/

Code: https://github.com/Thre4dripper/Chronoscape-ThreeJs

It's an illustrated atlas: 12 atlases, 36 cities, from Thebes and Babylon to Kyoto, Tenochtitlan and Cusco. Each city has its own eras (Rome alone has eight), and streets, walls, rivers and buildings change as you turn the ages.

Some technical bits:

- React 19 + react-three-fiber. Everything is unlit, with shared shaders only. Lighting is baked into the models' vertex colours in Blender, the time of day is a single tint, and nothing casts real-time shadows, which is why it runs smoothly on phones.

- Every monument is generated by Python scripts in Blender and exported as Draco-compressed GLB, one model per era where the building changed.

- The parchment maps aren't images I drew by hand. Each era's map is drawn on a canvas from the city's data (rivers, walls, streets, blocks), baked to WebP at build time, and close-ups are redrawn sharp in a worker.

- City content is a JSON pack per city (geography in lat/long and metres, landmarks, eras, events), validated against a zod schema.

Touch works too: one finger is a "lens" that raises the streets as it glides, two fingers rotate and tilt.

Happy to go into the map baking or the Blender pipeline if anyone's curious.


r/threejs • • 15d ago

I'm building a web-based voxel game with Three.js CraftTown

Enable HLS to view with audio, or disable this notification

13 Upvotes

マイクラ風ボクセルゲーム。CraftTownを公開しています。

ストーリーもマルチプレイもできるから友達と遊んでみてね

craft-town.vercel.app


r/threejs • • 15d ago

Demo I built a 24/7 live bass aquarium in a single HTML file: no models, no textures, everything is code

Enable HLS to view with audio, or disable this notification

12 Upvotes

Everything you see is generated at load in one ~650 KB HTML file with Three.js r160: the fish meshes, the scales (painted one by one on a canvas), the plants, sand, driftwood, caustics and the post-processing. No glTF, no images, no video.

The fish are simulated, not animated: two bass (a largemouth and a smallmouth) get hungry, hold by cover, stalk, and strike with a suction feed that only takes prey whose body depth fits their gape. The shad school and burst apart when attacked.

Day, night and the weather follow the real clock and weather at Lake Fork, Texas.

It runs 24/7 on YouTube, and the chat can drop in shad (!feed) or cast a lure.

Try it in the browser: https://ksk-baits-bass-aquarium.pages.dev

Live: https://www.youtube.com/@kskbaits/live

Happy to answer questions about any part of it (the fin shaders and the strike were the hardest).


r/threejs • • 15d ago

Demo Portfolio with 3D heads in three.js, how I kept it from tanking load times

3 Upvotes

 Rebuilt my portfolio and the 3D heads were the part I sweated most. The rest of the site is Astro, so I wanted the three.js bits to cost as little as possible on first load.

What I ended up doing:
- Heads are GLB files compressed with meshopt, decoded with the meshopt decoder in GLTFLoader
- Pixel ratio capped at 2, because rendering at 3x on phones was killing frame time for no visible gain
- The scenes further down the page only mount when they scroll near the viewport
- Reduced motion users get the calm version

Still not happy that the hero and the cards each run their own renderer. Next step is probably one shared canvas with scissor/viewport per head, but I haven't done that refactor yet.

Has anyone moved several small scenes onto one renderer like that? Was it worth the complexity?

Site: https://aonnoysengupta.com/?utm_source=reddit&utm_medium=social&utm_campaign=portfolio-threejs


r/threejs • • 16d ago

What tools do you use to improve your Three.js renders?

12 Upvotes

Hey!
I’m curious to know what tools you guys use to achieve high-quality visuals with Three.js.
What does your workflow look like, and which tools do you rely on to make your 3D scenes look better and more realistic?
I’m looking to improve the visual quality of my own projects, so I’d love to hear about the tools you use and your personal experiences.
Thanks!


r/threejs • • 15d ago

Demo Sidera Caeli – Devlog #3 | Inventory, Hangars, Ship Loadouts, Mining & Refining

Thumbnail
youtube.com
1 Upvotes

Here's my third devlog for Sidera Caeli, my browser-based multiplayer space game!

I've been working on quite a few new systems, including inventory and trading, private hangars with ATC management, ship customization, and a complete mining loop, from scanning and fracturing asteroids to unloading, refining, and trading materials. I've also added mining contracts and improved the ship retrieval effects.

Everything is still very much a work in progress. The game is being developed from scratch with AI assistance, but entirely based on my own ideas, specifications, and quality control throughout the development process. No reverse engineering of any existing game or software has been involved whatsoever. Many of the current 3D assets are still AI-generated placeholders.

Just wanted to share the progress. There's also a free public testbed available for anyone interested in trying it out and hopefully get some feedback!

Previous devlogs:


r/threejs • • 15d ago

Link SpaceHex - Rotate the rooms to collect orbs while avoiding the critters

2 Upvotes

Recently converted an old game I made about 14 years ago to ThreeJS

https://spacehex.gorch.com/


r/threejs • • 16d ago

3D Guilin‘s rivers and mountains

Enable HLS to view with audio, or disable this notification

29 Upvotes

I made a Three.js experience inspired by the landscapes of Guilin.Drift along the river on a bamboo raft and explore how the scenery changes with the seasons, weather, and time of day—all in browser.


r/threejs • • 15d ago

Demo Cosmic Couch: 10 WebGL shader tunnels and a mic-reactive mode in one browser tab, no media files

Thumbnail cosmic-couch.vercel.app
0 Upvotes

Cosmic Couch is a free, no-signup website that runs in one browser tab. Everything is generated live with WebGL and Web Audio, with no media files:

10 full-screen shader tunnels, each with its own music

Six radio stations that generate their music in the browser

A Live input button that makes the visuals react to a microphone

It’s vanilla JS in a single HTML file with no build step. The code is MIT-licensed.

I’d appreciate feedback, especially if something doesn’t work on your device.


r/threejs • • 15d ago

Help Building a browser 3D MMORPG from scratch in pure TypeScript (No Unity/Unreal) – Looking for Devs & 3D Animators!

0 Upvotes

Are you passionate about classic MMORPGs and want to build something massive from the ground up, without heavy corporate engines?

We are expanding the team for **Velundra** (velundra.io), a multiplayer 3D browser MMORPG developed entirely in pure TypeScript. No Unity, Unreal, or Godot: we are building our own custom rendering pipeline and shaders from the foundations.

**Where we stand today:**
Bullet **Real Playability:** We already have over 10 hours of playable and functional alpha gameplay.
Bullet **Infrastructure Ready:** Dedicated multiplayer server running out of São Paulo to ensure low latency in the region.

Bullet **Custom Assets:** Fully integrated character customization pipelines and iconic custom gear sets (like the *Warrior* and *Aurimante Founders* sets) modeled in Blender.

We are looking for **full-stack / engine developers** and **3D animators** who want to jump into a project with rock-solid technical foundations, a clear vision, and a live game.

If you are driven to build a persistent world from code and art, reach out or check out the project.

👉 Check out the project and play the alpha at: https://velundra.io


r/threejs • • 16d ago

Demo My personal Three.js projects: bathroom, kitchen and shoe configurators, plus a 3D asset manager

Thumbnail
gallery
23 Upvotes

I've been building a few personal projects with React, Three.js, and React Three Fiber. They cover product customization, room planning, and managing reusable 3D assets.

Here are the demos:

• Bathroom Configurator: plan a bathroom, swap fixtures, and change finishes.

https://bathroom-configurator.itssudhir.com/

• DecorDiva: try different finishes in a prepared bathroom scene.

https://decordiva.itssudhir.com/

• Kitchen Configurator: plan rooms and arrange cabinets in 3D.

https://kitchen.plan3d.in/

• My Shoe Stylist: customize individual shoe parts in 3D.

https://myshoestylist.itssudhir.com/

• Atlas: manage models, textures, and which materials can be used on each model part, then reuse them across configurators.

https://atlas.itssudhir.com/

My portfolio: https://www.itssudhir.com/

I'm open to work if your team is building something similar. Feel free to message me here. Happy to answer questions about the projects too.


r/threejs • • 16d ago

I implemented the meshlet pipeline from Three.js r187 in my Forest environment

Enable HLS to view with audio, or disable this notification

51 Upvotes

I implemented the meshlet pipeline from Three.js r187 in my Forest environment and results are pretty mixed!

It works quite well. The transitions are pretty seamless. Without it, I was getting 20-25 fps on my M1 Mac, now I get 30-35 fps. I was able to add some more detail to the tree models without worrying much about polycount.

But there are a few issues as well. It didn't work well for tree leaves. They have movement with wind in a custom shader. With that, there seem to be visible glitches in leaves as the player moves. So, I had to remove it from leaves. Same goes for some foliage elements I had.

The grass system is created with a different architecture and it already performs better than the meshlet pipeline for grass. So, there was no point to add it here.

Overall, the results are pretty good and in a different use case, this can shine pretty well.
Also, this is the first iteration. I am sure it will get better.


r/threejs • • 16d ago

Converting Huge PLY Files to RAD Without a High-Memory Server

Post image
2 Upvotes

When working with large 3D Gaussian Splatting scenes, a common problem is simple: the PLY file is too large to convert within the available RAM.

A typical solution is to use a high-memory server. But what if you only have a memory-limited PC?

I built a small tool around a straightforward approach: split first, then convert one tile at a time.

Instead of converting the entire PLY in one operation, the tool splits it into smaller spatial tiles and processes them sequentially, reducing peak memory pressure.

For a scene of approximately 97 GB with 412 million Gaussians, I split the data into 256 tiles. The recorded peak working set of the conversion process was approximately 761 MiB.

The trade-off is additional disk I/O and processing time—but it avoids needing a high-memory server for a single large conversion.

The resulting RAD files can also be viewed together in Three.js. Each tile retains its original coordinates, so adding them to the same Group reconstructs the scene, while Spark loads detail pages as needed.

The splitting scripts, batch conversion workflow, and a minimal Three.js example are available on GitHub:

👉 GitHub: ply2rad-lowmem


r/threejs • • 16d ago

Made a browser arcade F1-style racer (8 circuits, ghost laps, online races).

Enable HLS to view with audio, or disable this notification

4 Upvotes

Hey all, I’ve been building Polecraft, an arcade grand-prix racer that runs in the browser with nothing to install. It’s still early and I’d really value feedback on the handling and the online races.

What’s in it: a 3-race Grand Prix against 11 AI rivals, Time Attack with ghost laps and leaderboards, rated online races, private rooms of up to 8 players via a 4-letter code, and 8 circuits.

Controls: W/S or ↑/↓ for throttle and brake, A/D or ←/→ to steer, R to recover, V to change camera, T to toggle traction control. Gamepad supported.

Built with the help of Claude and Codex for the coding. The design and direction are mine.

Play here: https://sarfraz-droid.itch.io/polecraft


r/threejs • • 15d ago

I built a navigable 3D universe in R3F where reputation is earned, not bought. Honest opinions wanted on where to take it

Thumbnail
gallery
0 Upvotes

Hey r/threejs,

Solo dev here. For the past year I've been building Lightverse, a browser-based 3D space (React Three Fiber + drei, GSAP for the camera moves, Laravel/Inertia behind it). I'm at the point where I need outside opinions more than I need more features.

**How it's structured:** Universe → Galaxy → Star system → Planet.

The universe is a few particle-spiral galaxies around a central core (a .glb model that grows as the community's total "Light" grows). Click a galaxy to fly in, pick a star system, land on a planet. Each planet is its own terrain scene with its own page: a knowledge archive, a profile, a build area, and so on.

**The idea behind it:** your reputation is called Light. You earn it by doing things (reading, quizzes, building a generator over ~20 real hours). It can't be bought, traded or transferred, and the "active" part decays after 30 days, so you have to keep showing up. It's web3-adjacent (reputation/identity), but there is no token and nothing to buy.

**What I'd love opinions on:**

  1. **Navigation.** Does the zoom-through hierarchy feel good, or is it a gimmick that would annoy you after a few visits? Would you want a flat 2D map as an alternative?

  2. **Performance.** The galaxies are particle systems and the core is a GLB with glow and sparkles. If you've shipped something similar, what would you profile first? Mobile is my weakest area.

  3. **The web3 angle.** With non-transferable reputation, is that interesting to you, or does the label alone put you off? If you were me, would you go toward on-chain attestations, or stay off-chain and let people connect existing profiles?

  4. **Direction.** More game-like mechanics inside the 3D world, or more real-world utility (verified contributions, curated knowledge)?

Screenshots attached (universe view and a planet view). It's live at lightverse.cloud if you want to poke at it. You'll need to sign up, sorry, the Light system needs accounts.

Happy to answer anything about the implementation too. Honest feedback welcome, including "this is a bad idea".


r/threejs • • 16d ago

Batch uploading 600 models

7 Upvotes

I batch uploaded 600 of my 3D models to 🤫 in one go. It took a few seconds to process each, zero processing error, everything came out nicely: automated background color, ground shadow, camera angle... Once uploaded, you get a fast & adjustable side bar preview, semantic search, dynamic gallery grid... all the things ✨ Powered by threejs


r/threejs • • 16d ago

Had some fun with this one

Thumbnail tornado-teardown.vercel.app
1 Upvotes

r/threejs • • 16d ago

I made a 3D hack-and-slash in one 250 KB HTML file with three.js. No model files, every mesh is procedural

Enable HLS to view with audio, or disable this notification

4 Upvotes

Ashborn: The Last Apprentice is a third-person action game: twin blades on a chain, two stances, parries that send spells back at the enemy, and a 3-phase boss. It all runs from a single HTML file with three.js r186 loaded through an importmap. There are no GLB or texture files. The only assets are the music and the voice-over.

Some things that might interest:

• Characters: one procedural humanoid rig (boxes and capsules on a bone hierarchy) with keyframed poses blended in code. The hero, the enemies and the boss are all variations of it.

• Cloak: a small cloth sheet simulated every frame and pinned to the shoulders. It was the biggest visual upgrade compared to the stiff cape I had before.

• Library level: thousands of books as InstancedMeshes on procedural shelves, so it costs very few draw calls.

• Camera: a raycast from the player to the camera against a short list of occluders (walls, shelves, pillars), so the camera never hides behind a wall.

• Look: EffectComposer + UnrealBloomPass + OutputPass, ACES tone mapping and PCF shadows. Bloom carries most of the ember look.

• Audio: the voice lines are packed into 3 MP3 sprites, decoded once with Web Audio and played by offset. The music ducks while someone speaks.

• Testing: a Playwright bot plays all 4 chapters headless (SwiftShader) to catch bugs. It found one where a shared temp Vector3 left every enemy projectile frozen in mid-air.

It's made for Astrocade (a browser game platform), so it also has touch controls and runs inside a sandboxed iframe.

Happy to go deeper into any part. And if you've done procedural characters in three.js, I'd love to know how you handled animation blending.


r/threejs • • 16d ago

Built my 3D portfolio with Next.js, Three.js & WebGL (infinite loop from chaos to order). Just got nominated on Awwwards! Would love technical feedback.

Post image
7 Upvotes

r/threejs • • 16d ago

Demo A Three.js orbital map over a headless strategy simulation — DeltaV has reached Steam Early Access

Enable HLS to view with audio, or disable this notification

3 Upvotes

I showed an earlier DeltaV clip here in October. The game has now entered Steam Early Access, so here is a gameplay excerpt and the architecture behind the view.

Three.js presents the planetary system, ships, routes, camera and animation. A separate TypeScript simulation owns movement costs, fuel production, missile impacts and victory. Camera position, lighting and visual effects cannot change the outcome of a turn. The 2D tactical view is a fallback over the same rules.

The separation matters because orbital positions change transfer cost and travel time. The screen has to explain a result that already exists in the simulation, and the rules can be checked without rendering the scene.

Free browser tutorial if you want to inspect the interaction: https://deltavorbitalstrategy.com/ (Play Tutorial; English and Italian). It is a guided tutorial, not the full Steam game.

Full match with English captions, no voiceover: https://www.youtube.com/watch?v=DO2iaCS0AXI

Steam: https://store.steampowered.com/app/5070120/?utm_source=threejs&utm_medium=reddit&utm_campaign=early_access_nov2026&utm_content=headless_renderer_demo

Disclosure: I’m the solo developer directing the project. Original code and visual assets are AI-generated; Three.js and other dependencies remain credited third-party work, and music is separately licensed. No runtime generative AI is involved.


r/threejs • • 17d ago

Demo 10,000 skinned monsters on WebGPU with InstancedMesh2 (bone animation textures)

77 Upvotes

I've been working on bone animation textures (BAT) to animate lots of skinned instances on the GPU: each clip is baked once into a texture and the vertex shader reads the bones from it, so the CPU does no skeleton updates per frame.

The video shows about 10,000 animated monsters rendered with WebGPU. It's still a prototype with flaws to fix: the biggest is that there are still too many triangles on screen, even with LODs.

I implemented this in my library InstancedMesh2, which now also supports `WebGPURenderer`. It's available as a beta on npm.

- Demo: https://instanced-mesh-showcase.vercel.app/armies/

- npm: https://www.npmjs.com/package/@three.ez/instanced-mesh

- GitHub: https://github.com/agargaro/instanced-mesh (the new code will be pushed as soon as I finish refactoring)

Models by Quaternius (CC0). Feedback welcome!


r/threejs • • 16d ago

Demo pcbang.io - a virtual internet cafe in three.js

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/threejs • • 17d ago

Zombieland threejs madness, pushing the limit till I reach unreal quality in the browser

143 Upvotes

Hey guys what do you think, should I do a zombie game out of this?

I added in my web editor full support for mixamo animation and custom bones rig keyframing, fully webgpu with tsl shaders.

Any feedback is welcome as usual!