id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Level Editing => Topic started by: douglas quaid on January 11, 2016, 08:17:09 AM

Title: Chaingun ROQ Movie
Post by: douglas quaid on January 11, 2016, 08:17:09 AM
Hey guys,

I'm working on another multiplayer map and am trying to set up an in-game gui that showcases the chaingun video. The trouble is, I can't seem to find it in the gui search. Any ideas?

Thanks.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 11, 2016, 09:18:03 AM
Quote from: douglas quaid on January 11, 2016, 08:17:09 AM
Hey guys,

I'm working on another multiplayer map and am trying to set up an in-game gui that showcases the chaingun video. The trouble is, I can't seem to find it in the gui search. Any ideas?

Thanks.

You will find in materials/ and material that contains RoQ video is used in the GUI.
Title: Re: Chaingun ROQ Movie
Post by: aphexjh on January 11, 2016, 11:11:20 AM
Does anyone know of any tools for making roq videos?
Title: Re: Chaingun ROQ Movie
Post by: The Happy Friar on January 11, 2016, 12:12:47 PM
Q3A tools includes a ROQ encoder: ftp://ftp.idsoftware.com/idstuff/quake3/tools/

as far as I know same was used for D3.
Title: Re: Chaingun ROQ Movie
Post by: argoon on January 11, 2016, 12:22:19 PM
Quote from: aphexjh on January 11, 2016, 11:11:20 AM
Does anyone know of any tools for making roq videos?

Here http://www.moddb.com/games/overdose/downloads/overdose-tools-set (http://www.moddb.com/games/overdose/downloads/overdose-tools-set)

QuoteODVideo - Another major tool that we get a lot of requests about. ODVideo takes any outputted images in animation form (For example, dumped right from the console with aviDemo) and turns them into a .ROQ video (complete with custom sounds), all in a handy GUI. But wait, that's not all! It has separate frame rate and bit rate settings with a higher resolution, which, simply put, allow for stunning 720p 30fps 20mbit/sec videos.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 11, 2016, 06:13:41 PM
Quote from: argoon on January 11, 2016, 12:22:19 PM
Here http://www.moddb.com/games/overdose/downloads/overdose-tools-set (http://www.moddb.com/games/overdose/downloads/overdose-tools-set)

Downloads empty .zip for me from ModdDb. Managed to download it from Gamefront.  No source code available.
Title: Re: Chaingun ROQ Movie
Post by: The Happy Friar on January 11, 2016, 09:08:49 PM
The zip from moddb.com worked for me.  Maybe some happened on the download.
Title: Re: Chaingun ROQ Movie
Post by: MrC on January 12, 2016, 01:30:14 AM
I also got an empty .zip, not sure why.
Was using Chrome. Tried in Edge and it worked... odd.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 12, 2016, 08:17:27 AM
Mallard + Trojans maybe?
Title: Re: Chaingun ROQ Movie
Post by: The Happy Friar on January 12, 2016, 08:39:19 AM
Strange that's be on moddb, but maybe a plugin is blocking it (think's it's an issue when it isn't?)
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 12, 2016, 09:56:50 AM
Thanks motorsep. Well, I've found the material but how would I implement it as I can't find it within the editor.

video/video_chaingun {
translucent {
videomap "sound/VO/video/video_chaingun.roq"
linear
}
}
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 12, 2016, 10:03:45 AM
Quote from: douglas quaid on January 12, 2016, 09:56:50 AM
Thanks motorsep. Well, I've found the material but how would I implement it as I can't find it within the editor.

video/video_chaingun {
translucent {
videomap "sound/VO/video/video_chaingun.roq"
linear
}
}


What do you mean by "implement it" ? Make material in notepad++ (or whatever text editor you use) and open your  gui file in your text editor and add material name to the gui element.
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 12, 2016, 10:52:25 AM
I've added this to my new gui file after creating my new material file but in-game only displays a blank screen.

windowDef ChaingunVid
{
rect 0,0,640,480
visible 1
background "video/video_chaingun"
matcolor 1,1,1,1
notime 1

onTime 0 {
resetCinematics ;
}

}
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 12, 2016, 11:13:40 AM
Sounds like as soon as video starts playing you reset it. Try onTime 1000 instead of onTime 0.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 12, 2016, 11:16:20 PM
So, all those weapon videos are used in fullscreen GUIs (in PDAs).

Check out windowDef VidFrame inside \base\guis\movies\uac_welcome.gui

So I think it should just be:

                windowDef YouVideoGUI
{
rect 0,0,536,290
visible 1
background "video/video_chaingun"
matcolor 1,1,1,1
}


