bedalton / Caos-Plugin-IntelliJ

2 stars 0 forks source link

ATT Editor treats colors other than pure black as transparent #32

Closed Vermidia closed 10 months ago

Vermidia commented 10 months ago

Breeds that use colors like #010101 or #101010 have those colors treated as transparent, when in game they're visible.

bedalton commented 10 months ago

I am unable to replicate this behavior. Can you provide an example sprite?

Alternatively, can you dump the sprite and either provide a problematic image, or check the visible blacks and see if they really are #010101 or #101010, as they may have been changed during compile?

You can dump the sprite in IntelliJ by:

  1. Right clicking on the sprite in the project tree
  2. Select "Dump Sprite Images"
  3. Select output folder
  4. Click "okay"
Vermidia commented 10 months ago

Dumping the sprite makes the blacks transparent. When I open the c16 in Spritiist or in-game, the blacks are not transparent as expected. I can provide the sprite here.(Edit, the c2 thing seems to be a c2 thing).

Non-black eyes.zip

Provided is the c16 and original png. They were compiled using Spritist aswell.

bedalton commented 10 months ago

Spritist encodes and outputs the image with pure black, which is part of the problem. You can see that with any frame dumped by Spritist itself.

Transparent black though is written to the sprite file differently than color. What I did not realize is that if pure black is written like a color. It is visible as pure black.