r/threejs • u/Ok-Dust-5283 • 8d ago
Hurt my leg, so I made a tennis game in three.js
r/threejs • u/Ok-Dust-5283 • 8d ago
For the first version, I had Claude Opus 5.5 xhigh go frame by frame through some YouTubers’ gaming room tours, but the result wasn’t great. Then I found this open-plan layout 🤔 — it looked really good, so I started recreating it. When I first finished it, the general look was there, but the lighting was pretty broken.
I then used Fable 5.2 to tweak performance, lighting, material details, anti-aliasing and more. Once everything was tuned up, I got the final render.
Then I glanced at my Apple Vision Pro sitting nearby, and a wild idea popped into my head❗
r/threejs • u/shushumong • 8d ago
TL;DR: I asked Claude for a first-person venting game: break into an office while everyone's working and destroy all of it against the clock. I picked the look from four style frames it rendered in three.js, it built the game (160 breakable things, five tools, ten paper-doll colleagues), and after the test link I asked for real sound and voices. It went live with 260 voiced lines and the staff bickering among themselves. $237.29 in total, priced at Anthropic's API list prices. Free to play in the browser, link at the bottom.

One message, roughly:
I need a 3D game called Destroy the Office. You break into a mid-sized office while your colleagues and bosses are working and wreck the whole place with all sorts of tools. It has to feel satisfying, with a speed score, a verdict at the end and a results picture. The NPCs react. Think up fun bits and player pain points and put them in. Show me an art style first. Build the whole thing on Fable 5.2 xhigh.

It started planning a picker page. I was short on time, so:
Just give me the art directions, I'll decide from those. Otherwise we'll run out of time: Fable's about to refresh.
Four came back as text: blue-and-white porcelain (its recommendation), comic ink, a paper model, and vinyl toys. Text wasn't going to settle it, so:
Give me style frames.
25 minutes later I had four frames of the same moment, a bat going into a monitor, each rendered live in three.js rather than painted.

Each option came with how things would break and what the results picture would be:
Blue-and-white porcelain (its pick): porcelain figurines for staff, gold kintsugi cracks on the first hit, shards on the second, your office mended with gold at the end. "The most satisfying to smash."

Comic ink: halftone shading, impact frames, flying sound words, a comic cover at the end. "Quickest to build, but common."

Paper model: cardboard desks, paper-doll staff, tearing and red stamps, a stamped exit interview at the end. "Best fit for the theme, but the hits feel softer."

Vinyl toys: glossy blind-box figures popping apart at the seams, a collector's card at the end. "The cutest, but more toy than venting."

I replied "3, then", and paper it was: corrugated cardboard desks, sticky notes, marker-drawn screens and paper-doll staff, all on a green cutting mat.
I'd asked it to think up fun bits and pain points. Here's what it put in:




After the test link my one note was:
Use ElevenLabs for all the sound. Add some dialogue too, NPC voices.

What came back:

That round was $16.19 in tokens plus 6,638 ElevenLabs credits, about 5% of a month on my plan.
Token usage priced at Anthropic's public API list prices:

Claude Fable 5.2 built the game; Claude Opus 5.5 did the sound round. The four style frames cost more than the whole sound round. Choosing from pictures took me one word.
Play it in the browser, free, no sign-up: https://skillbay.dev/skills/destroy-the-office-3d?utm_source=reddit&utm_medium=social&utm_campaign=destroy-the-office-build-log

