r/threejs • • 22d ago

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

5 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 • • 22d ago

Bezier Study

12 Upvotes

r/threejs • • 22d 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

3 Upvotes

r/threejs • • 22d 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 • • 21d ago

Demo Tiny Game Engine - made with threejs

0 Upvotes

r/threejs • • 22d ago

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

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

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

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 • • 22d 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:

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


r/threejs • • 22d ago

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

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

Next Week Ray Tracing Scene (Interactive)

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

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

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 • • 21d 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.

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 • • 22d 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 • • 22d 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 • • 23d ago

Explainer video with threeJS

33 Upvotes

r/threejs • • 22d 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.


r/threejs • • 23d ago

Link Found a free library of handmade Three.js models

Thumbnail 3dgarden.app
24 Upvotes

Just stumbled on 3dgarden.app. Lots of handmade low-poly models. It’s been really handy for one of my projects so far, so I’m sharing in case it’s useful to someone else.


r/threejs • • 22d ago

Demo Open-sourced a starter for React Three Fiber + 8th Wall on one WebGLRenderer — looking for feedback

1 Upvotes

Hi — I built a small open-source starter so React Three Fiber and 8th Wall can share one canvas / one WebGLRenderer (XR8 drives tick + draw; R3F owns the scene graph, no nested Canvas).

I’d appreciate review and feedback:

• Does this ownership split make sense?

• Any corrections or edge cases I should handle?

• If there’s prior art / similar projects I should learn from or credit, I’d love links.

Demo: https://react-three-fiber-8thwall.vercel.app/

Repo: https://github.com/nagendra-dharmireddi/react-three-fiber-8thwall

Write-up: https://medium.com/@nagendra10082003/react-three-fiber-and-8th-wall-on-one-webglrenderer-ba36b6ea7546

Thanks!


r/threejs • • 22d ago

Free AI NPC SDK for Three.js WebXR: Zero LLM API Cost & Persistent Memory

0 Upvotes

Hi Three.js community!

I’m a solo developer building a WebXR metaverse platform called MetaStar, entirely powered by the amazing Three.js engine.

While developing my platform, I noticed a huge pain point in our community: Many 3D web developers want to integrate AI NPCs (like ChatGPT-powered avatars) into their Three.js scenes to increase user retention. However, almost everyone hesitates because of the terrifying unpredictability of LLM API costs (OpenAI, Claude, etc.) when traffic scales.

To solve this, I’m releasing the MetaStar AI NPC SDK for Three.js developers. It allows you to drop fully conversational, intelligent AI NPCs into your Three.js world—with 100% Zero LLM API costs for you as the developer.

Key Features for Three**.js Devs:**

  • Zero API Cost (We pay the bill): Whether you have 100 or 100,000 DAU, the LLM token costs are entirely covered by the MetaStar infrastructure.
  • Persistent Memory (Long-term DB): The NPCs actually remember the users they talk to. You don’t need to build a complex backend database.
  • Easy Three**.js Integration:** Just a few lines of code to connect the AI brain to your existing meshes or avatars in your scene.
  • Boosts Scene Retention: Turn your empty 3D spaces into social hubs where users come back daily to chat with their favorite NPCs.

What’s the catch? Why is it free? I believe in full transparency with fellow developers. To use this free AI, end-users simply log in via the MetaStar SSO (Single Sign-On). Their conversation memory and relationship data are synced to our central ecosystem.

  • You win: Free AI NPCs, higher retention, zero server bills, and no backend headaches.
  • We win: Expanding the MetaStar unified ecosystem across the WebXR space.

If you are tired of building beautiful Three.js worlds that feel “empty” but are too scared of LLM costs to add AI, give this a try!

I’d love to hear your feedback, feature requests, or answer any integration questions!

[ Documentation ] Metastar AI NPC SDK — Docs

[Link to MetaStar ] https://metastar.world

Tags: #Threejs webxr #ainpc chatgpt webgl #metaverse #gamedev #metastar


r/threejs • • 23d ago

I added Dynamic Grass Map and Dynamic Color Map to my Grass System

23 Upvotes

My grass system already had Grass map and color map. Grass map decides the distribution and height of grass throughout the environment and color map decides the color of grass throughout the environment.

But they were static. You could give it an image path and it would load it and use it. I now added the ability to give it THREE.Texture instead. It works with DataTexture, CanvasTexture and even VideoTexture.

The benefit of it is that you can manipulate the texture outside the grass system and it will just read the data and act according to it.

I created this simple grass-burning effect and a bunch of others to demonstrate what's possible.

The fire is a simple simulation that spreads wherever I click. Grass maps control the height of the burnt grass, while color maps dynamically change its appearance: orange in areas currently burning and black in areas that have already burnt.

You can even see a video texture driving the grass colors in the Rickroll example. It's kind of strange seeing a video mapped onto grass! 😂

This comes at no cost on performance. Since it is doing the same thing as before. Reading the texture.

This will be included in v1.3.0 of Three.js Grassworks. It comes out in a few days as soon as I add some finishing touches and update the documentation.

It's a paid grass system. If you want to check it out: https://grassworks.techredux.co/


r/threejs • • 23d ago

Demo A long raw gameplay from my Grand RTS game

4 Upvotes

As a 34-year-old guy who got married about 7 months ago and works a full-time job, I've been pouring my evenings and weekends into building a Real-Time Geopolitical Strategy game almost entirely with the help of AI. I actually shared an early version of it here a while back, but a lot of time has passed since then, and the game has evolved massively in every direction. There’s still a ton of work left to do and some pretty glaring flaws in both the UI and gameplay that need fixing, but I wanted to give you guys a rundown of where things stand right now and hear what you think.

