video .roq


(Destroy666) #1
  1. I’ve made a .roq video (tested with /cinematic command - working).
    I gave shader “videos” to two brushes faces, but they are invisible.
textures/dom_islands/videos
{
      qer_editorimage textures/dom_islands/videos/OdeToWolfenstein.jpg
      
      {
                videomap video/OdeToWolfenstein.roq
                blendfunc add
                rgbGen identity
      }
}

Is this shader good?

  1. How to spawn brush using script?

(Wezelkrozum) #2
  1. Maybe try this one:

textures/dom_islands/videos
{
	qer_editorImage textures/dom_islands/videos/OdeToWolfenstein.jpg
	surfaceparm nolightmap
	{
		videoMap video/OdeToWolfenstein.roq
		rgbGen identity
	}
}

I found it on the net ( http://members.lycos.co.uk/quakeroats/q3map2/shader_manual/ch6.html )

  1. No idea. I think a topic has been opened about it.

(UJERebel) #3

[QUOTE=Destroy666;201882]

  1. How to spawn brush using script?[/QUOTE]

A normal" worldspawn" brush can’t be used in scripts ( exept the whole worldspoawn i think…) so you need to make it an entity, mostly used for brushes is a func static, nothing special, only you can script with it…

I hope this help

Grtz

Rebel


(Destroy666) #4
  1. Didn’t help. It’s now dark, but video still doesn’t play.

  2. I though about func_static and func_group, but not sure what’s next.
    Alertentity, setstate or what?


(murka) #5

Make sure you don’t have fastsky set to 1.


(Destroy666) #6

I haven’t because mirrors work.
I found 6 versions of shader and i don’t know which is the right one.
Maybe someone knows a map with .roq?


(Zer0Cool) #7

raybans roq_flame

for example in chateau:
http://www.filefront.com/thankyou.php?f=8887405&k=1e1daf1d2f1aa17192173a4f3c108f4a3dea2e6ee62cbaaf36e097e92477e2d7


(Destroy666) #8

I added his shader and still not showing.
Hmmm…
What’s the max lenght (mm:ss) of .roq file in map?


(ailmanki) #9

I think r_fastsky does disable roq videos and mirrors… not sure though.
Did you try if the flames show up from raybans, then at least you can exclude other errors - unrelated to the roq itself?


(valkyr) #10

[QUOTE=Destroy666;201915]I added his shader and still not showing.
Hmmm…
What’s the max lenght (mm:ss) of .roq file in map?[/QUOTE]

Are you running ETPro by any chance?


(UJERebel) #11

[QUOTE=Destroy666;201895]2. I though about func_static and func_group, but not sure what’s next.
Alertentity, setstate or what?[/QUOTE]

Using a func_group is useless, because:

A func_Group is en entity wich only counts for radiant, only for user convenience, and it is converted to a normal brush on compile, it’s mostly used for big terrains …
Func_group information

So a func_static will still help you.
func_static information
ANd, good, you should indeed use setstate. Because i don’t know your exect purpose i’m gonna give an example:

Make a brush, select it and make it into a func_static with scriptname “save” for this example.

gold
{
	stolen
	{
		setstate save default // This will set a entity with the scriptname "save" visible
	}
}

I hope this is clear enough, if not, ask further :stuck_out_tongue:

Grtz

Rebel:tongue:

Edit
Indeed CyburK, it needs to be default :slight_smile:
Thanks for corecting my fast made scipt:p

setstate <targetname> <default|invisible|underconstruction>
Sets the state of an entity.


(CyburK) #12

isnt the command “default” not “visible”???


(Zer0Cool) #13

afaik there is no timelimit, but there could be a filesizelimit; i used 3 minute long roq without problems.

here one of the old roq threads,

http://splashdamage.com/forums/showthread.php?t=18325

@CyburK http://games.chruker.dk/enemy_territory/scripting_reference.php


(Destroy666) #14

Thanks for replies.
I made disappearing and appearing my brush without using script.

Still no idea what’s wrong with video. It’s transparent.
Zer0Cool, I have the same lenght.

valkyr, no.
I made a small prefab and tested it on etmain - doesn’t work.
I’ll post it tommorow.


(valkyr) #15

All the shader needs is :


textures/dom_islands/videos
{
      qer_editorimage textures/dom_islands/videos/OdeToWolfenstein.jpg
      {
                videomap video/OdeToWolfenstein.roq
      }
}

Try that on etmain. Also check the console for shader errors.


(UJERebel) #16

[QUOTE=Destroy666;201954]Thanks for replies.
I made disappearing and appearing my brush without using script.

[/QUOTE]
No problem :tongue:

But just cureous, how did you do that xD


(Destroy666) #17

I don’t have shader errors in console.
Without blendfunc it’s just black.

What should be the preferences of .roq file?
I mean frames etc.

Here’s my map
http://www.sendspace.com/file/e9bi4i


(valkyr) #18

The map’s fine… the video isn’t scaled properly on the screen, but it plays…

If it’s not working for you on etmain then you must have r_inGameVideo set to 0, like I just realised I did after about an hour of wondering why I couldn’t get any videos at all to play :o (do r_inGameVideo 1 then vid_restart)


(Destroy666) #19

Thanks a lot!
What should I write as video dimensions (in converter)?


(valkyr) #20

256x256 seems to be the only size that scales properly.