.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Unit creation (http://forum.shrapnelgames.com/showthread.php?t=38330)

Aezeal August 21st, 2008 03:13 PM

Re: Unit creation
 
1 Attachment(s)
Well here is the sprite.. I checked.. the RGB thingies are good at least

Ballbarian August 21st, 2008 10:07 PM

Re: Unit creation
 
1 Attachment(s)
The cause of the problem is just a theory, but the solution works.
I removed the alpha channel from your image in GIMP and replaced the transparency with pure black RGB(0,0,0). Saved the image and tested it in game. Worked like a charm. I will upload the fixed version to this post.

I believe that if you want to use the transparency (alpha channel), then you have to manually create a darkened shadow for it to appear normally in game. If you remove the alpha channel then the black becomes transparent and the magenta becomes a shadow. You shouldn't have to use pure magenta, as I believe slight variations will work, but I see no reason to gamble or experiment with it.

It is also worth noting that removing the alpha channel reduces the file size considerably. (From 3kb to 2kb.)

Edit:
The image will need cleaned up as there were some pixels around the edges of the unit were not fully transparent and therefore were not turned pure black. Looks like maybe a spray or rounded tool was used to draw. An easy way to fix this would be to fill the pure black background with a lighter color and then user a color replace tool to get rid of the near black around the edges of the unit.

Hope this helped.

Edi August 22nd, 2008 01:25 AM

Re: Unit creation
 
If he uses GIMP, he must alter the drawing tool settings to have sharp edges, otherwise it gives a gradual fade with color variations, which produces that effect.

HoneyBadger August 22nd, 2008 02:15 AM

Re: Unit creation
 
Gimp never gave me good results. I don't get what people see in it, actually. Has anyone ever tried ImageForge? It works much better for me, and seems to require less resources.

Aezeal August 22nd, 2008 01:04 PM

Re: Unit creation
 
ok that alpha channel... how do I remove it (I want to thank ballbarian for his changed thingie but I've got quite some I need to edit I figure so I really need to know how to do it :D)

adn I dislike GIMP too takes a long time to load etc does image forge have the same options?

Ballbarian August 22nd, 2008 02:29 PM

Re: Unit creation
 
I don't know anything about Image Forge, but in GIMP you go to Layer/Transparency/Remove Alpha Channel. If you do this it helps to be sure your base background color is already set to true black. Maybe it is a similar process in Image Forge.


All times are GMT -4. The time now is 11:11 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.