Thread: Unit creation
View Single Post
  #12  
Old August 21st, 2008, 10:07 PM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Unit creation

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.
Attached Files
File Type: zip fixed2751_Ao_Oni_1.zip (1.3 KB, 79 views)
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor

Last edited by Ballbarian; August 21st, 2008 at 10:20 PM..
Reply With Quote