T-015: Look development
Goal
Make the real viewer look like the style Evan picks. The chosen mock-up is a guide, not a
strict mandate. See docs/DESIGN.md section 11.
Scope
- Translate the chosen style into a rendering approach that holds up with thousands of organisms, natively and in the browser.
- Bodies read as continuous organisms, not balls and sticks. Cell types read as visible parts. Colour, opacity and glow come straight from cell data.
- The water: depth, light, particles, the seafloor.
- Three scales: whole world, one creature, single cells.
- A stated frame budget and a level-of-detail plan.
Done when
- ☐ Stills at the three scales in
docs/media/T-015/, compared honestly side by side with the chosen mock-up. - ☐ Frame rates measured at the target sizes in
docs/DESIGN.mdsection 12, native and web. - ☐ Evan has an
INBOX.mdreview item with the stills.
Notes
- Evan's pick is in: see the last section of this ticket.
Notes from T-002
- The placeholder renderer rounds colours to a small set of shared materials to stay fast, especially on WebGL2. Showing true pigment colours per cell needs a different approach.
- Measured headroom with plain spheres: 20,000 spheres at 261 frames per second natively.
Added 2026-12-02: organs are visible, and the renderer is general
Evan liked the limbs and organs in the Abyssal Glass mock-up. Whatever style he picks, each
cell type gets its own recognisable organ, and bodies wrap into one skin. See "Organs are
visible, whatever the style" in docs/DESIGN.md section 11, and the organ designs in
concepts/abyssal-glass/ (NOTES.md and js/shaders.js).
The renderer must be as general as the sim. The skin wraps any arrangement of cells, from one tiny cell to a body of thousands of large ones in the same frame, and no shape gets special treatment. See "Open-ended bodies" and "Scale is free" in section 5. Test with odd bodies and with very mixed sizes, not only with pretty ones.
Added 2026-12-02: the choice is down to two
Evan: "It's definitely one of abyssal glass or living plate." Until he says otherwise, the
live world's look starts from Abyssal Glass, and Living Plate is proposed for the atlas
(T-054). See docs/DESIGN.md section 11.
Added 2026-12-02: what the phone work found (T-049)
- On phones the limit is the graphics chip: pixels drawn and very small triangles. The
viewer now caps the pixel ratio (1.5 on touch screens, 2 on desktop), uses 80-triangle
spheres, and steps quality down by itself until 30 frames per second holds. Keep those
mechanisms working, and keep
?diag=1and?bench=1working. Seedocs/VIEWER.md. - 80-triangle spheres look faceted close up. T-049 suggests drawing cells as camera-facing impostors with 2 triangles each, which is also what the design proposes.
- Check every look on the phone stand-in (
node scripts/webfps.mjs --mobile --software) before calling it done.
Added 2026-12-02: the pick, and what this ticket now covers
Evan chose both styles with different jobs (docs/DESIGN.md section 11, "The
decision"). This ticket is the live world, guided by Abyssal Glass. The atlas in the
Living Plate style is T-054.
- Abyssal Glass is one biome. The mock-up shows the dark deep. Evan wants other regions to have more light and colour. Show the look in at least three places that differ: bright shallows, open midwater and the dark deep or a vent field. The bodies stay glass. The place changes because the light and background-colour fields differ, not because a biome is painted in. The places named here are examples.
- Build on the viewer that shows the real sim (T-014), with bodies grown by the genome (T-010), not on placeholder spheres. Evolved bodies are not art-directed, so judge the look on odd ones.
Added 2026-12-02: what the live viewer hands you (from T-014)
- Cells are now drawn by the viewer's own shader (
crates/viewer/src/spheres.rsandspheres.wgsl): one instanced draw for opaque cells, one for translucent ones, fed fromWorld::view(). Bevy's shadows and its indirect drawing no longer touch cells. This is the code you replace or grow. - Translucent cells are sorted back to front per cell, so overlapping glass can blend in the wrong order. Glass bodies are the whole look, so this needs a real answer.
- Spheres are meshes and look faceted close up. A million cells draw at 25 frames per second natively, limited by the graphics chip. Camera-facing impostors and level of detail are the suggested way out.
- The sea floor, the walls and the water are not drawn at all yet. The fields (T-011) now
give terrain height, ground colour, water colour by depth and light at any point
(
docs/ARCHITECTURE.mdsection 16). Draw the place from those. viewer --probe sizesbuilds a world with cells from radius 0.01 to 100 in one frame. Use it to check that the look holds across sizes. `viewer --screenshot ... --camera ... --look ...` pictures any world from anywhere, headless.- Test in both browser engines (
node scripts/webfps.mjsandscripts/webkit-probe.sh). Safari runs the WebGL2 build today (T-055).
Added 2026-12-02: real grown bodies exist (from T-010)
docs/GENOME.md and docs/media/T-010/. A world can now be filled with bodies grown from
genomes: hand-written ones (crates/sim/src/genome/zoo.rs), random ones and mutants. Use
all three. The random ones (spread-random.png) are the honest test of the look: most are
lumps and chains, with cell radius varying by a factor of 32 inside one body.
- 2026-12-02, from T-065: the viewer draws no sea floor, so a body resting on it looks as if it floats. The terrain is in the fields (
docs/ARCHITECTURE.mdsection 16).runner run --genomes ... --place floormakes a world of bodies sitting on it to test with.