Home   Help Search Login Register  

Author Topic: JPG in intro  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
JPG in intro
« on: 31 Jul 2004, 14:08:29 »
How can I put a full screen picture (JPG or PAA,whats the best?) in the intro of MP game? ???

And let it show for x seconds?

Thank you



http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:JPG in intro
« Reply #1 on: 31 Jul 2004, 15:07:53 »
it has to be a paa, in a special format, and described in the description.ext
example:
Quote
onLoadMission= "USI MAP MAKING STUDIO"
onLoadIntro= "USI MAP MAKING STUDIO"
onLoadIntroTime = false;
onLoadMissionTime = false;



  class CfgSounds
{
     sounds[]={usi};
     class usi
    {name = "usi";sound[] = {"usi.ogg", 10, 1.0};titles[] = {};
      };
};

  class RscStdText
{
   type=0;
   idc=-1;
   style=2;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="TahomaB14";
   size=3;
};

  class RscTitles
{
   titles[]={starttext1,};
   
   class starttext1
   {
        idd=-1;
        movingEnable=0;
        duration=3000;
        fadein=2;
      fadeout=2;
        name="starttext1";
        controls[]={"Screen"};
        
        class Screen : RscStdText
        {
             style=48;
         text="usicredits.paa";
         colorBackground[]={0,0,0,1};
         // across screen
             x=0;
         // up screen
         y=0;
         // pic width
         w=1;
         // pic height
         h=1;
         };
      };









Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:JPG in intro
« Reply #2 on: 31 Jul 2004, 16:14:55 »
Thx alot Zombie.

Works fine...

Another prob:my game resolution is 1280 x 1024.
I would like to implement an old screenshot in the intro..

Converting JPG to PAA , Textview only allows powers of 2... :-\

Ehm,how can i do that without misform the original pic?

http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

rOk

  • Guest
Re:JPG in intro
« Reply #3 on: 31 Jul 2004, 17:22:10 »
1024 x 1024 would probably not distort the pic so much.

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:JPG in intro
« Reply #4 on: 01 Aug 2004, 15:49:23 »
To Zombie;

It also works with JPG files,and bcos PAA is about 6 times bigger then JPG...
(also reso of powers of 2; 512 x 512 or 1024 x 1024)

Final Solution:
in Description .ext:

class starttextx
   {
        idd=-1;
        movingEnable=0;
        duration=6;  
        fadein=2;  
      fadeout=2;
        name="starttext_x";
        controls[]={"Picture_blabla",};
        
        class Uniforms : RscStdText
        {
                        style=48;
         text="Picture_blabla.jpg";
         colorBackground[]={0,0,0,1};
         size=0.75;             
             x=0;
             y=0;
             w=1;
             h=1;
        };
    };

activate in intro.sqs:

TitleRsc ["starttext_x","plain",8]


Thx to Zombie and rOk for the help.

Topic solved  :)
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

DBR_ONIX

  • Guest
Re:JPG in intro
« Reply #5 on: 02 Aug 2004, 15:28:25 »
If you resize the picture to 1204x1204, the game will strech it out.. And it will look normal

- Ben
PS, you didnt' click the solved button :P

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:JPG in intro
« Reply #6 on: 02 Aug 2004, 16:08:10 »
Ah ok,done  ;D

Btw its 1024 x 1024 ;)  :P
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)