sprite sheet maker
Pick a single atlas cell when the pointer lands on a seam
A sprite sheet editor can highlight one cell on hover and export its neighbor on click. The symptom appears when the cursor lands on a boundary and the two paths round screen coordinates differently. SFML 3.0.0 uses rectangles that include their left and top and exclude their right and bottom, so an exact shared atlas coordinate should have one owner.
Make hover and export report the same frame ID
Lay out four diagnostic cells with distinct corner marks and build a list of atlas coordinates immediately before, on and after each seam. Convert those points through the preview’s camera into screen positions at two zoom levels and with a shift in both axes. Feed the screen positions to hover and click. Log the resolved atlas point and chosen frame ID for each event.
Check a third case where one row is separated by a gutter. Pointer positions in the gutter should select nothing under a cell-only selection policy. Reuse the same viewport conversion for hover, click and keyboard-assisted inspection when those actions define selection in the same coordinate space. FrameSprite’s technical guide and test fixture includes the native boundary control.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.