Page 2 of 3
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 7:44 pm
by Isaac
LordGarth wrote:What is the exact code and everything needed to be put into the cinematic folder.
LordGarth
It's in the above link. All you need is the video; place that in your mod, and call it via script.
An example using an .ivf video placed in the cinematics folder:
Code: Select all
GameMode.playVideo("mod_assets/cinematics/cine.ivf")
In practice, you need to create the video in a video editor ~any one of them should work to make the video itself. After you have your video, you need to compress it using the vp8 codec. The Almost Human gives an example for the free FFMPEG video encoder, but other encoders can be used.
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 7:58 pm
by LordGarth
okay a video placed in the cinematic folder.
lua script entity with GameMode.playVideo("mod_assets/cinematics/cine.ivf")
does the lua script have to be activated with a pressure plate.
Is there a way of taking video in game.
Does anyone know a good video editing software.
How is text and video put with this video.
Lordgarth
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 8:30 pm
by LordGarth
I meant text and audio put with the video.
LordGarth
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 8:33 pm
by Isaac
LordGarth wrote:lua script entity with GameMode.playVideo("mod_assets/cinematics/cine.ivf")
does the lua script have to be activated with a pressure plate.
You can put the call inside a function, and trigger it as usual; [timer/floor_trigger/button...etc].
Is there a way of taking video in game.
Fraps, or OpenBroadcast come first to mind.
Does anyone know a good video editing software.
Windows comes with a movie editor, there is also VirtualDub, and you might have one that came free with DVD authoring software.
Blender (of course)
A quick search on Google (or other engine) should return a host of options.
How is text and video put with this video.
Two options: Use the video editor to add text; or use the GUI functions in LoG2 to overlay text.
The second option is better, because the text can be dynamic... It can be used to address a character by name, or include other variables in the text captions.
** For audio: Place the soundtrack as an oog file in the folder with the video and use the same name [prefix] as the video.
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 8:36 pm
by LordGarth
sounds all very crazy. Perhaps I can find a good video on the internet and add voice to it with some good video editing software and perhaps add music to it too.
LordGarth
Re: cinematic in LoG2 ?
Posted: Sat Nov 19, 2016 9:51 pm
by Isaac
Your video can be made of static imagery... similar (in appearance) to LoG1's cinematics. Windows Movie Maker could surely string pictures together; though I haven't tried it.
Re: cinematic in LoG2 ?
Posted: Mon Nov 21, 2016 6:11 pm
by LordGarth
I found some good free spooky videos on the internet and I edit it with NCH Software video pad. I can put text on it in that software and music and sound effects.
I have to find a software that will convert wmv file to ivf file.
LordGarth
Re: cinematic in LoG2 ?
Posted: Mon Nov 21, 2016 6:26 pm
by kelly1111
If you get it to work. Are you willing to share an example dungeon with us ?
Re: cinematic in LoG2 ?
Posted: Mon Nov 21, 2016 6:52 pm
by LordGarth
I need to find a software that converts to ivf files.
I will try to make a little dungeon to see if the cinematic works.
LordGarth
Re: cinematic in LoG2 ?
Posted: Mon Nov 21, 2016 7:24 pm
by Isaac
FFmpeg is free, and seemingly suggested by the developers; (they provide instructions).

(I've used it myself to convert videos into .ivf files for Grimrock 2.)
http://www.grimrock.net/modding/creating-cinematics/
https://www.ffmpeg.org/
*Instructions for Windows:
http://www.wikihow.com/Install-FFmpeg-on-Windows
http://trac.ffmpeg.org/wiki/Create%20a% ... m%20images