Page 1 of 1

How do you make a video vmf file?

PostPosted: Mon Apr 05, 2010 6:56 am
by mrfranswa
Self explanatory. I want to make a video play on a vmf texture akin to the l4d2 intro being played in the dead before dawn campaign. I know valve made the vmf's for them and sent them over, however how did they do it? I can't find anything about it anywhere.

Thnx

Re: How do you make a video vmf file?

PostPosted: Mon Apr 05, 2010 7:59 am
by nub
Um, the intros to the campaigns are done within the maps in real time. I'm not sure if they just used a point_viewcontrol entity on a track using path_track entities, or a view control parented to an invisible animated dummy model that moves in a smooth fasion (Zeno Clash used this technique for their cutscenes).

I can't say the same for the Dead before Dawn campaign, but if it is a video, it uses the Bink video player I'm sure. I forget how you do it exactly, but I think it's just a console command that plays the video you tell it to. So in other words you would have to record a video and convert it to the bink video format to play it in-game.

Re: How do you make a video vmf file?

PostPosted: Tue Apr 06, 2010 3:59 am
by mrfranswa
um no you don't understand. In dead before dawn they have brushes play videos akin to func_monitor, however they are textures and not func_monitors...

Re: How do you make a video vmf file?

PostPosted: Tue Apr 06, 2010 7:52 am
by Jordash
You can make animated VTFs, however they can get quite large in file size due to the nature of VTF compression, if you had a 100 frame texture it would be 100 times the size of a regular texture. Also its difficult to sync it with audio

As far as I know the two methods nub suggested are the only feasible ways to put such scenes in source

Re: How do you make a video vmf file?

PostPosted: Tue Apr 06, 2010 1:39 pm
by mrfranswa
that is what I believe valve did for the DBD campaign. However, each of the files are single vtf's and not a collection of textures. It's as if they were all compiled into vtf's which could be played.

I remember reading in the news back in the day valve made the custom animated textures for them, so I know it's possible.

Re: How do you make a video vmf file?

PostPosted: Tue Apr 06, 2010 2:05 pm
by Jordash
animated VTF files are easy enough once you get your head around it

tutorial http://www.editlife.net/tutorial.php?tutid=43

program that makes it easier http://nemesis.thewavelength.net/index.php?c=178

Re: How do you make a video vmf file?

PostPosted: Tue Apr 06, 2010 2:48 pm
by PhoeniX1992
You could make a texture with a proxy which refers to an AVI, but I recall you would have to make some changes to the game engine's code. Since it's all done that would be a simple copy and paste job.

http://developer.valvesoftware.com/wiki/AVI_Materials

Re: How do you make a video vmf file?

PostPosted: Wed Apr 07, 2010 7:32 am
by Jordash
I've tried the AVI method and its not all its cracked up to be. The only codecs that work with it are all outdated and difficult to convert videos to, and if the files are too large the game crashes. Looking at the videos in game causes a lot of lag, affecting the video's framerate, so it is literally impossible to match it to any audio

Re: How do you make a video vmf file?

PostPosted: Wed Apr 07, 2010 5:52 pm
by mrfranswa
I guess I can shoot Mike Durand an email asking about this.

Re: How do you make a video vmf file?

PostPosted: Sun Jul 24, 2011 1:53 pm
by Spindoctor
Anyone found an easy solution to this?

Re: How do you make a video vmf file?

PostPosted: Sun Aug 28, 2011 12:56 pm
by cra0kalo
Im interested now

i saw that nyan cat portal thing but that uses .bik (blink video)

Anyone got an solution yet?

Re: How do you make a video vmf file?

PostPosted: Sun Aug 28, 2011 9:21 pm
by Gary
To make .bik(s)?

I've done that since Halo2 modding, just google their tools.