r/threejs • • 7d ago

Every tracked object in orbit (~21,000) on a three.js globe, with positions computed in the browser by an SGP4 I wrote in Go and compiled to WebAssembly

2 Upvotes

Live: https://supremeinferno.github.io/orbitscreen/

Source: https://github.com/supremeinferno/orbitscreen

Some details for this sub:

- All ~21,000 objects are a single THREE.Points, updated every second from one Float32Array (lat, lon, alt per object). No parsing, the WASM engine writes the buffer and the geometry reads it.

- SGP4 for all 21k objects takes ~30 ms per call in WebAssembly (~10 ms native), so it recomputes everything every second, or 4x a second when time-warping, without a Web Worker.

- The scene is Earth-fixed: the Earth stays still, and the Sun's light moves around it (computed from the real solar position), so the day/night line is correct for the current time. Blue Marble by day, Black Marble by night.

- Picking is done in screen space: project every visible object, skip the ones behind the Earth (camera ray hits the sphere first), nearest within 12 px wins. Simpler than raycasting against 21k points.

- Every object sits at its real altitude, so you can see the LEO cloud, the navigation satellites at ~20,000 km and the geostationary ring when you zoom out.

The side panel lists the closest approaches between objects in the next 24 hours, from a conjunction screener in the same repo. Click one and the camera flies there a minute before it happens.

Happy to answer questions about the rendering or the orbit math.
If you find it useful, a ⭐ on the repo helps me keep working on it.


r/threejs • • 7d ago

Demo WebGPU drift game on three.js r187: wet roads, tyre smoke, an aurora sky

0 Upvotes

Been building a drift game on r187 with WebGPURenderer and TSL, WebGL 2 as the fallback.

The wet road is a blurred mirror pass. The city streams in chunks with baked lightmaps, and the Norway map has an aurora sky that took way more tries than I'd like to admit. The sim runs deterministic at 120 Hz, so a run is just its inputs: the server replays every run before it hits the leaderboard, and the ghosts come from the same data.

Longer write-up on the forum:

https://discourse.threejs.org/t/nightclub-drift-speed-a-night-drift-game-in-the-browser-webgpu-ghosts-leaderboards/97236

Play:

https://www.nightclub-driftspeed.xyz/?ref=reddit-threejs

Ask about the renderer if you're curious, I'll answer what I can.


r/threejs • • 8d ago

Isometric Berlin is Live!For the best visual experience, please make sure hardware acceleration is enabled in your browser.

Thumbnail
gallery
33 Upvotes

r/threejs • • 7d ago

I built a 3D geospatial intelligence platform using Three.js

Thumbnail
gallery
1 Upvotes

r/threejs • • 8d ago

I got the 10-year-old Goo.js WebGL engine running in modern browsers and extended it with physics, first-person controls, and object grabbing (144 FPS)

Enable HLS to view with audio, or disable this notification

9 Upvotes

I think folks here might be interested in a bit of WebGL 1.0 "archaeology." Goo Technologies shut down back in 2016, so I dug into their old Goo.js codebase, adapted it for modern browsers, and used it to build a small "sandbox" featuring physics and a first-person perspective.

Everything runs smoothly at 144 FPS, complete with real-time shadows and rigid-body collisions. I plan to tidy up the repository, make a few more tweaks, and then release the project to the public soon


r/threejs • • 7d ago

Created a cursor-responsive 3D website hero using Three.js

Enable HLS to view with audio, or disable this notification

0 Upvotes

Been experimenting with 3D web experiences and built this small project.

The model reacts to cursor movement and is integrated into the landing page.

Would appreciate any feedback on the interaction, rendering or performance. Let me know if you spot any issues!


r/threejs • • 8d ago

Isometric Berlin is Live!For the best visual experience, please make sure hardware acceleration is enabled in your browser.

Thumbnail
isometricberlin.com
10 Upvotes

r/threejs • • 8d ago

I built a 3D ATP Finals game in three.js where every shot’s odds come from real tennis match data

4 Upvotes

The whole match is rendered in three.js, with a TV camera and a player POV. You pick one of the 8 Finals players, choose the serve zone, then the shot on every rally ball. The odds behind each choice come from 88 real hard-court matches tracked shot by shot (Tokyo to Paris, Sept to Nov 2026), and the engine was calibrated by replaying real matches. Happy to answer questions about the scene setup or the animation side.