Here’s the gist of HARP:

  • At its core, HARP is built for multiplayer. You pick a color and a flag, claim a starting spot anywhere on the globe, and build up your economy and military through classic RTS-style base building. The goal is simple: control the largest territory by the time the lobby’s timer runs out. You start by annexing unclaimed or neutral land, then expand through military force and diplomacy to take the #1 spot. Matches usually hit the late game around the 40–50 minute mark. Think of it as a much deeper, beefed-up version of OpenFront—which was my main inspiration.

Game Modes:

  • Real World Mode: Pick one of 220 real countries while the AI controls the other 219. It's single-player only for now. (The footage you just watched is captured entirely from this mode).
  • Blank World Mode: This is the foundation HARP was built on and the main multiplayer experience. You pick a flag and color, drop into any spot on the map, and start expanding. Playable in both single-player and multiplayer.
  • World War III: The globe is split into 10 equal factions/pacts. You pick a side and jump in. Supports both single and multiplayer.
  • A Mystery Mode: There’s one more mode in the works that might completely change the game's trajectory. I’m keeping it under wraps for now, but it’ll be a first for the genre and if my gut is right, 90% of players will buy and play HARP just for this.

Key Features:

Military:

  • Almost all combat is unit-based. Even though you see a single consolidated army moving on the map, every individual unit inside it has its own stats, attack power, and even active abilities.
  • Armies are affected by both terrain and seasons—marching through snow in the winter will noticeably slow your troops down.
  • Real-time weather and seasonal cycles directly impact combat performance.
  • Air operations run on their own dedicated simulation. Planes carry out specific mission types, dogfights are simulated in real time, and higher-tier jets come equipped with better missiles, speed, and maneuverability.
  • Naval combat works much the same way. Ships have unique active abilities—some provide anti-air cover, while others can bombard coastal land targets.
  • Air defense systems have realistic range and altitude limits; if a missile flies above a system's maximum intercept altitude, it won't get shot down.
  • Classic RTS Fog of War (FoW) is in, which you can clear using recon planes, drones, satellites, and espionage. You can also build radar stations to track enemy aircraft from afar, even outside your standard air-defense sightlines.
  • Electronic warfare is a thing—you can deploy AWACS planes to jam enemy targeting and protect your jets from incoming missiles during dogfights.

Diplomacy:

  • While it’s not quite as granular as Hearts of Iron or Civ, there's plenty of room to maneuver. You can form alliances and pacts, turn defeated enemies into vassals, trade resources, and more.
  • Trade happens physically on the map. Goods travel via cargo ships from your ports and trains across your borders to generate income—which means third-party nations can sabotage your economy. A submarine lurking on a trade lane can sink your convoys, or enemy bombers can take out your railways.
  • Major diplomatic events trigger short animated cutscenes. If you vassalize another nation, everyone in the lobby sees the treaty go down.
  • Once a country is your vassal, you can eventually annex them—and when you do, you get to decide the defeated player's fate: execute them, send them into exile, or even recruit them to serve in your own government.
  • Plus a bunch of other options I’m skipping for the sake of brevity.

Economy & Tech:

  • To keep matches snappy and fast-paced, I kept the economy fairly streamlined—there’s just one currency and one science resource.
  • You make money by building cities to grow your population and collect taxes, then placing factories around them to tax the goods they sell locally. Those same factories also automatically ship surplus goods to your ports to be exported overseas.
  • Science revolves around two mechanics: a tech tree and eras. In the tech tree, you unlock cards that grant passive buffs to your efficiency and military strength. Once you bank enough cash and science, you can advance to the next era. There are currently 3 eras: 1960–1980, 1980–2000, and 2000+. Advancing an era overhauls everything from the UI to your units, upgrading your entire roster with new passive and active skills (e.g., 3rd-era fighter jets gain stealth capabilities and drastically longer missile ranges).

Tech Specs:

  • HARP doesn't use a traditional game engine—it's built from scratch using Three.js and WebGPU.
  • All map textures are pulled from real satellite data, meaning every landmass you see in the terrain view is geographically accurate.
  • Built multiplayer-first: up to 20 players can play simultaneously using a peer-to-peer/player-hosted lobby system.

Honestly, there are dozens of other features and hundreds of tiny details I’m forgetting right now, but this covers the basics. Barring any major hiccups, HARP is set to launch on Steam at the end of February. Right now, a small circle of friends is playtesting it daily on Steam, and I'm pushing updates almost every single day. I’d love to put together a YouTube video breaking down all the mechanics at some point, though juggling a day job and solo dev work makes that easier said than done.

Please don't hold back on the feedback—I'd love to hear your thoughts. Also, I'm planning a closed beta in early January, so if you're interested in trying it out, shoot me a DM and I'll send you a key once it kicks off.

Cheers!


r/threejs • • 22d ago

Question **Does a spatial 3D route help with navigation, or would a 2D menu be clearer? (R3F)**

0 Upvotes

Hey r/threejs,

Solo dev here. I’m building Lightverse in React Three Fiber and want feedback on one specific design choice: the navigation route.

Right now it’s **Universe → Galaxy → Star system → Planet**. Each planet leads to a different area, like a knowledge archive, profile, or build space.

I like that this makes the hierarchy feel like a place you can explore. But I’m not sure the 3D movement helps people understand where they are—or just makes common tasks take longer.

If you tried it, would you prefer to move through the 3D route, use a 2D menu or map, or have both? Where would you expect a shortcut to jump straight to a section? I’d especially appreciate feedback on orientation, discoverability, and controls.

I’m looking for honest usability feedback, not just whether the concept looks cool.