OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: laggy on 06 Apr 2008, 21:16:33
-
Hi... me again.
I'm trying to make this work:
JPG TitleRsc which should have parts of image transparent, so you can still see the game view. No matter how I try, the transparency doesn't work.
Even though I saved the JPG with transparent background and superimposed a cut out object in another layer, the areas that should be transparent become white in the game.
Is this a limitation of JPGs (does it only work with .paa?), might it be a .ext mistake or am I just an idiot with photoshop?
#my .ext
class RscTitles
{
class mypic
{
idd=-1;
movingEnable=true;
duration=10;
fadein = 3;
fadeout = 3;
name="mypic";
controls[]={"mypic"};
class mypic
{
x = 0.3; y = 0.2;
w = 0.4; h = 0.4;
type = 0;
idc = -1;
style = 48;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = BitStream;
sizeEx = 0;
lineSpacing = 0;
access = ReadAndWrite;
text = "myimg.jpg";
};
};
};
#end of my .ext
Thanks
Laggy
-
Is this a limitation of JPGs (does it only work with .paa?), might it be a .ext mistake or am I just an idiot with photoshop?
Limitation of JPG, no support of an alpha canal.
-
Yeah, last I checked JPGs don't support Transparency, they (or at least my version of Photoshop) defaults to White.
Image types that support Transparency that I can name are GIF and PNG. Whether these will work with ArmA, I'm unsure.
Hope this helped.
-
Thanks alot guys, now I know I'm not an idiot.
Laggy
-
What you need is a paa file, not a jpg file. You may create a tga image with alpha chanel (transparency), and then use BIS TextView2 to convert it to paa.
-
Thanks again.
Laggy