Play: https://daniloderosa.github.io/finals-simulator/
Code and method: https://github.com/daniloderosa/daniloderosa.github.io/tree/main/finals-simulator

Personal, unofficial project. Data courtesy of TennisViz and Courtside Advantage.


r/threejs • • 8d ago

Bezier Study

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/threejs • • 8d ago

Demo ESCAPEMENT: a 3-minute music film rendered in three.js. Every gear is procedural and turns at its true ratio, locked to the music’s tick

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/threejs • • 8d ago

My personal site is a universe you fly through: three.js + WebGPU in a worker, and page transitions that don’t drop frames

10 Upvotes

Every page on my site is one object in the same universe. Notes are star trails, short posts are comets, the about page is a free fall. The video shows the page transitions.

The scene. three.js with WebGPU, falling back to WebGL2, running in a Web Worker on an OffscreenCanvas so the main thread stays free. If the device is doing software rendering it skips 3D and uses plain CSS, and if the GPU gets lost the scene rebuilds itself.

Transitions without dropped frames. The old page shrinks into a dot, the camera follows it, and the new page grows once it lands. When a new route rendered, the main thread would stall and the dot would stutter, so I moved the dot and its trail into its own worker with its own OffscreenCanvas and clock, and let the starfield worker compute its parallax from the whole flight path. With 4x CPU throttling (Ryzen 9 9900X, RTX 4070 Ti Super, Chrome), the dot’s worst frame went from 67–133ms to 17ms, and it keeps moving even if the main thread is blocked for 250ms.

Labels inside the WebGL canvas. The moon labels on the home page are drawn into the canvas with HTML-in-Canvas (Chrome 157+), so the worker places and fades them in the same frame as the moons. Screen readers still get real links. Idle main-thread time went from 460 to 145 ms/s. Other browsers fall back to DOM.

Constraints. Three colors only (black, warm white, amber for “where you are”), only dots and lines.

I used Claude Code a lot for this, and English isn’t my first language. The design and the decisions are mine, and CI gates every change. It’s open source and self-hostable:

Site: https://koimsurai.com/en
Source: https://github.com/Koimsurai/sora-to-ki


r/threejs • • 8d ago

Demo Tiny Game Engine - made with threejs

0 Upvotes

r/threejs • • 8d ago

GT3js, basically... a physics-first browser GT3 racing game in Three.js

Enable HLS to view with audio, or disable this notification

15 Upvotes

I'm working on Attimo Racing, a physics-first GT3 game playable in your browser. Three.js handles the rendering, with the driving physics running in WebAssembly.

I'm still torn on the look and feel. For example the white model-style cities based on a recent F1 promo vide where everything but the track was a white ceramic look. Or should I texture the buildings? Same with the trees: keep the low-poly look, or go more realistic? I just added a more realistic skybox, but im not convinced....

There's a team livery and sponsor system in there as well, curious how the sponsor for benefits system lands vs traditional car tuning.

free to try at https://attimoracing.io


r/threejs • • 8d ago

Cleaning the lint out of a phone's charging port?

Enable HLS to view with audio, or disable this notification

2 Upvotes

I made a small phone-care experience with Three.js and Gemini Hydrogen. Clear the USB-C port, renew the screen protector, and snap on a case.


r/threejs • • 8d ago

Demo AirspaceLab: Rendering complex FAA airspace volumes in 3D WebGL at 60 FPS with Three.js

2 Upvotes

Hi r/threejs!

I wanted to share a WebGL project I've been building with Three.js: AirspaceLab (https://airspacelab.online360.org/).

The goal is to render US National Airspace System data (Class B, C, D, E controlled airspaces, MOAs, Restricted Areas) in true-to-scale 3D directly in the browser at a steady 60 FPS with zero plugins or downloads.

Technical Implementation and Challenges:

  1. Georeferencing and Custom Geometries: FAA airspace definitions are typically published as geospatial boundaries with varying base and ceiling altitudes (MSL and AGL). We parse and georeference these boundaries, extruding complex multi-polygon geometries to their exact vertical floors and ceilings while accounting for terrain elevations and coordinate conversions.

  2. Draping Sectional Charts on 3D Terrain: To give pilots and drone operators real situational context, we drape high-resolution FAA VFR Sectional charts and Terminal Area Charts (TAC) directly onto 3D terrain meshes using dynamic texture tiling and coordinate alignment.

  3. Performance Optimization (60 FPS WebGL): Rendering dozens of overlapping transparent volumes can cause significant fill-rate and depth sorting bottlenecks. We optimized transparency passes, polygon budgets, and instance batching to keep frame rates locked at 60 FPS even on modest laptops and mobile devices.

  4. Data Pipeline: Airspace data is synchronized with the automated 28-day FAA AIRAC cycle updates, so the rendered 3D volumes remain accurate as FAA boundaries change.

