Colorkey and map tiles

#9
Tracked down the code for GIMP's antialias filter, but it turned out to not be real antialiasing. Found the code's home (https://icculus.org/~aspirin/gimp/auntiealias/) on the web later today too.

Anyway adapted that for Som. It definitely helps, but a real antialiasing algorithm would be a lot better. The pseudo-aa code GIMP uses only operates over 3x3 pixels and isn't really aa at all. I'm not sure it would make sense to expand it to like 5x5 pixels, but doing that would help if so. I will probably email the author and ask / see if they know of any better aa code lying around (though usually at least 3 out of 5 emails poached off the web are no longer of any good)

Ultimately I don't think the colorkey AA will be integrated directly into the mix. I'm thinking it's best to dirty mipmap the textures as they are so they can be quickly swapped out for higher quality versions to be generated / cached on the fly. I'm also thinking if a 1 pixel border was filled in over the bordering black pixels (combined with the black to alpha conversion / antialiasing) then there is a good chance even DirectX7 could be adapted to use the much improved colorkey (for some reason DX7's colorkey seems worse than just knocking out the black texels) techniques... except when blending is involved the edge would have to be fuzzy.
Reply



Messages In This Thread
Colorkey and map tiles - by HolyDiver - 2010-10-25, 05:38 PM
Re: Colorkey and map tiles - by Verdite - 2010-10-25, 06:04 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-25, 07:05 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-25, 07:10 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-25, 07:41 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-26, 06:56 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-26, 10:34 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-28, 02:04 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-10-30, 04:00 AM
Re: Colorkey and map tiles - by HolyDiver - 2010-11-01, 02:12 AM
Re: Colorkey and map tiles - by HolyDiver - 2010-11-01, 02:37 AM
Re: Colorkey and map tiles - by Verdite - 2010-11-01, 02:42 AM
Re: Colorkey and map tiles - by HolyDiver - 2010-11-01, 05:52 PM
Re: Colorkey and map tiles - by HolyDiver - 2010-11-03, 04:04 AM



Users browsing this thread:
11 Guest(s)