So it just plays in a loop (if it's looped). I think....

I haven't really worked yet with RoQs in GUIs, but if that doesn't work, then it will be a bit tricky. You'd have to make windowDef with animation, onTime 0 to onTime <length of you RoQ> and on that last frame you would have to resetCinematics to make it loop.
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 13, 2016, 06:18:54 AM
Appreciated motorsep but I've tried that and it won't work. I don't understand it, my other roq video gui on another map worked. It's these typical D3 modding problems that keep us going right? :p
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 13, 2016, 08:18:25 AM
I believe your GUI can only be either on a model with GUI surface, or on a patch that is converted into func_static.

Have you tried having material with video texture applied directly to patch/brush, without making a GUI?
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 17, 2016, 03:13:02 PM
I figured I just had to give it a try: https://drive.google.com/open?id=0BwE6dxM0O2PsM25hQlNxWlA3YlE

Enjoy! (water is there too)
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 19, 2016, 10:08:53 AM
That's great motorsep, thanks. But I can't seem to download from drive (or open the files to inspect). P.S thanks for the PM. ;)
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 19, 2016, 10:21:01 AM
Quote from: douglas quaid on January 19, 2016, 10:08:53 AM
That's great motorsep, thanks. But I can't seem to download from drive (or open the files to inspect). P.S thanks for the PM. ;)

That's odd. I am at work right now and I can download it. What error do you get ?
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 20, 2016, 06:46:23 PM
Download was okay. Thanks for doing that motorsep, it's appreciated. I just have to figure out now how to make it start when the map begins.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 12:20:11 AM
Quote from: douglas quaid on January 20, 2016, 06:46:23 PM
Download was okay. Thanks for doing that motorsep, it's appreciated. I just have to figure out now how to make it start when the map begins.

That's what it does now. It begins playing as soon as the map is loaded. Check it out:

https://www.youtube.com/watch?v=jCdHop6v8TU
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 21, 2016, 08:24:20 AM
Looks good, but when I load the map it only starts after about 30 seconds or so, and at the end, the vid screen goes black before it restarts.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 09:16:09 AM
Quote from: douglas quaid on January 21, 2016, 08:24:20 AM
Looks good, but when I load the map it only starts after about 30 seconds or so, and at the end, the vid screen goes black before it restarts.

Are you running vanilla Doom 3 or dhewm3 or Sikkmod? Do you have an ancient PC? If so, that could explain the delay (or maybe your level is huge?).

The only way you can solve this is by using onTrigger in the gui script, and having a trigger brush around player pointing to relay trigger, which in turn points to any monitor with gui video on the level (at least the ones you want to be playing videos). So when you actually spawn and the game is playable, as soon as you move, it will kick off the playback.

Even with that you might still have black screen (which really is a background of that "monitor") between plays. The only way to solve it is by having an image of the first frame of the video as a background. Then when video is done playing, you'll see first frame of it and then it will play again. Should be pretty seamless.

Worth noting that RoQ videos were only meant to be played in the full screen GUIs such as PDA and intro screens.
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 21, 2016, 10:59:30 AM
I'm using Sikkmod so how does that affect the gui? I'll check the map on vanilla now.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 11:12:29 AM
Quote from: douglas quaid on January 21, 2016, 10:59:30 AM
I'm using Sikkmod so how does that affect the gui? I'll check the map on vanilla now.

Well, he did a lot of changes to rendering code/shaders, so he could, potentially, screwed something up.
Title: Re: Chaingun ROQ Movie
Post by: douglas quaid on January 21, 2016, 11:22:56 AM
Oh dear, it's the same on vanilla unfortunately...
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 11:26:45 AM
Quote from: douglas quaid on January 21, 2016, 11:22:56 AM
Oh dear, it's the same on vanilla unfortunately...

I see. Oh well, if someone can test the package and see if it works any different for them, you'll have an idea what might have gone wrong. Try the method I described though. If that doesn't work, then unfortunately you are out of luck :(
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 11:45:47 AM
I'll try another trick after work. Maybe it will work.
Title: Re: Chaingun ROQ Movie
Post by: motorsep on January 21, 2016, 09:47:03 PM
Try this one: https://drive.google.com/open?id=0BwE6dxM0O2PsN1ZqNTJqdzFDNWc

Video of interest is to the left from the player.

Btw, if anyone else can test and confirm, it would be nice. I am especially interested in finding out how video made with GUI  (straight ahead after spawn) works on different PCs.