Home   Help Search Login Register  

Author Topic: playmovie?  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: playmovie?
« Reply #15 on: 11 May 2008, 13:54:17 »
Hmmmm, I always thought Intros were not possible in MP, I thought it was only cutscenes that could be used in MP.



Planck
I know a little about a lot, and a lot about a little.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: playmovie?
« Reply #16 on: 11 May 2008, 14:08:35 »
Correct, a cutscene acting like an intro.

Offline icewind.123

  • Members
  • *
Re: playmovie?
« Reply #17 on: 12 May 2008, 11:45:32 »
Movies in ArmA/OFP is possible since some time, but it is done  as  loki72 pointed out, in single frames.

Normally you would have to define every single frame in the description.ext of your mission but there is
light at the end of the tunnel...
Mapfact has released a dialog tutorial 4 years ago, "EinblendungenTutorial4b" includes a demo mission which plays a BHD
sequence (the quality is pretty low because the jpeg itself has been stretched) .

You just have to change the font in the description.ext to ArmA fonts, extract the movie you want to play as bmp,
mass convert to jpeg (set name to FrameXXX,add canvas to avoid stretching, experiment with different quality and size, I got 1:30 minutes of Spongebob in acceptable quality down to 3mb, which is ok imo).


http://www.mapfact.net/include.php?path=content/download.php&contentid=252&PHPKITSID=f033cf38fe4dd08051c040ddb2f41f88


The script is working just great  :good: , I wonder why nobody used it so far.

And here some explanation of the camera.sqs, where the info about the movie is stored
(might be hard to tell from the readme if you don't speak german  ;) ) :





titleRsc ["Text_1","BLACK OUT",0]

0 fadeMusic 1   
playMusic "tribal"    //"Sound" of the movie, even if you put it before the movie starts, it loads some second later than the movie though, so you have to add an empy area with e.g. audacity, I think it was around 1.2 seconds, it's not hard to get it right, just try//

~4

titleRsc ["Text_2","BLACK OUT",0]    //just a text saying blabla demonstration, can be left out if the movie should start instant//

~4

titletext [" ","BLACK IN"]

_ok = createdialog "DlgVideo"

ctrlshow [106, false]

_i = 1
_delay = 1/24        //IMPORTANT, here you set how many frames should be shown per second, if set to a very slow value you can create slideshows...//

ctrlshow [106, true]

ctrlsettext [107, "Black Hawk Down"]

;Video abspielen===================================
#Loop

ctrlsettext [106, format ["video\Frame%1.jpg", _i]]
~_delay
_i = _i + 1
?_i < 182:goto "loop"     //IMPORTANT: Here you define at which frame the movie stops, if you have 400 frames you have to change it to 400//

TitleCut ["","BLACK",2]

~0.5

closedialog 0

TitleCut ["","BLACK IN",2]

~1

hint "Ende der Demonstration."

~3

Ende = true

EXIT
« Last Edit: 12 May 2008, 11:54:28 by icewind.123 »

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: playmovie?
« Reply #18 on: 12 May 2008, 23:28:34 »
holy cow! :o... but i bet it looks great... i will make a small intro and get back to this topic.