Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: SANNOI on April 21, 2003, 03:31:46 AM

Title: Antialiasing problem
Post by: SANNOI on April 21, 2003, 03:31:46 AM
Hi everybody!

I'm having some problems with the TGA Alpha. I've create the tga images with alpha channel in Phtoshop and it's ok. But when I run my game the contours of the main actor appears white. I see the actor file and the property "Shadowable" is false (I've thinked that the engine could have interpreted that the image is a BMP). It seems like when the engine didn't support the TGA's files and the property "Shadowable" was true. I post an image of my problem:

(http://usuarios.lycos.es/modelart/ss/guy_prueba.jpg)

Can anybody help me, please?

Thank you,

SANNOI
Title: Re:Antialiasing problem
Post by: Mnemonic on April 21, 2003, 08:01:44 AM
Could you post one of those TGA files, please?
Title: Re:Antialiasing problem
Post by: SANNOI on April 21, 2003, 01:07:17 PM
Yes, here it's one of this TGA:

http://usuarios.lycos.es/modelart/ss/guy_1.tga (http://usuarios.lycos.es/modelart/ss/guy_1.tga)

Thanks,

SANNOI
Title: Re:Antialiasing problem
Post by: Mnemonic on April 21, 2003, 04:18:15 PM
Hi, I think the problem is when the actor is scaled, the edges get blended with the background (it's the default behaviour no matter whether there's an alpha channel or not). Now, because the alpha doesn't have "sharp" edges, some of the white pixels around Guybrush get blended as well, thus resulting in the white graphical artefacts. I see too possible solutions: 1) fill the white space with some dark color (black or dark shadow) or 2) make the alpha channel with sharp edges (i.e. leave the antialiasing to the engine).
Note that all of this only applies to scalable objects.

Well, that's how I see it, maybe some artist will correct me...?