Home   Help Search Login Register  

Author Topic: Out of Pure interest  (Read 1096 times)

0 Members and 2 Guests are viewing this topic.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Out of Pure interest
« on: 25 Oct 2005, 00:46:49 »
is it possible to play Video files in ofp like you would display a picture in a dialog or cutrsc?
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Out of Pure interest
« Reply #1 on: 25 Oct 2005, 01:56:45 »
Yes and no. You can't play a video file, but you can rapidly change a picture in a dialog. So if you took a video file apart into its individual frames (say, 30 per second), then used a script to run thru each of those frames at the same rate, you should have something that looks just like the original video.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline bdfy85

  • Contributing Member
  • **
Re:Out of Pure interest
« Reply #2 on: 25 Oct 2005, 02:03:53 »
You can see an example of this in the chain of command tomahawk pack ;)
Liberation Mod scripts&balance

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:Out of Pure interest
« Reply #3 on: 25 Oct 2005, 07:45:43 »
i was thinking of that general barron :), but i was concerened on the size of all the files if i put them in mymission folder, and writing the description for them would be crazy

Quote
You can see an example of this in the chain of command tomahawk pack  


do you mean as in loading a video file ?
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Out of Pure interest
« Reply #4 on: 25 Oct 2005, 08:34:32 »
i was concerened on the size of all the files if i put them in mymission folder, and writing the description for them would be crazy

I would think the size would be the same as the equivalent video file, since you are just separating the pictures that make up the video.

The description would be easy to do. All you need is one picture box, then use the ctrlsettext command to change the picture path. If you named the pictures 1.jpg, 2.jpg, 3.jpg, etc, then you could just have a small looping script that would run thru each of the frames. I haven't seen the Tomahawk pack, but I would assume they did something similar to this.

This could not be done with cutrscs though, since those take a second to fade into view.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline bdfy85

  • Contributing Member
  • **
Re:Out of Pure interest
« Reply #5 on: 26 Oct 2005, 00:40:18 »
Quote
I would think the size would be the same as the equivalent video file
No :) Why do you think people are messing up with codecs etc ? Compressed video ( i.e. avi etc ) is much smaller then banch of images.
Liberation Mod scripts&balance

Offline Blanco

  • Former Staff
  • ****
Re:Out of Pure interest
« Reply #6 on: 26 Oct 2005, 17:13:47 »
The moviescript is easy :

Code: [Select]
_i= 1
_number_of_pictures = 50
_delay = 1/25

#Loop
ctrlsettext [150, format ["movie\pic%1.jpg", _i]]
~_delay
_i = _i + 1
?_i < _number_of_pictures :goto "loop"

exit

In this example your pictures are named pic1, pic2,...up to pic50 and placed in a movie folder.
You only have to define one picture (pic1) in the description.ext and in this case the Idc number is 150
The movie runs on 25 fps, so with 50 pictures the movie won't be no longer than 2 seconds.  :P



« Last Edit: 26 Oct 2005, 17:14:59 by Blanco »
Search or search or search before you ask.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Out of Pure interest
« Reply #7 on: 27 Oct 2005, 16:13:20 »
This could not be done with cutrscs though, since those take a second to fade into view.
Not necessarily. Just define it fadein=0.

:beat: *Gets Shot* :beat: