video in HL2DM tuts?

video in HL2DM tuts?

Re: video in HL2DM tuts? Posted by ghuh on Thu May 4th 2006 at 10:37pm
ghuh
11 posts
Posted 2006-05-04 10:37pm
ghuh
member
11 posts 31 snarkmarks Registered: Nov 16th 2005 Occupation: Student Location: Canada
I was just wondering if anyone knows how to add video clips to maps in HL2Dm, because I was playing a map that had an episode of family guy on a TV screen...PLEASE REPLY! :cry:
Re: video in HL2DM tuts? Posted by omegaslayer on Fri May 5th 2006 at 5:35am
omegaslayer
2481 posts
Posted 2006-05-05 5:35am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
This is an article on how to do it in HL1:

http://collective.valve-erc.com/index.php?news=1086730872-55251400

I might assume that it could be done in HL2 also......but with the help
of lots of coding. So without coding your own mod I don't think its
possible.
Posting And You
Re: video in HL2DM tuts? Posted by Crono on Fri May 5th 2006 at 6:39am
Crono
6628 posts
Posted 2006-05-05 6:39am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Well, we can assume that the map he saw didn't change any code :smile:

Um, you can make an animated texture and then have a sound entity connected to the animation entity.

Here's a tutorial on that from hl2world.com

http://www.hl2world.com/wiki/index.php/AnimatedTextures

You'd have to get every frame of the animation you want to use and transfer them to a TGA then use vtex with some commands and some configuration files for it to be rendered properly (depending on whether you're putting the texture on a brush or a model!)

You can record the sounds seperately and play it seperately too, just have them begin at the same point.

http://www.hl2world.com/wiki/index.php/MP3s_and_custom_sounds_on_your_map

Anyway, it sounds like a pain in the ass, but I'm sure it works well!

Give it a try with something small to start out. Once you get the hang of it, then try something larger. I'm not sure what the limitations of the texture are, however. Meaning, how many frames you can have or the resolution. It's possible it could be many thousands of frames (millions?!) and mega pixels large. But, I don't think that'd run well for the most part. Try it!

One other thing!

If you just want a "TV show" of something that uses models and such, that can be done with a camera entity inside a seperate box somewhere in the map (outside the playable area) You can also make a TV with change-able channels ... probably volume too.
Blame it on Microsoft, God does.
Re: video in HL2DM tuts? Posted by fishy on Fri May 5th 2006 at 11:57am
fishy
2623 posts
Posted 2006-05-05 11:57am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
i tried to use the mod that omega linked to, ages ago, to record a demo of a bunch of tfc players in a small cinema, all watching a tfc skills flick. the scene itself was pretty cool, but on playback of the demo, the cinema screen was blank. :/

pretty good that it can play high definition, large filesize avi's, 'though.
i eat paint