making a ,roq file


(ACROBAT) #1

Hmmm I recorded a video into an .avi in windows movie maker, but i could seem to get it imported to that thing. Has anyone ever tried importing an avi?

I found this tutorial

It’s really good but when I click the “scan frames” button it doesn’t preview the .avi.

I think that windows movie maker records it in 28 kbs instead of 24, which is most likely the problem. Not sure how to fix it.


(Zer0Cool) #2

for ET ingame ROQ:
-make your .avi
-resize it to 256
256(for example with vdub http://virtualdub.sourceforge.net/)
-download Switchblade4 http://icculus.org/~riot/
-start sbcodebooks4.exe, choose your *.avi
-start sbvideo4.exe, choose your *.avi
done

i am not sure which codecs work

Edit: Sound has to be added extra by speakers ingame.


(ACROBAT) #3

is 256X256 the only size that works or do others too?


(Zer0Cool) #4

256256 is the highest, all lower have to be a multiple of 2
e.g. 256
128, 64256, 3232 and so on
actually 512*384 should be the highest but i never got it working

Edit:Ingame you can just have one *.roq in your field of view, else none will work
e.g.
anim1.roq will just play as long as anim2.roq is not in your field of view, but of course you can have anim1.roq several times in the same area (as you should know from raybans fire)


(ACROBAT) #5

What does the Switchblade4 program do?

I’m not sure what to download form that parent directory you posted.


(ACROBAT) #6

[QUOTE=ACROBAT;194743]What does the Switchblade4 program do?

I’m not sure what to download form that parent directory you posted.[/QUOTE]

Also when I apply a filter in virtual dub there is a filter mode

I used this tutorial
http://www.doom9.org/index.html?/vdub_resize.htm

precise biccubic A=-.75 or =-.6 or etc

I think I was able to get a 256X256 avi by just using vdub. What was the other program supposed to do?

also I was reading this tutorial and I was wondering about fps. You have number you recommend?


“10: In the next window it’s the best to increase the frames per second from 25 to 30. Also very important is to make it a 512x384, otherwise the converting process won’t even start.”

Also I think it worked but why did it have to produce a .roq that was 512X384?

All that work to get it to 256X256 to get it into the quake roq maker program only to have ti change it again?


(ACROBAT) #7

[QUOTE=ACROBAT;194744]Also when I apply a filter in virtual dub there is a filter mode

I used this tutorial
http://www.doom9.org/index.html?/vdub_resize.htm

precise biccubic A=-.75 or =-.6 or etc

I think I was able to get a 256X256 avi by just using vdub. What was the other program supposed to do?

also I was reading this tutorial and I was wondering about fps. You have number you recommend?


“10: In the next window it’s the best to increase the frames per second from 25 to 30. Also very important is to make it a 512x384, otherwise the converting process won’t even start.”

Also I think it worked but why did it have to produce a .roq that was 512X384?

All that work to get it to 256X256 to get it into the quake roq maker program only to have ti change it again?[/QUOTE]

ps- I never used the Switchblade link you left? What did that program do?

It takes a LONG time to generate these .roq files too. Even a tiny one.


(ACROBAT) #8

I just tried compiling. I put the .roq into a videos folder so \base\videos\blackstrafes.roq

I added this shader to my shader document.

textures/duelroom/blackstrafesroq.roq
qer_editorimage textures/duelroom/blackstrafes_image
{
{
videomap blackstrafes
blendFunc add
rgbGen identity
}
}


However I got an error when I tried to compile it.

“************ ERROR ************
ParseShaderFile(): shaders/duelroom.shader, line 2113: { not found!
Found instead: qer_editorimage
Last known shader: textures/duelroom/blackstrafesroq.roq”


(masterkiller) #9

Hello,

Try this


textures/duelroom/blackstrafesroq		
{
        qer_editorimage textures/duelroom/blackstrafesroq.tga	
	
	{
		videomap base/videos/blackstrafes.roq
//              or
//		videomap videos/blackstrafes.roq
		blendfunc add
		rgbGen identity
	}
	
}

Make sure you put textures/duelroom/blackstrafesroq in your tv screen.
Never try but your shader not looking good…

GL!


(valkyr) #10

Having some difficulty getting this to work here too…

I’ve got my shader :


textures/l0x/r909
{
	{
		videomap video/r909.roq
	}
}

and in etmain\video I’ve got r909.roq which I created with Switchblade4 from a 256x256, 30fps AVI file.

When loading the map though, I get :

“Warning: Couldn’t find image for shader textures/l0x/r909”

Any ideas what I’m doing wrong?


(Wezelkrozum) #11

the game doesn’t read the shaderfile. Did you include the shaderfile in the shaderlist.txt when you compiled the map?


(valkyr) #12

Hmm, strange… I tried again and it’s finding the image this time.

The brush face was just black though so I added the :


blendfunc add
rgbGen identity

lines mentioned in the previous posts but that makes the brush face transparent…


(Wezelkrozum) #13

remove blendfunc add


(valkyr) #14

It seems that videomaps are broken on ETPro… I decided to try it on etmain (all the shader actually needs is the single ‘videomap’ line) - and it works fine. In ETPro it’s just solid black.


(valkyr) #15

I (sort of) figured out why this wasn’t working on ETPro, thanks to this post (the solitary mention of videomaps and ETPro on Google.

The problem is that they don’t work at all with ‘dedicated’ set to 0 (i.e. /devmap - ETPro does warn you on the console that some features ‘may break’)

Also, with a dedicated server, they only start playing after a map restart, such as at the end of warmup, or on a map change.

This means that if you join the game while the match is underway, you won’t see the video…