Unit Cards in detail
lots of images, may take a minute or two to load
Getting Transparency to work in unit cards has been problematic,
thanks to a tipoff from Intrepid Sidekick the problem is now solved
You will need is a graphics utility that can edit and access channels
(photoshop is the one i use)
A Blank Unit Card
DOWNLOAD link to BlankUnitCard (in TGA and photoshop formats)
In this image you can see the layers,
as long as your unit picture never crosses into the white rectangle in the top left your card will display the number of men in the unit correctly,
simply paste in your image, merge the layers and you are done.
![]()
But if you want one that is 100% correct, here's how
For those who dont have photoshop i'll show you how to make one IN photoshop and you can adjust the technique for your preferred image editing package
I start with a battlefield picture of the unit i want
![]()
cut away the background
![]()
reduce the image size progressively until it fits into the blank-unit-card
![]()
this image is 100x110 - too large, but then i dont want the entire image on the card
paste the image onto the unit card,
![]()
now the fun part,
change your magic wand to 0 tolerance
/
![]()
hide the background layers
![]()
using your magic wand click in the transparent area, then right click and select similar,
![]()
what we have now is all the transparent areas selected,
semi transparent will be blended with the blank unit card (which I made from a screenshot of a totally invisible unit card)
the end result will be minimal "white halo" aka "colour bleed"
and your unit card will look just like a bought one.
time to have some fun
change channels
![]()
now we want to make all the rgb channels invisible,
![]()
and the alhpa channel visible,
ALSO we need to be able to edit the alphap channel
![]()
when you do this your toolbox (on the left) will change to greyscale mode - this is good
![]()
now we quite simply edit/fill the selected area BLACK
and leave the area behind the unit WHITE
![]()
![]()
put the channels back in the correct order
(hiding the alpha channel)
![]()
Switch back to layers and make them all visible
![]()
Flatten image
![]()
save it as a TGA with 32 bits
rename it to the name you used for DICTIONARY in export_descr_unit.txt ("edu")
add a hash in from of the name,
the unit in this example is called briton_fanatic_f_Sword, so it is named #briton_fanatic_f_Sword.tga
drop the unit card into the correct faction folder in data/ui/units/faction
use in game
![]()
![]()
here we see the AI doing a classic stupid move, marching across the front of my line to attack some light cavalry that are miles away on my left flank - naturally i am going to hit his flank as he goes by,
this battle will be over shortly...
![]()
he did not stand a chance...
Cheers,
B.



Reply With Quote
/

)



Down with the enemies of Byzantium!
Bookmarks