[hlcoders] Ingame Movie Playback

2009-02-04 Thread Jonas 'Sortie' Termansen
Hey List, I'm going to heavily utilize storytelling in my mod. I've decided to have an ingame TV Station tell important information. Traditionally I would have used a simple rendertaget and a lot of scripting, but the recordings require a lot of locations. Having the player load textures for

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Jed
I don't know which version of the SDK your using (EP1/OB) but I *believe* there's some native support for the Bink BIK movie format. I vaguely recall a discussion here some time back about displaying a movie on a VGUI panel using this format. I think it was Pirates and Vikings that was doing it.

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Jonas 'Sortie' Termansen
Bink is most certainly supported, but last time I checked out it it seemed as I couldn't use it in my mod because I didn't have a license, and that I doubt OB supports rendering a video onto a surface. I'm using the OB Engine, but seeing as I'd like to rely on external programs/libraries that

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Rodrigo 'r2d2rigo' Diaz
Or you can make a VTF with 1000+ frames and apply it to a face :D Perhaps someone at Valve can point you on how did they do it for TF2, and if that portion of code is in the SDK... 2009/2/4 Jonas 'Sortie' Termansen hlcod...@maxsi.dk Bink is most certainly supported, but last time I checked out

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Jorge Rodriguez
I've never done ingame video playback, so take this advice at face value. On Wed, Feb 4, 2009 at 10:35 AM, Jonas 'Sortie' Termansen hlcod...@maxsi.dk wrote: - AVI files seem to be rather large, according to my experience Compress them? If you're running 1080 movies then no wonder they are

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Jonas 'Sortie' Termansen
I did some research about Bink and found that their tools are freely available on their website. The SDK isn't publicly available, but every function I need is already in the Source SDK. vgui_video.cpp showed me exactly how the TF2 videos are drawn and it seems that it's very easy to get the

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread James Luzwick
I'm pretty new to source but I have an idea of how you might be able to get that working. Basically the idea is you extract the sound as a wav file or ogg vorbis, whatever the hl2 api supports for playback, and then when the video is played, you call a class to emit the sound file at the location

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread James Luzwick
Doh, I completely missed the post above me, disregard my post. No cookies for me On Wed, Feb 4, 2009 at 10:28 AM, James Luzwick jluzw...@gmail.com wrote: I'm pretty new to source but I have an idea of how you might be able to get that working. Basically the idea is you extract the sound as

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Jonas 'Sortie' Termansen
Yeah, that's probably the best idea. Or finding a sound handle in the bik- pointer and see where what I can do with it ;-) I found a way to find the IMaterial that the bink renders onto, so getting the video ingame is just placing the material on a TV-shaped box. Of course, the material is

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Christopher Harris
You can also create a vgui screen which will render vgui into the world space, was used sparingly in hl2. The bomb in CSS is using vgui screen for the timer on it. Chris -Original Message- From: hlcoders-boun...@list.valvesoftware.com [mailto:hlcoders-boun...@list.valvesoftware.com] On

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread John Standish
Honorable mention though? On Wed, Feb 4, 2009 at 10:32 AM, James Luzwick jluzw...@gmail.com wrote: Doh, I completely missed the post above me, disregard my post. No cookies for me On Wed, Feb 4, 2009 at 10:28 AM, James Luzwick jluzw...@gmail.com wrote: I'm pretty new to source but I have

Re: [hlcoders] Ingame Movie Playback

2009-02-04 Thread Christopher Harris
Vgui_screens are what the name is off entities that will draw VGUI panels in world space. Vguiscreens.cpp have info Chris -Original Message- From: hlcoders-boun...@list.valvesoftware.com [mailto:hlcoders-boun...@list.valvesoftware.com] On Behalf Of Jonas 'Sortie' Termansen Sent: