GhOSh Posted December 24, 2005 Share Posted December 24, 2005 Hey, I would really like to know how to add a video into GTKGradiant. I have already made a ROQ file and im wondering how to insert it into GTK. Ive searched for help and reviews but no one seems to have a review on it. Please if you know a link or any info post it here;) Thx ~ GhOSh Link to comment Share on other sites More sharing options...
Fracman Posted December 25, 2005 Share Posted December 25, 2005 You can't add it directly in radiant. You have to do it using a shader, where there is a special keyword for videos: videomap But: i guess videos only work in menus, not in game (someone else please correct me!) Link to comment Share on other sites More sharing options...
GhOSh Posted December 26, 2005 Author Share Posted December 26, 2005 kk, I found out how to do it its just now it comes up in the game.. Shader textures/movie/m1 has a stage with no image.. Anyone help??? Link to comment Share on other sites More sharing options...
Fracman Posted December 26, 2005 Share Posted December 26, 2005 please post your shader here... else we can't give you the right help! And as i wrote above, i'm not sure at all the videos can run ingame. Link to comment Share on other sites More sharing options...
MDN14 Posted December 28, 2005 Share Posted December 28, 2005 sounds more like you are trying to add an animMap rather than a video. Link to comment Share on other sites More sharing options...
Fracman Posted December 29, 2005 Share Posted December 29, 2005 ROQ is not animMap but indeed videoMap. But: it only works in menus as i know. Link to comment Share on other sites More sharing options...
lassev Posted December 31, 2005 Share Posted December 31, 2005 Have you read the Raven ROQ manual? It looks like it contains all the info there is. And make sure your shader entry is proper and doesn't have errors. Link to comment Share on other sites More sharing options...
{NJO}*Dark Posted January 22, 2006 Share Posted January 22, 2006 in one of the old Matrix maps there was a moving 'matrix code' texture over some of it, and i am guessing that the principle would be the same, so it is possible in game Link to comment Share on other sites More sharing options...
MDN14 Posted January 23, 2006 Share Posted January 23, 2006 that was a simple animap. Lots of maps have things like that. You can even use animaps for making animated levelshots Link to comment Share on other sites More sharing options...
eXile_da_mod Posted May 29, 2006 Share Posted May 29, 2006 Hmm.. at Movie Academy (a map from Sith J Cull) plays a movie too with sound. Ingame! Episode III Trailer . Link to comment Share on other sites More sharing options...
CalcProgrammer1 Posted July 22, 2006 Share Posted July 22, 2006 So does SJ Cull's Jurancor Park- it plays a short segment from Jurassic Park, and in the .pk3 there is a video folder with a .roq file in it. Link to comment Share on other sites More sharing options...
CalcProgrammer1 Posted August 27, 2006 Share Posted August 27, 2006 I found out how to put roq into maps, it is possible, just make a shader like this textures/video_test/video1 { { videomap video/video_test/video1.roq } } Problem is that the shader seems to think it is 640x480 and the video is only 320x240, therefore the default menu video frame that was last shown is displayed with the video playing over top of it, taking one fourth of the screen. I had to stretch by hand and without the use of Fit to get one fourth of the shader applied to the screen. Does anyone know how to make a 320x240 video work? Link to comment Share on other sites More sharing options...
Kurgan Posted August 27, 2006 Share Posted August 27, 2006 Interesting. Link to comment Share on other sites More sharing options...
Tinny Posted August 28, 2006 Share Posted August 28, 2006 I found out how to put roq into maps, it is possible, just make a shader like this textures/video_test/video1 { { videomap video/video_test/video1.roq } } Soap opera batman... thanks for the tip. Definitely have to use this. Link to comment Share on other sites More sharing options...
CalcProgrammer1 Posted August 28, 2006 Share Posted August 28, 2006 Note that, while it works, it still requires a lot of work, I can't seem to get the shader to perfectly fit my TV object, I assume that the size is 640x480 but if I stretch the texture to a brush and then cut the size in half both ways (to make only the 320x240 portion visible, i still get an error. The other thing is that, the avi that i used to begin with took 14 seconds to play, but it plays in like 5 in game, cause the original fps of the clip was around 10 or 11 while the game's trying to put out 30 or so, and there is no sound, but you can use a target_speaker with the soundtrack in .wav (.mp3 might also work), and I don't know if you can control the start/stop of the video or not. Link to comment Share on other sites More sharing options...
Tinny Posted August 29, 2006 Share Posted August 29, 2006 Many of know how to decompile .bsp maps to .maps. Maybe we can use these to figure out how SithJCull did it? Link to comment Share on other sites More sharing options...
CalcProgrammer1 Posted August 29, 2006 Share Posted August 29, 2006 Well, I don't know how to do that, but I'm sure the FPS problem has more to do with what you do when compiling your video to roq then the shader or map, however, the size of the video problem would be nice to see how it was done. Link to comment Share on other sites More sharing options...
CalcProgrammer1 Posted September 12, 2006 Share Posted September 12, 2006 Ok I got video ingame worked out, you use the shader like this: textures/mapname/texname { qer_editorimage textures/system/_video { videomap textures/mapname/filename.roq } } (note that this is for 256x256 video clips, if you want to use 512x512, change the _video in the qer_editorimage line to _video512) Then in a video editing app, I use Sony Screenblast 3 and Pinnacle Studio 9 Plus, encode a .avi, 30.00 frames/sec, 256x256 (or 512x512) size. The problem comes in the codec you choose, for only a few work, I successfully used the Microsoft MPEG 4 v3 codec, the DivX 6.0 (trial) didn't work, and 3ivX file wouldn't encode right. Next, google switchblade3 roq converter, and unzip it to a folder. Then drag your file.avi to dropRoQ.exe and you will wait for a long time as it slowly eats through your video, although, reaaaaly slowly, and makes a .RoQ that you put in base/video/mapname/ and then use in your shader. Note that there is no sound, so you have to strip the audio from the original file to .wav or .mp3 and use a target_speaker, which I haven't quite got working yet. I think though that mp3 has to be 44KHz, 128Kbps. I don't know if it works in target_speakers though. The qer_editorimage is used to line the video up on your brushes in Radiant, and as of now I don't know how to control video playback, but I think it can be done through scripting. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.