# 3D Rainy Night Storefronts

> A live 3D street-corner store on a rainy night in your browser: wet reflections, puddle ripples, a warm interior, a sliding door, lights and sound.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/rain-night-store

## What you get

Bring a store, the weather and optionally the street, props and sounds. The Skill returns a downloadable Skill (meta prompt, lessons, verification) and a runnable reference scene.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/rain-night-store (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/rain-night-store build an interactive <your store> on a street corner in <your weather>
```

## How it works

1. **Fill the store and weather slots** Rain Night Store takes a slots file with two required values, store and weather, plus optional street, props, palette, interaction, sounds and extraPrompt, each up to 2000 characters. Run node scripts/fill-prompt.mjs --slots slots.json --lang en --out prompt.md, then hand the prompt and any reference image to your coding agent. The Moonbean 24 example ships its slots in assets/prompts/examples/moonbean-corner.json.
2. **Rework the reference corner locally** new-project copies a three.js reference app with the store shell, canvas-drawn sign, instanced shelf products, street furniture, wet ground with a planar mirror and ripple shader, rain, night sky and synthesized sound. It runs on your machine after npm ci pulls pinned packages from the public npm registry. The agent edits textures.ts for the brand, config.ts for the layout and Props.tsx or Street.tsx for the props.
3. **Shoot, build and deliver** Between npm run dev and npm run build:single the agent runs npm run shoot -- --file dist-single/index.html in local Chrome and compares its beat screenshots with the reference. The result is dist-single/index.html, one self-contained page with no network and no storage. The headless record checks console errors, CSP violations, door, lights, rain and splash interactions, colour balance, audio state and frame rate.

## FAQ

### What does Rain Night Store build?

Rain Night Store builds a playable 3D street corner at night: a lit shop with shelves and fridges, vending machines, bikes, a lamp and a crosswalk under rain. Visitors drag to orbit, press R for heavy rain, click the door or press D for a sliding door with a two-note chime, press L to flicker the lights and click a puddle to splash it.

### Does Rain Night Store need an API key or a paid model?

No. Rain Night Store calls no model and no network service; a coding agent edits the reference scene on your own machine. The only download is the pinned npm packages that npm ci fetches from the public registry, so building a store does not run up SandBase usage.

### Is the rain in Rain Night Store a real water simulation?

No. Rain Night Store draws streaks in a vertex shader and puddle ripples as rings in the ground shader. Drops do not collide with props or run down the glass, and water does not flow or pool. Reflections come from one planar mirror of the ground on the high tier, so vertical glass does not mirror the street exactly.

### Can I change the shop name and logo in Rain Night Store?

Yes. Rain Night Store draws its signage on canvases, so the agent edits signTexture, box24Texture, pylonTexture and drawGlyph in src/components/textures.ts to show any text or shape. No image files are needed.

### Does the Rain Night Store scene run on phones?

Rain Night Store switches phones to a low tier with streak reflections, fewer drops and products, no shadows and on-screen buttons for rain and lights. That tier was checked under headless touch emulation only, not on real devices. Desktop browsers get the planar mirror, shadows and the full shelf of products.

### What does Rain Night Store need to verify a build?

Rain Night Store's shoot and record scripts need Node 22.4 or newer and a local Chrome, and record also needs ffmpeg. Headless capture carries no audio, so you listen to the rain, traffic hum and door chime yourself. The build embeds THIRD_PARTY_NOTICES.txt as an HTML comment in the head, which must not be stripped.

## Examples

- Rain Night Store interactive demo (scene)
- Night Vinyl (scene)
- Moonbean Corner (video)
- Night Vinyl (video)