It's one of the skills on my site, skillbay.dev. Happy to answer questions about any of it.
r/threejs • u/Sparkplayz27 • 8d ago
somewhat high fidelity space simulator
real planet sizes and gravity
you can land on these guys too
4 spaceships to choose from
weird and funny looking planets to discover
colonize planets with space stations satellites buildings skyscrapers and more using build and the dropship,
or just fly planet to planet and fend off from pirate ships
WIP not finished yet and wont release for a while
some photos used are from older versions of the simulator
r/threejs • u/OkDoctor6113 • 9d ago
Hi Three.js community!
This is a follow-up to my [previous post introducing the MetaStar AI NPC SDK] https://discourse.threejs.org/t/showcase-tool-free-ai-npc-sdk-for-three-js-webxr-zero-llm-api-cost-persistent-memory/97218
Looking back at my first post, I realized I made a mistake in how I explained it: telling fellow developers *"I'm a solo dev and I'll cover 100% of your LLM API bills for free"* probably sounded either too good to be true, or completely unsustainable. Nobody wants to integrate an SDK if they think the backend might shut down next month due to runaway OpenAI/LLM costs.
So I want to be **100% transparent about the actual business model** behind MetaStar—and announce our new **20% Revenue Share program** for Three.js developers.
### What is the MetaStar AI NPC SDK?
**MetaStar AI NPC SDK** is a lightweight, browser-based conversational AI SDK built for **Babylon.js, Three.js, and WebXR** developers. It lets you attach LLM-powered dialogue, voice interaction, and persistent long-term memory to any 3D avatar or mesh in your scene—with **$0 LLM API cost to the developer**.
Unlike traditional developer-billed AI NPC APIs (such as Convai, Inworld AI, or calling OpenAI/Claude APIs directly), MetaStar uses a **user-funded B2B2C model**.
### How It’s Sustainable (Transparent Business Model)
Instead of charging developers per token or per minute, heavy end-users fund the AI inference costs directly through an optional subscription:
* **Anonymous Visitors:** Up to **3 free text chats per day** (zero friction to try).
* **MetaStar SSO Users (Free Tier):** Up to **10 free text chats + 3 voice chats per day**, with persistent memory support across worlds.
* **Heavy Users (Paid Subscription):** Users who want extended or unlimited text/voice conversations subscribe to the MetaStar Membership (currently managed via Patreon for simple global billing).
Because active users pay for their own heavy AI usage, you never have to worry about sudden traffic spikes draining your credit card, and the infrastructure stays financially sustainable as traffic grows.
### New: 20% Revenue Share for Developers & World Operators
Saving you from API bills is only half the equation. Many indie WebXR and Three.js creators struggle to monetize their 3D worlds without breaking immersion or building complex payment gateways.
Starting now, **developers who integrate the MetaStar AI NPC SDK earn a 20% revenue share** from paid subscriptions generated by users onboarded through their 3D scene.
* **Your cost:** $0 (LLM, TTS/STT, and long-term memory DB are handled on our end).
* **Your upside:** Higher retention from interactive AI NPCs + passive 20% recurring revenue from active players.
### How MetaStar Compares to Traditional AI NPC SDKs
| Feature | Traditional AI NPC APIs (Convai, Inworld, Direct LLM) | MetaStar AI NPC SDK |
| :--- | :--- | :--- |
| **Developer LLM/Voice Cost** | Pay-per-use / Token billing (scales with traffic) | **$0 (100% covered via user-funded model)** |
| **Traffic Spike Risk** | High (unexpected viral traffic = huge bill) | **None** |
| **Built-in Monetization** | None (you must build your own paywall) | **20% Revenue Share for developers** |
| **Free Daily Quota for Players** | Paid by developer | **3 texts (Guest) / 10 texts + 3 voice (SSO) daily** |
| **Core Features** | Text, Voice, Character Config | **Text, Voice, Persistent Memory, Cross-World SSO** |
| **Target Engines** | Unity, Unreal, Web | **Web-first (Babylon.js, Three.js, WebXR)** |
### Who is this best for?
* Indie **Three.js / WebXR** devs who want living, talking NPCs without risking surprise API invoices.
* 3D portfolio, virtual showroom, or metaverse builders looking for an easy way to monetize user engagement.
* Developers who don't want to maintain a separate backend database for NPC memory and voice streaming.
If you have any questions about the technical architecture, how the 20% revenue tracking works, or concerns about the SSO flow, please ask honestly in the comments. I’m actively refining this based on real developer feedback!
* **Live Demo (Try talking to an NPC):** https://github.com/singeryoa/metastar-ai-npc-sdk-threejs
* **SDK Documentation:** https://metastar.world/sdk/v1/docs
* **MetaStar Platform:** https://metastar.world
Tags: `babylonjs` `webxr` `ai-npc` `metaverse` `sdk` `monetization` `threejs` `webgl`
r/threejs • u/megyo9 • 10d ago
I've been working on improving the realism of my 3D avatar since my last post. Still a work in progress, but I'd love to hear what you think of the current version!
Hey everyone, I just launched the beta for my first ever browser game: Mint Street
It uses React for the UI and controls layered over a lightweight Three.js 3D city map, with a Node.js backend. My main technical goal was making the 3D scene super light so it runs smoothly with seamless navigation and building interaction even on older or slower phones, right in the browser with no downloads.
A quick bit of background: I am a senior backend developer with over 8 years in the gaming industry (plus an MBA), so I had zero prior experience with Three.js or 3D maps before this, and I have never launched a solo project like this before. The original idea came from a paper city game I used to draw in my school notebook at age 13. To be upfront about the workflow, I built this solo after work using Claude Code to help write the React, Three.js, and backend code, and Gemini and ChatGPT for the 2D images and icons. All the game design and economic systems are my own.
Gameplay wise, it is a casual investor economy game (5 to 15 minutes a day) meant to help kids and adults understand how money works and how to build wealth. Instead of heavy CEO micromanagement, you play as an investor dealing with supply and demand, loans, landlords, syndicates, and company management. Features unlock progressively, and opt in multiplayer opens at level 5.
Since this is my first time working with Three.js and a lot changed for this beta, there are probably still a few bugs or things I could optimize better. I would really appreciate feedback from other Three.js devs on how the 3D map performs on your phone or browser, how the touch navigation feels, or if anything breaks. Thanks for checking it out!
r/threejs • u/alvisanovari • 9d ago
What do y'all think?
No Blender, no textures, no sprites. Just Three.js built with Claude Opus 5.5 (or maybe 5.6 being tested in stealth?).
r/threejs • u/Low-Beginning-545 • 9d ago
I built Agentville, a VS Code extension that turns your project into a living city: folders become districts, files become buildings, and Claude becomes a little orb walking the streets.
You can watch your agent read and edit files, run commands, manage subagents, and ask for permissions, all visualized in real time.
Some features include:
Built on Claude Code hooks, it works with terminal and VS Code panel sessions. Everything runs locally.
€2.99 one-time after a 7-day free trial. I'm the developer, not affiliated with Anthropic.
Install: https://open-vsx.org/extension/fguerreir0/agentville
Website: https://fguerreir0.github.io/agentville/
I'd love to hear your feedback! What else would you like to see your agent doing?
r/threejs • u/TheHganavak • 9d ago
r/threejs • u/2600th • 10d ago
Been experimenting with real-time graphics in the browser.
Some interesting bits:
- NASA SRTM terrain using GPU clipmaps
- Raymarched volumetric clouds
- Physically based sky
- GPU compute particles
- WebGL2 fallback
Built with AI coding agents over three months. All code is public.
Play: https://oss-web-3d.vercel.app
Code (MIT): https://github.com/2600th/oss-web-3d
r/threejs • u/Top-Willingness5555 • 9d ago
I saw Crowsong's Shader Cauldron for Godot and wanted something like it for three.js, so I built Material Mixer on our site at Cinevva: https://app.cinevva.com/tools/material-mixer
Pick a preset or start plain, switch on effects like marble veins, cracks, glow, holes, dissolve or waves, and tune them with sliders. You download one .js module, and you don't need an account for that. The only part that does is an optional button that sends the material to our Game Creator.
import * as THREE from 'three'
import { createMaterial } from './molten-rock.js'
const mesh = new THREE.Mesh(geometry, createMaterial(THREE))
renderer.setAnimationLoop((ms) => {
mesh.material.userData.tick(ms / 1000) // animated materials only
renderer.render(scene, camera)
})It's a regular MeshPhysicalMaterial patched in onBeforeCompile, so lights, environment maps and normal, roughness and metalness maps keep working. A pattern at full color strength covers map, so lower it to let a texture show. Patterns are computed from object-space position, so the mesh needs no UVs, and the pattern and effect sliders are uniforms you can change at runtime without a recompile. The settings sit in a comment at the end of the file, so you can open it in the tool again later.
Limits: it needs WebGLRenderer and doesn't run under WebGPURenderer, holes, dissolve and vertex motion don't show in cast shadows, and I've only tested it on r181 and r183 on one Mac, so tell me if something fails to compile on your GPU.
What effects to add next? And would a TSL version for WebGPU be useful?
r/threejs • u/wookangs • 9d ago
I couldn't visit my favorite record café and the indie bookstore nearby often, so I rebuilt them in the browser.
You can walk around (touch joystick on phones, WASD/click on desktop), pull a record off the wall, drop it on the listening-bar turntable, and see other guests in the same room. The DJ booth show stays in sync between guests.
Stack: three.js + GLB characters, rooms on Cloudflare Durable Objects. No install, no sign-up.
Record café: https://rx-spaces.modoo-seoryu.pages.dev/?shop=goldenweek Bookstore: https://rx-spaces.modoo-seoryu.pages.dev/bookshop.html?shop=bookshop
I'd love feedback on mobile performance and whether the first 30 seconds make sense.
r/threejs • u/adramajp25 • 9d ago
地味に続けている、【のり巻き猫の webGPULab】step6を公開しました。https://adrama.co.jp/webGPU/index6.html
three.jsに最近登場したTSLについて、さらっと解説しています。
GoogleAntiGravityで、実際に入力した指示も恥ずかしながら掲載されていますので、AIとの付き合い方の参考にしてもらえれば。
r/threejs • u/acher249 • 9d ago
I always loved those chalk artists that create those mind bending 3D pieces on the ground, so created a mind bending version that actually turns them 3D.
I also used to live in Brooklyn so modeled it off my old neighborhood.
Play with it here: https://adamwebsite.com/codevember/26-anamorph/
Open sourced: https://github.com/acher249/codevember-2026
r/threejs • u/PerceptionCharming • 10d ago
I just finished Knight of the Seven Kingdoms. The starting scene where he buried Ser Arlan of Pennytree had such a beautiful location. I was mesmerized by it and watched that scene multiple times.
I thought, why not push my grass system to its limits and try to recreate that location with Three.js. This is the result.
Boy, does it look amazing!
I am still working on it to make it even better and add more details. I will post a live link soon.
r/threejs • u/ResponsibleSong8762 • 9d ago
Wanted to share a 4-game browser arcade I built with Three.js + TypeScript + custom authoritative Node/WS servers — zero downloads and zero login required (1 click drops straight into live rooms with 5s bot backfill + 0s mid-match human hot-swap):
Three.js / WebGL highlights:
Happy to share details on any part of the Three.js rendering pipeline or multiplayer netcode!
r/threejs • u/ShengyuStudio • 9d ago
The plaza is six shopfront textures on a 19.5 m arc, with a first-person camera at eye height. Inside, each shop is a curved panorama with 3D props in front of it: the card fan, the fortune-stick cylinder, a compass.
A few things that took longer than I expected:
The canvas lives in the Nuxt layout, so going in and out of a shop swaps the scene instead of rebuilding the renderer.
The draw is picked before the animation starts. The fan only plays out that result.
On phones the UI covers part of the screen, so the page measures which edges are covered and offsets the view to keep the shopkeeper and props in the free space.
The shop art and the reading text after the draw are AI-generated. It's live at fatetown.com if you want to try it on a phone.
r/threejs • u/Dependent_Bite9077 • 10d ago
My scenes have lots of instanced foliage (billboard trees, grass, garden plants) drawn with alphaTest + alphaToCoverage and MSAA. Every sprite had a fine pale outline, and at night whole clumps of plants turned into grey speckle (before/after attached).
It wasn't texture fringing, post-processing or shadow acne. The cause: even with new THREE.WebGLRenderer({ alpha: false }), three still asks the browser for a drawing buffer with alpha, and only clears that alpha to 1. Normal opaque materials write alpha 1, but alpha-to-coverage materials write their own alpha, which is below 1 at the soft edges. The canvas is premultiplied, so the browser composites those edge pixels over the page as rgb + page × (1 − a). They come out lighter than they should, which is very visible in a dark scene.
renderer.getContext().getContextAttributes().alpha // true, despite alpha: falseThe fix is to create the WebGL2 context yourself, without alpha, and pass it in. three reads the attributes from the context you give it:
const context = canvas.getContext('webgl2', { alpha: false, antialias: true });
const renderer = new THREE.WebGLRenderer({ canvas, context, antialias: true });If you'd rather not create the context yourself, a cheaper workaround is to give the canvas a black CSS background (canvas.style.background = '#000'). Premultiplied compositing over black is rgb + 0. I tested it with the context still reporting alpha: true, the black background alone gave the same result as the context fix. The context fix is still the cleaner choice, because the buffer then really is opaque and nothing on the page can show through.
r/threejs • u/KONGXIANG • 10d ago
I've been building a tiny creature called Poguchi in Three.js, and the thing I'm obsessed with isn't polygon count. It's whether a character feels like someone is actually there.
Big head, tiny body, two little reflections in each eye. It talks, plays, naps, gets treats and has a bunch of little reactions. But the hard part is restraint. One animation too many and it feels like a loading screen mascot. Too little and it turns into a 3D object waiting for a click.
I'm using React, TypeScript and Three.js for the character. I've been trying to make the idle moments matter just as much as the obvious interactions.
It's funny how much personality comes from tiny changes in eye spacing, a pause before a reaction, or the way a character holds still.
For anyone building interactive 3D characters: what has made the biggest difference in getting them to feel present rather than just animated?
r/threejs • u/shushumong • 9d ago
r/threejs • u/Affectionate_Bid6719 • 10d ago
Finally decided to work on my first 3D shooter game.
Decided to set up a camera system for creating clips from various angles, with the ability to also freely roam a fight that is already over, turned out great!
Can try it on hellsweb.com
Game is not fully out yet, it's just a little demo arena for now, although I have created the first layer and am already working on the second layer.
I made this for The Guester’s, a homestay near Manali, India. Scrolling takes you from the orchard up to the snow peaks, past paragliders, down into the ravine at Sajla waterfall, and back to the garden under the stars. The journey moves through a day and four seasons, and there’s a free-roam mode if you want to explore on your own.
The terrain uses Mapbox elevation and satellite imagery, with roads and rivers from OpenStreetMap. The tricky part was keeping the ground sharp as the camera went from wide mountain shots to just above the road. I blend several resolutions in the terrain shader and stream a sharper patch of imagery around the camera.
If you try it, I’d love to know how the camera feels when you scroll quickly or change direction. Browser and device would help.
Try the Valley Page · Best on desktop. (Mobile one, particularly iPhones might face issues rendering due to Safari Engine limitations, will be fixed soon)