Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Old Guy on Tue 22/06/2010 21:32:28

Title: Pink Artifacts On Transparent GUI
Post by: Old Guy on Tue 22/06/2010 21:32:28
I am using AGS Version 3.2 Final 5, and find that pink artifacts are showing up in the upper-left corner of transparent GUIs. The following screenshot shows three examples:

http://www.creativeloops.com/PinkArtifacts.jpg (http://www.creativeloops.com/PinkArtifacts.jpg)

The pink shows faintly using DirectDraw, and is more pronounced using Direct3D. The problem occurs on both a Window 7 and Windows 2000 machine having different graphics cards.

I usually test my game in windowed mode so I did not notice this problem until I happened to run a test in full-screen mode. Closer examination showed that this is also happening in windowed mode (640x480), it was just hard to see.
Title: Re: Pink Artifacts On Transparent GUI
Post by: Crimson Wizard on Tue 22/06/2010 22:44:57
The only thing that comes to my mind is that your image possibly has certain pixels of slightly different colour than the rest of background, so when you import the sprite they are not substituted by transparent colour.
Title: Re: Pink Artifacts On Transparent GUI
Post by: Old Guy on Wed 23/06/2010 00:28:01
Quote from: Crimson Wizard on Tue 22/06/2010 22:44:57
The only thing that comes to my mind is that your image possibly has certain pixels of slightly different colour than the rest of background, so when you import the sprite they are not substituted by transparent colour.

There is no image. Two of the examples were just transparent GUIs with nothing in them, and one example showed the same empty GUI with a label specified.
Title: Re: Pink Artifacts On Transparent GUI
Post by: Pumaman on Fri 25/06/2010 14:05:27
So this GUI has no background image or colour? Has anyone else seen anything like this?
Title: Re: Pink Artifacts On Transparent GUI
Post by: Old Guy on Sun 27/06/2010 05:42:37
Quote from: Pumaman on Fri 25/06/2010 14:05:27
So this GUI has no background image or colour? Has anyone else seen anything like this?


I did some further investigation, starting out with a blank game and changing all things related to the GUI, until I found out was causing the problem.

Turns out that the pink artifacts show up when you specify Classic for GUI Alpha Rendering Style under General Settings. If you specify Additive Opacity, there is no problem.

I have no idea what Additive Opacity actually means, but it fixes the problem in my game, so I am sticking with it.
Title: Re: Pink Artifacts On Transparent GUI
Post by: Pumaman on Mon 12/07/2010 21:08:22
Hmm strange, I'll see if I can reproduce it.