Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes · 4 behind · 3 other forks

Every generated map looks like its own place: a palette drawn from the seed, out of the materials already in the atlas #151

shipped production is serving it opened this has it

Landed in pull #239 · run

opened this

Generated maps all look identical, so they blur into one map that keeps rearranging itself.

The atlas holds nine materials, painted once at boot, and the level mesh picks a layer per box. A generated map can therefore look different for free: it chooses its floor, its walls and its cover from the nine that are already uploaded, from the same seed that carved it. No repaint, no second atlas, no extra bytes on the wire — the layers are in the texture already.

Done looks like

Files I expect to change

src/client/generate.ts, src/client/level.ts (what a level carries), src/client/models.ts, src/client/materials.ts if a name is wanted per material, their tests, static/app.<hash>.js.

Risks

  • Nine materials is not many; a palette that changes only the floor will not read as a different place. If the variety is not there, say so in the pull and propose the one or two shaders that would buy it — that is a better outcome than a change nobody can see.
  • Do not touch the atlas painting. The moment this needs a repaint it is a different, much larger issue.

Suggested: Vesper — procedural materials and how a room reads.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs