OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: laggy on 06 Apr 2008, 21:16:33

Title: Transparencies in JPG TitleRsc
Post 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
Title: Re: Transparencies in JPG TitleRsc
Post by: i0n0s on 06 Apr 2008, 21:26:00
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.
Title: Re: Transparencies in JPG TitleRsc
Post by: Nexolate on 06 Apr 2008, 21:28:32
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.
Title: Re: Transparencies in JPG TitleRsc
Post by: laggy on 06 Apr 2008, 21:38:43
Thanks alot guys, now I know I'm not an idiot.

Laggy
Title: Re: Transparencies in JPG TitleRsc
Post by: Mandoble on 06 Apr 2008, 22:02:45
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.
Title: Re: Transparencies in JPG TitleRsc
Post by: laggy on 06 Apr 2008, 22:51:37
Thanks again.

Laggy