Several questions (Colorkey, atlases and power-of-two).
Posted: 2008-09-02T05:06:46-07:00
1. Can I convert the so-called colorkey into alpha? I.e. I have a gif sprite,
which is filled with some mask, i.e. 0xFF0000. It would take this mask
away and replace it with alpha==0.
2. Can IM actually create irregular tiles/atlases? I.e. take a series of pictures
with different sizes, then montage them into one irregular image. Ideally,
it would find an optimal placement so that least space is used.
3. How do I convert images to make power-of-two textures? I.e. I supply
image.png with 54x22 resolution, and it will automatically expand (not resize!)
it and save with 64x32, filling extra space with zero alpha.
Or, as a nice option, square power-of-two texture, i.e. 64x64, 128x128, etc.
which is filled with some mask, i.e. 0xFF0000. It would take this mask
away and replace it with alpha==0.
2. Can IM actually create irregular tiles/atlases? I.e. take a series of pictures
with different sizes, then montage them into one irregular image. Ideally,
it would find an optimal placement so that least space is used.
3. How do I convert images to make power-of-two textures? I.e. I supply
image.png with 54x22 resolution, and it will automatically expand (not resize!)
it and save with 64x32, filling extra space with zero alpha.
Or, as a nice option, square power-of-two texture, i.e. 64x64, 128x128, etc.