Sprite Production Field Notes

sprite sheet maker

Use a Geometry Key Before Deduplicating Sprite Atlas Entries

A sprite sheet maker can deduplicate identical decoded pixel bytes and still return the wrong crop. An eight-pixel row sequence might describe a wide 4 × 2 cel or a tall 2 × 4 cel. The paint values match; the row breaks do not.

Add the geometry to the key used at packing time

Use a structured key containing width, height, channel layout and the pixel digest. If your serialization uses strings, choose explicit delimiters or a structured object so that adjacent numbers cannot become ambiguous. Decode an approved wide and tall version of the same labeled swatches and ensure they get two distinct atlas entries.

Observe the crop a consuming frame receives

Load each packed rectangle and measure the source geometry. Check one pixel that appears on a different row in the two images. Then pack two copies of the same shape and bytes as the positive deduplication case. A collision guard that disables all deduplication can pass the first test while wasting space in every other frame.

FrameSprite’s technical guide and test fixture reproduces this case inside a native Arcade atlas. The key and the positive control above help retain deliberate deduplication while preventing a geometry alias.

Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.