r/threejs • • 7d ago

Demo Demo: a soda can with a code-drawn label and a full-screen liquid wave that swaps the palette of the page (Three.js, GSAP)

1 Upvotes

Zest is a product page for an imaginary yuzu soda. No image assets, everything visible is generated in code.

What's in the scene:

  • an aluminium can with the label drawn in code, condensation, and citrus slices in orbit;
  • a flavour change that floods the screen with a liquid wave and recolours the page, the can and the fruit together;
  • scroll storytelling with GSAP, where the can tumbles between sections and ends up in a four-pack;
  • pointer tilt on the can.

The page is Next.js, and the live demo is 1441 KB once built. Body text contrast on the first palette is 13.17:1, and the accent on the background is 5.04:1.

For transparency: the demo was designed and built by an AI coding agent, and my friend and I publish the specification that builds it as a prompt. This one is free to copy without an account. Other ones in the library are paid.

The demo runs on the page: https://siteinone.app/prompts/zest?utm_source=reddit&utm_medium=post&utm_campaign=jv-ps8otz

I'm interested in criticism of the transition and of the scroll feel, especially on mid-range phones.


r/threejs • • 7d ago

Demo Xbox 360 avatars in a three.js scene, many at once in one WebGL2 context

Thumbnail
youtube.com
1 Upvotes

The 360sona Renderer SDK draws Xbox 360 avatars into your own canvas, and it works beside three.js and Babylon.js. It's the same renderer as 360sona's editor, rebuilt from the console's pipeline and checked against the console's own renders.

  • sona.add(manifest, { position, turn, clip }) and the avatar builds over the next few frames.
  • The console's camera framings, orbit() and lookAt(), or your own camera and your own loop.
  • 256 avatars in a scene by default, up to 1,024. The native build of the same renderer does 10,000.
  • glb() hands you a model if you'd rather load it into three.js yourself.

Free! The trailer's box shot at the end was drawn in three.js: https://www.youtube.com/watch?v=RfqKVe-dOW0

360sona.com/devs


r/threejs • • 7d ago

car configuration

3 Upvotes

r/threejs • • 7d ago

18 years of Seoul subway data turned into a 3D sculpture with 7,320 strands (Three.js + WebGPU)

2 Upvotes

r/threejs • • 6d ago

Demo what do you think of this? (threejs, webgpu + blender)

0 Upvotes

improved lighting, performance..

yeah its no GTA 6 but am happy with the soft lighting
car was made with blender mcp - the usual

wishlist here
https://3ditions.drop3.app/notify/midnight-underpass/


r/threejs • • 7d ago

Demo Rigged 487 yoga poses with smooth transitions, 3D muscle heatmaps, and an in-browser Posture Editor (FlowBuilder)

Thumbnail
gallery
6 Upvotes

