Shader Effects


(Stealth) #1

I’m looking for an electrical sparks that originate from the ceiling and comes down to the floor and sort of bounces a bit.

I’m making a FEAR type map which is dark and of an office building that has been through an earthquake. This is for a mod: True Combat: Elite.

Any ideas where I can find such an effect for Wolf:ET?


(UJERebel) #2

Just create the spark falling as a animated image? Like the electric generator thingie in preatoria 2 at first spawn… :slight_smile:

I dont think is can be done with shaders


(shagileo) #3

In praetoria it is done with shaders - Diego used the animmaps shader feature:
http://toolz.nexuizninjaz.com/shader/shader/section6.htm#6.1.3

Take a look in the PK3 of Praetoria :
http://et.trackbase.net/index.php?mod=mapinfo&midx=175

To see how it’s done.

I also found another interesting topic:
http://www.redsaurus.net/gtkradiant/viewtopic.php?f=1&t=316

But not sure if it works for ET as well

Good luck :slight_smile:


(Stealth) #4

Hey thanks guys, I will check this out. If I make a custom shader I will share it here.

Ya that isn’t quite what I had in mind, but I understand the concept. I wonder if there is a special effect program out there that I can split into frames then right the shader for it?

Adobe Aftereffects?


(Stealth) #5

Well I must be doing something wrong. I’ve created 8 TGA files with alpha channels (I guess 8 is the limit?). I’ve created a script based on Diegos script. It’s not working for me. =(

Here are the images. http://www.stealthzone.net/spark.zip


textures/re_sfx/sfx_spark1
{
		
	cull twosided
	deformVertexes autoSprite2
	qer_editorimage textures/re_sfx/sfx_spark1.tga

	{
		animMap 20 textures/re_sfx/sfx_spark1.tga 

textures/re_sfx/sfx_spark2.tga 
textures/re_sfx/sfx_spark3.tga 
textures/re_sfx/sfx_spark4.tga
textures/re_sfx/sfx_spark5.tga
textures/re_sfx/sfx_spark6.tga
textures/re_sfx/sfx_spark7.tga
textures/re_sfx/sfx_spark8.tga
		
		blendFunc GL_SRC_ALPHA GL_ONE
	//	rgbGen wave inverseSawtooth 0 1 0 10
		rgbGen identity
	}
}

Can someone get it to work in Wolf:ET? Please…


(Avoc) #6

Check out ‘Breakout 2’ - we used the gunspark_prop to simulate electric sparks that shot out from some lights. I believe you can find it in the big bunker room with the tanks.


(Stealth) #7

That is closer to what I’m looking for but it’s so small of an effect one could miss it. But thank you for this. It may be useful down the line…

BTW I’m mapping for an Wolf:ET mod called True Combat: Elite. The gunspark prop doesn’t seem to work in the mod. too bad.


(UJERebel) #8

http://www.splashdamage.com/forums/showthread.php/22485-Animated-shader-without-using-animMap…

Try this? :slight_smile:


(Stealth) #9

Haven’t got this to work yet… =(


(nUllSkillZ) #10

What’s the result?
Do you see the first image of the animation or nothing?