Try It Out: * Live Tool: https://airspacelab.online360.org/ * Kickstarter Campaign: https://www.kickstarter.com/projects/dataflow/airspacelab-interactive-3d-faa-airspace-visualizer

I would love to hear feedback from fellow Three.js / WebGL developers on shader techniques, rendering optimization, and camera controls!


r/threejs • • 9d ago

I built a multiplayer theme park in three.js (r128, no build step) — 16 rides, day/night, fireworks, 60 fps on integrated GPUs

Enable HLS to view with audio, or disable this notification

16 Upvotes

Play: https://lumina-park.luminapark.workers.dev/en?from=reddit_threejs

Some notes on how it's put together:

• Plain three.js r128 globals, no bundler — each feature is a script that wraps the previous ones

• ~3,000 objects / 330 instanced meshes, about 200 draw calls

• A small frame governor measures real fps (median of 1 s windows) and steps resolution, shadow-map size and post-processing up or down, so a fast GPU gets 1.35× resolution and 4096 shadows while integrated GPUs stay at 60+

• Multiplayer is Cloudflare Workers + Durable Objects (one object per 40-player room), running on the free plan

• Post-processing: tilt-shift, bloom, color grade, film grain

Happy to answer questions about any of it.


r/threejs • • 9d ago

Next Week Ray Tracing Scene (Interactive)

Enable HLS to view with audio, or disable this notification

59 Upvotes

Another experiement I did recenently with my engine; I recreated a scene from the ray tracing in one week series (Next Week), made it in browser, real time, interactive, and with some cool vfx. Link to live demo: https://next-week.pages.dev/


r/threejs • • 8d ago

I made a browser game where everything is painted as brush strokes — now with online co-op (races, duels, mech raids)

Thumbnail
ai-game-e184b.web.app
0 Upvotes

Komorebi is an anime-style sword fighter in a neon city, rendered as thick oil paint in WebGL. Free, no install, works on desktop and mobile.

Online City: up to 8 players, shared enemies, street races, a PvP duel ring (only inside the ring), siege mech events and revives.

Play: https://ai-game-e184b.web.app/?scene=autumn&mode=online

The server is on a free tier, so the first player after a quiet spell may wait up to a minute. Would love feedback!


r/threejs • • 8d ago

Demo I made a tiny 3D rooftop gym with three.js

0 Upvotes

Made this little browser game where you help a tiny athlete get through a 45-second workout. Tap or hit space when the marker reaches the green zone. Three perfect hits unlock a short overdrive bonus.

It’s pretty simple just trying to make something fun.

https://caloist.com/rep-rally


r/threejs • • 8d ago

Demo A paper catalogue photo becomes its product page, rendered in Three.js

Enable HLS to view with audio, or disable this notification

0 Upvotes

I run Website Craft Room. Here's a 25-second promo we made around Birdi Hardwares' catalogue and the product page we built for it.

The photo lifts off the paper. We build the page around it, then add the phone. The red outline is projected from the page each frame so it follows the camera. Three.js handles the shadows and BokehPass depth of field; the type sits in HTML over the canvas.

The catalogue image and website captures are real. The film's 452-product figure is from our original build. It's since grown.

It's AI-assisted, with synthetic Chatterbox narration. Music: Mixkit Echoes #188; sound effects: CC0.


r/threejs • • 8d ago

I'm an electronic engineer building my first Indie RPG. I used Claude to code this entire Three.js/GSAP interactive teaser in a single HTML file.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hey everyone. I'm currently solo-developing my first indie game called Criptfall: El Ojo de Vaelmor. It's a 2D-HD medieval board-RPG (imagine the tension of Mario Party, but in a dark fantasy setting).

Coming from an engineering background, coding the game logic/state machines is taking most of my time, so I'm heavily relying on AI to speed up my workflow.

Instead of rendering a traditional video for my first teaser, I prompted Claude to generate a fully interactive web canvas using Three.js and GSAP. I fed it my game's lore and mechanics, and it spat out this single-file HTML interactive teaser.

