Tremulous Forum

Media => Mapping Center => Topic started by: Henzo on May 14, 2011, 02:20:35 pm

Title: Looping video / flash files. And how to add keys?
Post by: Henzo on May 14, 2011, 02:20:35 pm
Ok, I'm planning for new map, and I want to know (don't tell google, I allrdy tried) how you can add looping video (.wmv or .swf or .avi + .wav) file in the map. How to import it, how to do scripts for it, and how to get it loopin'?
I can say, that will be secret nobuild room, where is that secret.  ;)


And btw, how I add keys to entities?
Title: Re: Looping video / flash files. And how to add keys?
Post by: A Spork on May 14, 2011, 09:23:31 pm
You cant.
closest you can get is making a shader that flips between every frame as a still image every x seconds, then having a speaker.
Title: Re: Looping video / flash files. And how to add keys?
Post by: UniqPhoeniX on May 14, 2011, 11:22:47 pm
I think Trem can handle .roq video files, http://q3map2.everyonelookbusy.net/shader_manual/ch6.htm#map (http://q3map2.everyonelookbusy.net/shader_manual/ch6.htm#map) Ctrl+F 'videomap'.
If you don't know how to add keys to entities, then read some guides.
Title: Re: Looping video / flash files. And how to add keys?
Post by: Ingar on May 15, 2011, 12:56:55 pm
If it is like more an 'animated gif' than a video (only 8 frames and low fps) than you can use an animated shader (http://toolz.nexuizninjaz.com/shader/shader/section6.htm#6.1.3).
Title: Re: Looping video / flash files. And how to add keys?
Post by: Henzo on May 15, 2011, 03:19:26 pm
If it is like more an 'animated gif' than a video (only 8 frames and low fps) than you can use an animated shader (http://toolz.nexuizninjaz.com/shader/shader/section6.htm#6.1.3).

Ok, I didn't understand a shit from that webpage (I'm not good coder). Btw, I got the key adding thing...
^^What I did understand, that is .shader file in .pk3 file. So, can someone try to explain me how i do it, or is there any good tutorial for noobs?
And, how to add it into map?

And I think I want to make it with trigger, like someone walks near it, and it starts to play... I gonna learn that myself, maybe looking example from Paint10 (or was it 9?)