Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Squinky on Wed 19/01/2011 03:38:16

Title: Anti-Aliasing character sprites. Any new tricks?
Post by: Squinky on Wed 19/01/2011 03:38:16
Howdy,

I haven't actually messed around in the editor for a good number of years. I've noticed some awesome new features since I last used it.

Getting to the point:

Is there some fancy new way to import sprites that are drawn on a transparent layer, with an anti-aliased line art, and not have those goofy artifacts that anti-aliasing used to cause in AGS? White pixels and what not.

I've seen some promising functions, so, hopefully I'm not wasting you time :)
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: Ryan Timothy B on Wed 19/01/2011 04:24:47
Yep. Just import a png image with alpha transparency and it will work without tweaking.
Also make sure your game graphics are set to 32-bit otherwise alpha channels won't work.
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: Squinky on Thu 20/01/2011 00:31:16
You sir, are a beautiful man. Thanks for the awesome information.
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: Dualnames on Thu 20/01/2011 12:49:55
Quote from: Ryan Timothy on Wed 19/01/2011 04:24:47
Yep. Just import a png image with alpha transparency and it will work without tweaking.
Also make sure your game graphics are set to 32-bit otherwise alpha channels won't work.

And when you import an alpha channeled sprite make sure the transparency/whatever setting is on Leave-As-Is.
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: ThreeOhFour on Thu 20/01/2011 12:56:03
Quote from: Dualnames on Thu 20/01/2011 12:49:55
And when you import an alpha channeled sprite make sure the transparency/whatever setting is on Leave-As-Is.

Hmm, I have never had to do this. As long as the top-left (or whatever) corner is free, usually they import fine for me.

On an interesting note, you can "Quick import sprites" by right clicking in the sprite folders, and although it doesn't prompt you to keep alpha channels like it does when you go to import a single sprite, it should automatically do it for you (although I think this usually goes on your last settings). This way you can import loads of alpha channeled sprites at once. Hoorah!
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: Dualnames on Thu 20/01/2011 13:01:10
Quote from: Ben304 on Thu 20/01/2011 12:56:03
Quote from: Dualnames on Thu 20/01/2011 12:49:55
And when you import an alpha channeled sprite make sure the transparency/whatever setting is on Leave-As-Is.

Hmm, I have never had to do this. As long as the top-left (or whatever) corner is free, usually they import fine for me.

On an interesting note, you can "Quick import sprites" by right clicking in the sprite folders, and although it doesn't prompt you to keep alpha channels like it does when you go to import a single sprite, it should automatically do it for you (although I think this usually goes on your last settings). This way you can import loads of alpha channeled sprites at once. Hoorah!

Usually and actually come to think of it always, my left top corner is free from pixels, but for a reason, only leave-as-is works. The rest settings make pixel artifacts once the image is imported. I can show you the equivalent of sprites I've imported. Usually the sprites I import are like 320x240 bg and something drawn in the middle, then I just crop. But even to that example top left or anything but leave-as-is won't work. That concerns 3.1.2 version for sure, as I'm mainly using that version for now.
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: ThreeOhFour on Thu 20/01/2011 13:23:43
How strange.

The only time I've had problems with this is when exporting multiple sprites out of AGS into a file - exporting multiple files with alpha channels at once makes them full of artifacts.

I use version 3.1.2 as well (haven't learned to use the new audio system :P), so it's strange that you'd get this problem.

Also, I never crop sprites in-editor. Perhaps that has something to do with it?
Title: Re: Anti-Aliasing character sprites. Any new tricks?
Post by: Dualnames on Thu 20/01/2011 13:32:05
Quote from: Ben304 on Thu 20/01/2011 13:23:43
How strange.

The only time I've had problems with this is when exporting multiple sprites out of AGS into a file - exporting multiple files with alpha channels at once makes them full of artifacts.

I use version 3.1.2 as well (haven't learned to use the new audio system :P), so it's strange that you'd get this problem.

Also, I never crop sprites in-editor. Perhaps that has something to do with it?

Regardless of the crop, the sprites don't get alpha unless imported in leave-as-is. I use pngs made via photoshop. I also use 3.1.2 cause I'm not familiar with the new audio yet btw. We're twins!!  :D