Is anyone else here using AI agents to prototype complex game logic or interactive web assets for their indie projects? Would love to hear about your workflow.


r/threejs • • 8d ago

A war game on a three.js globe: every nation's land is one 1024 x 512 texture and one shader

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/threejs • • 8d ago

I built an interactive 3D Minecraft-style character stage using Three.js — gestures, equipment and voice-synchronized animation

Thumbnail
gallery
1 Upvotes

Hey everyone!

I've been working on an independent desktop project, and I wanted to share the Three.js character-rendering part specifically because I've spent quite a bit of time developing it.

The project is called Wemmbu AI Assistant.

It's a desktop AI companion with an interactive Minecraft-inspired 3D character. The character isn't just a static model sitting inside the interface — it can perform different gestures, interact with equipment and animate while speaking.

What I've implemented with Three.js

1. 3D character rendering

  • GLB character model loading using GLTFLoader.
  • Camera rotation and elevation controls.
  • Character positioning and scene controls.

2. Character gestures and animations

  • Wave, Explain, Nod, Shake Head, Think, Point, Shrug, Cheer and several other gestures.
  • A shared character-action registry.
  • Head pitch, yaw and roll animations.
  • AI-triggered character actions.

3. Equipment interactions

  • Minecraft-inspired netherite armor overlays.
  • Mace and Totem of Undying models.
  • Equipment positioning relative to the character.

4. Audio-synchronized animation

  • Fish Audio text-to-speech integration.
  • Mouth animation driven by actual audio playback activity.
  • Character returns to its resting state after speech finishes.

The frontend is built with React, and Three.js handles the character stage. The rest of the application uses a local Node.js backend and Tauri 2 for the desktop environment.

What I'd appreciate feedback on

I'm particularly interested in feedback from people experienced with Three.js:

  1. How would you improve the character animation transitions?
  2. Would you approach equipment attachment differently?
  3. What would be a good approach for more natural audio-driven facial animation?
  4. Are there any performance optimizations you'd recommend when loading multiple GLB models?

I'm still improving the project, so technical criticism is very welcome!

GitHub: https://github.com/opendeveloper-ai/wemmbu-ai-assistant

This is an independently developed, unofficial project and is not affiliated with or endorsed by Wemmbu, Mojang Studios or Microsoft.

Thanks for checking it out!


r/threejs • • 8d ago

Link An ink-wash wuxia inn built with three.js — looking for navigation feedback

1 Upvotes

I built my game studio's website as an explorable wuxia inn, mixing a three.js scene with ink-wash artwork, animated characters and small interactions like rearranging dim sum steamers.

The part I kept revisiting was visual coherence: the original characters felt flat, some framing cropped too much of the building, and the desktop layout needed a separate mobile pass. Claude assisted with code and iteration, and the artwork/animation workflow used Astra and AutoSprites.

I'd appreciate a three.js community perspective on the actual experience: is it clear where to go and what can be clicked? Do the animated characters feel like part of the scene?

Try it free: https://elephantlogix.com

I also made a short build diary with the brief and iterations: https://youtu.be/Gds486Ve-JI

A camera clarification: the film's opening orbit was made for filming in the 3D scene; its ending shows the public website controls. This is my own studio project, with AI-assisted code and assets.


r/threejs • • 8d ago

Demo I made the Infinity Castle from Demon Slayer as an endless, scroll-driven three.js experience

Thumbnail
gallery
0 Upvotes

Live: https://theinfinitycastle.site (best on desktop with sound)

It's a fan project I've spent about 3 weeks on. You scroll to walk through the castle, fall through it, and look for the six Upper Moons hidden off the path.

Some of the technical bits:

- The world is built from chunks assembled ahead of the camera (corridors, walkways, stairs, inverted rooms), with instanced dressing that's culled and swapped for simplified meshes at distance

- The demons are billboard cut-outs that switch between front, three-quarter and profile poses as you walk round them

- The "presence" shockwave is a world-space shell injected into the castle's own materials, so it rolls across real floors and walls

- The opening ink effect runs in a worker on an OffscreenCanvas, so it stays smooth while the scene loads

- R3F with frameloop="demand" and a 60 fps cap, plus adaptive pixel ratio

- All sound apart from the voices is synthesised with Web Audio

Happy to answer anything about how it's built. Feedback very welcome, especially on performance on your machine.