cinematic in LoG2 ?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: cinematic in LoG2 ?

Post 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.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: cinematic in LoG2 ?

Post 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
Dungeon Master and DOOM will live forever.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: cinematic in LoG2 ?

Post by LordGarth »

I meant text and audio put with the video.

LordGarth
Dungeon Master and DOOM will live forever.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: cinematic in LoG2 ?

Post 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) 8-)

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.
Last edited by Isaac on Sat Nov 19, 2016 8:40 pm, edited 1 time in total.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: cinematic in LoG2 ?

Post 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
Dungeon Master and DOOM will live forever.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: cinematic in LoG2 ?

Post 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.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: cinematic in LoG2 ?

Post 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
Dungeon Master and DOOM will live forever.
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: cinematic in LoG2 ?

Post by kelly1111 »

If you get it to work. Are you willing to share an example dungeon with us ?
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: cinematic in LoG2 ?

Post 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
Dungeon Master and DOOM will live forever.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: cinematic in LoG2 ?

Post by Isaac »

FFmpeg is free, and seemingly suggested by the developers; (they provide instructions). 8-)
(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
Post Reply