Sprite Production Field Notes

sprite sheet maker

Place Letterboxing Deliberately When Centering Sprite Contact Sheet Cells

A square sprite contact sheet cell may contain a wide artwork rectangle. An aspect-preserving renderer can leave unused rows where you did not expect them if the target supplies only a top-left origin. Calculate the fitted rectangle, then decide explicitly whether its remaining space should be split, bottom-aligned, or left at the far edge.

For an 8 × 4 source drawn unchanged into an 8 × 8 cell, a centered policy can place it at row 2 with two unused rows above and below. A baseline-aligned policy can choose a different origin. Put a diagonal asymmetrical mark near one corner. After rendering and packing, decode that cell and compare its nontransparent bounds and marker relative to the intended cell anchor. Run the test on a wide and a tall source so a hardcoded vertical offset cannot succeed for both.

The technical guide and test fixture observes a Qt 6.8.3 Graphics View render where uniform aspect fitting at a specified origin occupies the upper four rows of the square image. Stretching to fill changes the shape. Treat transparent padding as part of the crop and registration contract, rather than deciding based only on an output image's square dimensions.

Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.