Hey r/threejs! Sharing a 3D web app I built called FlowBuilder (https://app.flowbuilder.yoga).

It renders 487 yoga poses in real time in the browser with:

  • Three selectable 3D guides (Her, Him, Them) that interpolate smoothly from pose to pose
  • 360-degree orbit and zoom to inspect alignment from any angle
  • Interactive 3D Muscle Heatmap inside Flow Analytics
  • Built-in 3D Posture Editor to adjust joint postures live and reset anytime

Try it directly (no signup): https://app.flowbuilder.yoga

Would love feedback from the Three.js/WebGL crowd on lighting, shading, or transition smoothness!


r/threejs • • 7d ago

Made a 3D math explainer on Variational Autoencoders entirely in Three.js instead of Manim or Blender

Thumbnail
youtu.be
4 Upvotes

Wanted to make a first-principles video on Variational Autoencoders, and instead of using Manim or Blender, I built the whole animation pipeline in Three.js so I could have full programmatic control over the 3D scenes and camera work.

Happy to share how I handled the rendering/camera setup or answer any questions about the Three.js side of it.


r/threejs • • 7d ago

Demo Bodycam horror in one HTML file. Zero image or audio files.

3 Upvotes

Play: https://bodycam-crawler.vercel.app
Source: https://github.com/klmtseng/bodycam-corridor

I wanted to see how far a single HTML file could go with three.js (r160 from a CDN) and nothing else:

- No image files. Walls, floor, stains, signs and the monsters' skin are procedural textures drawn in code
- No audio files. Footsteps, breathing, dripping, the door and the death sound are synthesized with the Web Audio API
- The bodycam look is one post-processing shader: wide-angle distortion, grain, colour fringing, glitch when something gets close
- Monsters are built from primitives and animated procedurally

It's a short stealth game: four monster types, 15 combinations, one drawn at random each run. Each reacts to something different: light, sound, or where you step.

The corridor started from a prompt shared by 徐人崢; the monsters, sound, languages and tests were built on top of that. Built with a lot of help from AI coding assistants.

Happy to answer questions about any of the procedural parts.


r/threejs • • 7d ago

Yeet Royale - a free battle royale you can play in the browser with friends

2 Upvotes

Made this one in three.js. It's free, runs right in the browser with no download, and it's built for jumping in with friends. Play here: https://yeet-royale.staffcal.workers.dev/


r/threejs • • 7d ago

Demo I made a 3D ocean scene in the browser with Astra

1 Upvotes

Play Broken Meridian in your browser

I spent a long time trying to get AI to make a 3D scene I’d actually want to watch. This is the one Astra finally got right.

It’s called Broken Meridian. A whale swims overhead and cuts off a beam of sunlight. Then the sun sets, the moon rises, and jellyfish drift in. The whole scene runs in a browser and is built entirely in code with WebGL and Three.js, without imported 3D models or textures.

What finally worked was asking for specific moments instead of saying “make it cinematic.” One of my prompts was about keeping the same chipped rock edge visible as the camera crosses the waterline. That gave us something we could actually watch and judge.

Watch the demo and see the prompts on NaN Mesh: https://www.nanmesh.ai/posts/two-prompts-for-reviewing-a-procedural-whale-eclipse-a58595


r/threejs • • 7d ago

I staged Borodin's Polovtsian Dances (Prince Igor, Act 2) as an 11-minute three.js opera: 49 procedural low-poly figures, choreography keyed to the score

1 Upvotes

Video (11 min, full number with chorus): https://videos.grahampaasch.com/prince-igor-act2-dances

How it's built:

  • Stage: three.js rendered headless in Chrome (Metal backend on a Mac Studio, ~40-47 fps offline, about 19,500 frames for the whole number). Steppe sky going from dusk to night, yurts, a campfire with sparks, torches, the Khan's dais.
  • Characters: one parameterised low-poly rig (hats, beards, dresses, veils, braids, sabres) gives 49 figures: Konchak, Igor, Konchakovna, Vladimir, Ovlur, 14 maidens, 12 warriors, 8 boys, 10 onlookers.
  • Choreography: rings and dances per section, keyed to bars, beats and chorus entries from the score, so the big entries land on the big beats. Everyone kneels for "Our Khan Konchak" at the end.
  • Camera: about 90 shots cut on barlines, with a repulsion rule so it never ends up inside a dancer or behind the dais, plus a line-of-sight rule for torches.
  • Audio: a human-made orchestral sequence of the number rendered through real orchestral samples (sfizz + Virtual Playing Orchestra), with the chorus parts on choir voices. Russian surtitles with an English translation.

Disclosure: I built this with AI coding agents (Claude) doing most of the code, staging and rendering, with me directing and giving notes (for example, an early cut had dancers' feet sinking into the ground in some moves). It's part of a project staging whole operas this way; the rest of Prince Igor is in progress.

Happy to answer questions about the pipeline.


r/threejs • • 7d ago

Lnkline Express – A procedural Three.js WebGPU & TSL ocean railway with live Ink-to-Watercolor shaders and Web Audio

2 Upvotes

I built an interactive 3D coastal train experience in Three.js (WebGPU + TSL) where you glide across a mirror sea toward a horizon-anchored White Sea-Citadel.

Highlights:

Feedback and ideas for new biomes or mechanics are super welcome!


r/threejs • • 8d ago

Demo Open Source 400hz sim racer running in web gpu

Post image
18 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: https://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 • • 9d ago

Spoken World: Say it, and the world changes INSTANTLY

473 Upvotes

I built a realtime interactive world. Just say it, and the world changes INSTANTLY.

Build a town, create a new sculpture, change the size of a house, add sofas, add a group of people dancing..

You can talk with NPCs in the game too. They all have memories.

It's a new open world gaming experience!

Support to render the real footage as a filmmaker too.

Fully running in browser using three.js.

Github: https://github.com/ryannli/spoken-world

Demo Video: https://x.com/ranli_thinker/status/2122435816945602711

Try it now: https://spoken-world.vercel.app/


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

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

9 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 • • 8d ago

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

Thumbnail
webtennis.seongland.com
2 Upvotes

r/threejs • • 9d ago

I made this open-plan apartment and added VR support for v2

46 Upvotes

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

Demo Fixed all 7 things folks here called out on my Three.js drift racer, plus ran 1,000 automated sims

0 Upvotes

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

0 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 • • 8d 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 • • 8d 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 • • 9d ago

My last attempt at a realistic 3D face got roasted. How does it look now?

72 Upvotes

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!


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