Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Png Transparent issue - Like Bugged?

Author
Message
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 4th Dec 2013 07:26
Hi,

i'm having a bit of a problem with using png transparency.

from the image attached, you can see the background being show in area of transparency.

the background has a depth of 9999 and the dark green tile has a depth of 8999.
the tile with the issue can see blue and white even if it has a depth of 1(front).

has anyone encounter this issue or did i miss a setting?

any way, any help appreciated!

regards

Attachments

Login to view attachments
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Dec 2013 11:42
The good news is that it's not bugged, it is working as expected. However I'm not quite sure what the problem is from your explanation?

Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 4th Dec 2013 14:12
Its hard to understand what the problem is from your explanation but I suspect the issue is in the image of the tile itself. If its drawn on a white background you're probably seeing the background colour bleed into the transparent area. If the image is very large and is being resized by AppGameKit before being displayed this problem would be more pronounced.

When I make my pngs I will have an object of a certain shape. Before I export the png with this shape as its transparency mask I will blur and duplicate a copy of it and flatten it to the background. This ensures if the image is resized there will be pixels of the correct colour in the transparent areas of the image.

Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Dec 2013 15:29
Also, if I remember right and this hasn't been fixed, depths above some value (5000?) are assumed to be for 3D stuff and they are handled in a different part of the display building in the AppGameKit core.

It is best to use depths below 5000 (I think) for 2D stuff.

If this has been 'fixed' or my number is wrong, could some AppGameKit person please correct my misinformation?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2025-05-23 17:37:34
Your offset time is: 2025-05-23 17:37:34