Tigris Posted November 16, 2002 Share Posted November 16, 2002 Ok, I want a advertising in my map, that blends from texture to texture- now in the shadered the following shader already does that, but ingame it's stuck at the first image... textures/ad/ad1 { qer_editorimage textures/ad/ad1 q3map_surfacelight 4000 surfaceparm noimpact surfaceparm nomarks surfaceparm nonsolid surfaceparm trans q3map_nolightmap { animMap 0.5 textures/ad/ad1 textures/ad/ad1_2 textures/ad/ad1_3 textures/ad/ad1_4 blendFunc GL_ONE GL_ONE } } Link to comment Share on other sites More sharing options...
Tigris Posted November 18, 2002 Author Share Posted November 18, 2002 Anyone? Link to comment Share on other sites More sharing options...
VIO Posted November 22, 2002 Share Posted November 22, 2002 if its stuck its prob because its not reading the other code maybe something is wrong with it im not good with shaders though. also try a diff texture and see if it works. Link to comment Share on other sites More sharing options...
Tigris Posted November 22, 2002 Author Share Posted November 22, 2002 Ok, Q3ASE helped me- If anyone likes to use it: textures/ad/ad1 { qer_editorimage textures/ad/ad1_1.tga surfaceparm noimpact surfaceparm nomarks surfaceparm nonsolid surfaceparm trans q3map_surfacelight 4000 { map textures/ad/ad1.tga blendfunc add } { animmap 0.5 textures/ad/ad1_1.tga textures/ad/ad1_2.tga textures/ad/ad1_3.tga textures/ad/ad1_4.tga } } Just make Textures called ad1_1.tga to ad1_4.tga and it circles through them. You can also edit the "animap" line- the number tells the programm to make it a 0.5 FPS animation, so changing the pic every 2 Seconds. The textures/ad/ad1_1.tga to ...ad1_4.tga describe which textures to use and in what order- if you want a particular texture to be shown longer that the normal duration just set it two times in a row in the shader. If you use this shader I would like a note of thanks in the readme, was quite some work to figure it out Link to comment Share on other sites More sharing options...
NITEMARE Posted November 24, 2002 Share Posted November 24, 2002 good work man! does anybody know if this animation can be triggered by a button? that would rock... Link to comment Share on other sites More sharing options...
Tigris Posted November 25, 2002 Author Share Posted November 25, 2002 You could- make it a brush using func_train, then connect it with a trigger_once to make it move out of a wall behind the "screen"- that way it would look like it's being triggered by some event- Think I've heard of at least one other way to get the same effect, but right now I can't remember; perhaps RichDiesel has covered it in his tutorials... Link to comment Share on other sites More sharing options...
NITEMARE Posted November 25, 2002 Share Posted November 25, 2002 i got that done already. i made it an effect and placed a fx_runner wich shows it allthe time at a fixed spot. fx_runner can be triggered so i guess i can do it... Link to comment Share on other sites More sharing options...
Tigris Posted November 26, 2002 Author Share Posted November 26, 2002 Haven't worked with the FX yet, so I didn't know that. Gald though to hear you've got it working Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.