Home   Help Search Login Register  

Author Topic: Pictures  (Read 2957 times)

0 Members and 1 Guest are viewing this topic.

MattE

  • Guest
Pictures
« on: 12 Nov 2003, 05:25:25 »
How do you put pictures that you have scaned onto your computer into a intro.

e.g. I want a man to say something then the picture comes up as though he is reading it.

Komuna

  • Guest
Re:Pictures
« Reply #1 on: 12 Nov 2003, 14:09:50 »
Hi!

The best way of doing it is through Resource Overlay. However, you must be sure that your image satisfies OFP image requirements:

2nx2n Image size and JPEG or PAA/PAC picture format (converted from JPG, BMP or TGA with TexView).

About JPEG - 24bit, 72d.inch-1 or higher resolution, not biger than 512x512 (px), otherwise it will increase the game lag and the quality won't be better...

About PAA/PAC textures - converted from 32bit TGA with alpha channel or 24bit TGA without it. The same size rules.

Don't forget the top link ;)
« Last Edit: 01 Jan 2009, 01:05:20 by Planck »

MattE

  • Guest
Re:Pictures
« Reply #2 on: 12 Nov 2003, 23:42:12 »
Screw it that sounds like a lot of work and very hard to do, so I'll find some other way to do it.

deaddog

  • Guest
Re:Pictures
« Reply #3 on: 13 Nov 2003, 04:26:31 »
If you're afraid of a little work then you picked the wrong game !!

Putting a picture in the game is quite easy but if you find a better way then please let us all know.

MattE

  • Guest
Re:Pictures
« Reply #4 on: 13 Nov 2003, 06:14:03 »
Hey mate take it easy.

I'm not afraid of a little work.

I play the game enough to do a bit of work, BUT I don't play it enough to waste my time on.

So if it's okay by you I'll get back to having a life, you might want to look into getting one of your own...

m21man

  • Guest
Re:Pictures
« Reply #5 on: 13 Nov 2003, 06:16:55 »
Quote
So if it's okay by you I'll get back to having a life, you might want to look into getting one of your own...

And I would suggest that you don't insult OFPEC patrons.

Komuna

  • Guest
Re:Pictures
« Reply #6 on: 13 Nov 2003, 12:45:16 »
I can't understand you MattE... :-\

If you were talking about 3Dmodeling or Advanced Scripting (I'm used to deal with both) then I would understand your hesitation...

However, we're talking about putting an image into OFP! It takes, lets say... 5 minutes of your whole life?

It's easy, you'll see:

Pick your image into a graphics editor - PhotoShop, PaintShopPro, FireWorks, whatever - and resize it (if required) into a 2nx2n size image (in other words, a 128x64 px picture, for example or 256x256 px, etc...). Save it as JPEG (.jpg) and put it into your OFP edited mission folder (\OFP\Users\Missions\MyMission.Intro).

After this, create a file called "description.ext". Go to the link I've posted in the top and copy a part of the description.ext file. Custom the settings of that file, personalize the picture settings, etc...

Then open OFP, load your mission (MyMission.Intro) and call the resource in the init field of the player unit: cutrsc ["MyPic","PLAIN"].
This way, you'll be able to see the image on the screen... Then keep exploring OFP's capabilities in order to achieve better results. Anymore doubts, post them at the Editing/Scripting: Sound & Cutscenes Board.

Good Luck!

...and here's a sample of the Description.ext:

Code: [Select]
class RscPicture
{
   type =0;
   idc = -1;
   style =48;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {1, 1, 1, 1};
   font = "tahomaB24";
   size = 0;
};
 
class RscTitles
{
   class MyPic
     {
      name = "MattE's Pic";
      duration = 5;
      idd = -1;
      movingEnable = 0;
      controls[]={MattePic};
     
      class MattePic: RscPicture
      {
         text="MattE_Picture.jpg";
         x=0; y=0; w=1; h=1;
      };
   };
};


Note:

x and y are the coordinates of the Pic's positioning on screen.
w and h are, respectivelly, the width and height of the pic.

If you place a trigger on the map, and open the "Effects" section, you'll find your pic (MattE's Pic) in the tittles section \ resources at the end of the list.

MattE

  • Guest
Re:Pictures
« Reply #7 on: 14 Nov 2003, 08:03:10 »
Okay, let me explain a little.

This patron guy was having a go at me at something that wasn't really important. I'd like to have an image in the game, but if there isn't who cares it's not as though my life is going to end because I dont have some little picture. I don't understand why this guy was having a fit over nothing.

But thank you everyone who has help I'll try to do it and get back to you.

Cheers and sorry for causing such a kuffuffle