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 / Transparency error with GetImage()

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th May 2012 21:00 Edited at: 5th May 2012 21:01
I believe there is a trransparency error when using getImage, can anyone else confirm this? I have logged it on the issues list, with the sample code if anyone can test it:

http://code.google.com/p/agk/issues/detail?id=288

The issue is, if you have an opaque image and a transparent image overlaying it, getImage ignores the opacity and gets a transparent image. If one of the images is totally opaque, it is impossible for the composite image to be transparent!

Below, the sphere on the left is the composite image and should not
be transparent...



the code...



Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th May 2012 22:36
That's a tricky one, it is happening because the transparent image on top overwrites the back buffer alpha with the new alpha value. I'll see if there is a way to write a different alpha value in this case.

Login to post a reply

Server time is: 2024-05-03 06:43:27
Your offset time is: 2024-05-03 06:43:27