r/threejs • • 7h ago

Demo Open Source 400hz sim racer running in web gpu

Post image
7 Upvotes

The pre demo version of probably the most advanced sim racer running in web gpu is available in itch.io with the name Open Grid or through GitHub or directly in: open-grid.racing

I would really appreciate it if you can give me some feedback on features and bugs the game has and also your opinion on if you would like to see this game getting finalized. You can also contribute to the game directly through my GitHub: https://github.com/Konstantinos-Chatzistavrou/Open-Grid

Don't forget to star the repo to stay updated with any updates because this project is only 5 weeks old.

Don't be too harsh 😅, thank you!


r/threejs • • 16h ago

I built my personal site as one halftone planet. Single camera path, custom GLSL, no framework

5 Upvotes

Every chapter of the site is a part of the planet: the surface, a shield that gets attacked, a cutaway core, the moon, the sun and the night side. Scrolling just moves one camera around it.

three.js r160 for the scene, the rest is hand-written shaders and plain JS. Would love feedback on performance, especially on phones.

Live: https://kohli.world Source: https://github.com/Assassin-1234/kohli-world


r/threejs • • 4h ago

Tutorial I had Claude build a 3D game where you wreck a paper-model office, then voice the staff. Prompts, pitfalls and the bill

3 Upvotes

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.

The style frame I picked the look from, and the game as it went live.

What I actually asked

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.

What I asked

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.

Four looks, the same moment, each rendered live in three.js. I picked 3.

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."

Option 1, Claude's recommendation: blue-and-white porcelain.

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

Option 2: comic ink.

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."

Option 3, my pick: the paper-model office.

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."

Option 4: vinyl toys.

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.

What it added

I'd asked it to think up fun bits and pain points. Here's what it put in:

  • The desk phone rings. Smash it while it's ringing and the damages are four times higher.
  • Smash the punch clock: 5 seconds off your time. Smash the coffee machine: you swing faster.
  • Go 3.5 seconds without hitting anything and an arrow points you at the next thing.
  • Late in the run your colleagues pick things up and join in.
  • The results card is an exit interview: time on site, a job title ("Hostile Takeover"), damages, three remarks written from how you played ("Printer gone in 15 seconds. It had it coming.") and a sticky note with one thing to try next time.
Fun bits and pain points it added when asked.
The results card: an exit interview written from how you played.

How it got built

  • While I was choosing, it wrote everything that doesn't depend on the look: walking, five tools (bat, sledgehammer, 9-iron, fire extinguisher, stapler), debris, the staff's behaviour, the clock and the score.
  • The room is plain data, the look is a "skin", and the rules are the engine. A corner shop next would be a new data file, not a new game.
  • Then the weekly usage limit ran out mid-build and everything stopped for three hours.
  • After that, five agents built the paper look in parallel: the room and lighting, the destruction effects, 50 kinds of furniture, the machines and small things, and ten paper dolls.
The shipped game.

Things that bit

  1. Draw calls. 1,434 at the start of a run. Batching all the furniture nobody had hit yet brought it to 377.
  2. Obfuscation. We obfuscate the code that ships. On the heavy settings the game's own code went from about 1 ms a frame to about 10. It's on the light settings now.
  3. Phones. An automatic check at eight window sizes found the sound and pause buttons covering the fifth tool, a results button falling off a sideways phone, and the results picture shrunk to thumbnail size on an upright one.
  4. Late sound. On a slow machine the recordings arrived after the door had already been kicked in, so you missed the kick and the boss's first line. The first sounds now load as soon as your pointer moves over the game.
Four things that bit.

The sound round

After the test link my one note was:

Use ElevenLabs for all the sound. Add some dialogue too, NPC voices.

My one note after the test link, and what came back.

What came back:

  • 22 sound effects (38 takes), lobby hold music for the title card and a 124 BPM groove for the run that opens up as the office comes down.
  • 260 voiced lines: ten colleagues with their own voices, and an announcer calling the combos ("Synergy!", "Paradigm shift!", "Hostile takeover!") and your job title at the end.
  • 17 short exchanges between colleagues, early and late in the run. My favourite: "Are we insured for this?" "There's a form." "Then fill it in!" "It was in the printer."
  • Every line was transcribed back and compared with the script: 255 of 260 exact, the rest only spelling a number or a noise differently.
  • Speech bubbles are timed to the recordings, and the voices duck the music.
Overheard while you work: 17 recorded exchanges.

That round was $16.19 in tokens plus 6,638 ElevenLabs credits, about 5% of a month on my plan.

What it cost

Token usage priced at Anthropic's public API list prices:

Token usage priced at Anthropic's 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.

Not done yet

  • No real graphics card has drawn it. Every check ran on software rendering at about one frame a second, so I don't know the frame rate on a laptop or a phone yet.
  • The gamepad path is written but untested, and so is the feel with a real mouse.
  • The par times for the grades are estimates. The autopilot finishes in about 40 seconds.
  • One room so far, and no VR.

What I'd tell anyone trying this

  • Ask for pictures before code. Four frames of the same moment made the choice obvious.
  • Ask it to think up fun bits and pain points; you get things you wouldn't have listed.
  • After the first playable version, ask for one concrete change at a time.
  • Ask what every step costs.

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

Free to play in the browser.

It's one of the skills on my site, skillbay.dev. Happy to answer questions about any of it.


r/threejs • • 2h ago

Demo Origins: Polygon Uprising ~ Rougelike || Procedural Generated Missions || Geometry Wars-like, open space, fast-paced shooter.

Post image
1 Upvotes

Hi, I was a big fan of Geometry Wars back in the day. I always wanted a vast open space rpg-like experience, with bosses, skills & abilities, etc, while keeping the fast paced action during missions.

Each mission is procedurally generated, thus giving you a different experience and never the same, so strategies are useless except when using skills and abilities.

Enjoy Sector 1 as I keep improving and polishing the game. Feedback always appreciated.

The sounds and music are designed to be an immersive experience while keeping you motivated when playing.

Play in your browser: Play Origins: Polygon Uprising


r/threejs • • 9h ago

Hurt my leg, so I made a tennis game in three.js

Thumbnail
webtennis.seongland.com
1 Upvotes

r/threejs • • 16h ago

Spacesim v1.00

Thumbnail
gallery
1 Upvotes

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 • • 17h ago

[Update] MetaStar AI NPC SDK for Three.js: Transparent Business Model (Zero API Cost) + 20% Developer Revenue Share

1 Upvotes

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 • • 19h ago

Help My first Three.js project: a lightweight 3D city economy game in React optimized for slow phones (Mint Street Beta)

Thumbnail
gallery
1 Upvotes

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 • • 23h ago

Demo A walkable 3D copy of a real record café – pick a record, play it on the turntable, see other guests

1 Upvotes

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.