This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-09-21 13:59:09

tchan5158
New Scratcher
Registered: 2010-09-19
Posts: 25

Anti aliasing on Sprites?

Hello  big_smile

Was wondering if it is possible to import a sprite in a format that supports transparency (such as PNG and GIF) while keeping the anti aliasing of edges like in JPGs.

So far, if I want my sprites to have a nice smooth edge, I import as a JPG and manually clean them up in Scratch. 

If I import as a PNG or GIF, any smooth edges or half transparent colors are abruptly cut off, leaving a jagged cookie-cutter edge.   sad

Was just wondering if there was another way.   smile

-Tommy

Offline

 

#2 2010-09-21 14:34:16

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Anti aliasing on Sprites?

tchan5158 wrote:

Hello  big_smile

Was wondering if it is possible to import a sprite in a format that supports transparency (such as PNG and GIF) while keeping the anti aliasing of edges like in JPGs.

So far, if I want my sprites to have a nice smooth edge, I import as a JPG and manually clean them up in Scratch. 

If I import as a PNG or GIF, any smooth edges or half transparent colors are abruptly cut off, leaving a jagged cookie-cutter edge.   sad

Was just wondering if there was another way.   smile

-Tommy

Hey tchan5158, unfortunately Scratch at this point doesn't support semi-transparency and keeps the jagged edges for PNG and GIF files.

There really isn't much of a workaround with the edges issue. Edges do appear smoother online, but, if we're just talking about running projects offline, unfortunately there isn't much that can be done to retain the smooth edges of GIF or PNG images.  sad

A workaround for semi transparency is to create a secondary sprite for the semi-transparent section and then use the ghost effect (found under the Looks section in Scratch [aka, one of the purple blocks]) to create the desired effect.  smile

I hope this helps out in some way. Maybe more Scratchers here with experience with Scratch graphics have better alternative solutions.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2010-09-21 15:12:19

tchan5158
New Scratcher
Registered: 2010-09-19
Posts: 25

Re: Anti aliasing on Sprites?

Hey tchan5158, unfortunately Scratch at this point doesn't support semi-transparency and keeps the jagged edges for PNG and GIF files.

There really isn't much of a workaround with the edges issue. Edges do appear smoother online, but, if we're just talking about running projects offline, unfortunately there isn't much that can be done to retain the smooth edges of GIF or PNG images.  sad

A workaround for semi transparency is to create a secondary sprite for the semi-transparent section and then use the ghost effect (found under the Looks section in Scratch [aka, one of the purple blocks]) to create the desired effect.  smile

I hope this helps out in some way. Maybe more Scratchers here with experience with Scratch graphics have better alternative solutions.  smile

Thx  smile   Hm...that would probably slow down my computer if i double on the sprites just to make things look smooth  sad

I'll just keep manually cleaning up the jpgs then.  ;_;

-Tommy

Offline

 

Board footer