Phatake

group .........
3D and WebGL scenes
markdown ......
/lab/phatake.md
human .........
/lab/phatake

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

Diwali crackers on the BLANK Interfaces logo, as an isometric pixel diorama. The logo is extruded into a black slab on a sandstone courtyard with a rangoli and diyas, and kept as a heightmap with soot and litter grids so every cracker leaves a mark. Tap a spot on the logo and the nearest of three children, in a lehenga, a kurta and a Nehru jacket, runs over, crouches to light the next cracker with an agarbatti, runs off and covers their ears. Sutli bombs break chunks out of the slab down to the cut stone, rockets climb off it and burst (one in four skids across instead), anaar fountains and chakris scorch it, and ladis litter it with red paper. Twelve crackers a round; after the last one a tap sweeps the logo clean. A 360 by 280 software rasteriser with a depth buffer, Bayer dither, hue-shifted ramps and long screen-right shadows, scaled by whole device pixels. Renders only the canvas, pauses off screen, synthesizes its sounds. Renderer ported from Pixel Plays (MIT). No dependencies.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * The logo is a heightmap, not a sprite

    The BLANK Interfaces paths are rasterized once into a slab mask and a letter mask, then the slab lives as a 0.1-unit height grid with soot and litter beside it. Bombs lower cells and drop the thin ones to zero, so breaks chip the real outline and expose sandy cut stone on the walls that face the camera.

  • * Two floors for shadows

    Ground-plane shadows only land on ground pixels, and the slab top is excluded from them. Children cast onto whatever height they stand on through a second mask, so their shadows sit on the logo instead of sliding off to the courtyard below.

  • * Soot is grain, not dither

    Soot and ash use a per-pixel hash instead of the Bayer matrix, because an ordered pattern on black reads as a checkerboard. Litter never settles in a fresh break, so craters keep a clean cut-stone form.

  • * Rebakes, not redraws

    The courtyard, slab and static shadows are baked into one buffer and rebaked at most every 100 ms when something changes. A frame only adds the children, crackers, sparks and smoke on top.

  • * Whole-pixel scaling

    The 360 by 280 canvas is scaled by a whole number of device pixels to fit the container and drawn with pixelated rendering, so no pixel is ever interpolated.