gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Photoshop tip for images with alpha sections

#95690 - TheRain - Sun Jul 30, 2006 7:52 pm

Just wanted to share this tip since I've been searching for the answer and just found it. Photoshop will try to interpolate any image you create and will, thus, blend the edges of differrent elements of an image. This is great for publications and such, but the outcome if you are trying to create sprites with transparent portions for a game is that you get a mix of unwanted colors on your edges.

To fix this, in Photoshop, go to the Edit menu -> Preferences then ->General

In this screen, go down to Image Interpolation and change the setting to "Nearest Neighbor". Now when you scale things, rotate, or anything, Photoshop will not try to compensate for the loss in quality and you will maintain sharp jaggy edges. It may not look as nice, but the result is better than trying to use the Sharpen tool on your edges, I garantee that.

Likewise- the shape tool will still try to anti-alias the edges of shapes you create... you need to use the "Fill Pixels" option when doing this, which is in the top iconic menu that shows up with the shape tool. Next, uncheck anti-aliasing and you're set to go.

#95760 - LOst? - Sun Jul 30, 2006 10:59 pm

Good stuff to know. Thanks
_________________
Exceptions are fun