sprite ai
Audit the tint bytes before debugging the sprite shader
A generated palette can look right in an editor while the in-game sprites pick up an unexpected orange cast. First compare the tint’s four decoded channel values on both sides of the import. If a source uses AARRGGBB and feeds its packed number directly to SFML 3.0.0’s RGBA constructor, the opacity byte becomes red.
Add a paired reference tint
Create a palette entry with four different byte values and a plain white diagnostic sprite. In the same scene, display the diagnostic sprite twice. Set the reference tint with explicit red, green, blue and alpha channels. Set the second tint through the normal palette file and runtime import. Record both converted tuples before drawing, then compare the two squares against the same neutral background.
If the tuples differ, trace the schema version or color order in the importer. Matching tuples narrow the search to later stages such as texture modulation or the compositor. Preserve one paired entry in a test file whenever a new art tool is added to the pipeline. Give the imported field an explicit channel-order name so a shared export cannot silently acquire ambiguous semantics. FrameSprite’s technical guide and test fixture shows a worked byte-order example.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.