Home   Help Search Login Register  

Author Topic: Transparencies in JPG TitleRsc  (Read 1509 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Transparencies in JPG TitleRsc
« 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
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline i0n0s

  • Former Staff
  • ****
Re: Transparencies in JPG TitleRsc
« Reply #1 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.

Offline Nexolate

  • Members
  • *
  • The lurking S.T.A.L.K.E.R.
Re: Transparencies in JPG TitleRsc
« Reply #2 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.
You'll only notice me when it's too late.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Transparencies in JPG TitleRsc
« Reply #3 on: 06 Apr 2008, 21:38:43 »
Thanks alot guys, now I know I'm not an idiot.

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Transparencies in JPG TitleRsc
« Reply #4 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.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Transparencies in JPG TitleRsc
« Reply #5 on: 06 Apr 2008, 22:51:37 »
Thanks again.

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.