Back to the Vavoom Forum Archives


Forum

PNG sprites

Tue, 11 Dec 2007 20:57:13

Crimson Wizard

Is it possible to set offsets (alignment) for a sprite represented by a PNG image?
Tue, 11 Dec 2007 23:16:11

Janis Legzdinsh

Yes, by using utility that you can download Here.
Sat, 29 Dec 2007 10:13:18

Crimson Wizard

Another question: why is it that there's always a white border around PNG sprites? It appears only in game, images themselves do not have it, for sure.
Thu, 03 Jan 2008 09:38:27

Janis Legzdinsh

That's the colour that transparent pixels have. And because of the linear texture filtering they may show up until a specific alpha value is reached. By enabling "blend sprite borders" option you should get less noticeable border.
Wed, 16 Jan 2008 15:43:14

Crimson Wizard

[quote="Janis Legzdinsh":3ewzkgjo] By enabling "blend sprite borders" option you should get less noticeable border. Actutally this made the border even more noticable. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
Wed, 16 Jan 2008 23:50:09

Firebrand

Try to use a darker color for the image's background, this way the outline won't be that noticeable, or if you have enough time, remove the most noticeable pixels from the outlines <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Thu, 17 Jan 2008 12:39:12

Crimson Wizard

I use transparent background, how I am supposed to "make it darker"? <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> And I see no sense in removing any pixels because, as I said that border is not on my sprite image, it appears only in game. Sprites have much darker border (drak-red, black).

Back to the Vavoom Forum Archives