Gas like effect


(sQynor) #1

Is there a way to make a Gas like effect in a map. Like fog. -> Shader maybe?

I want to make a map where there’s a room filled with gas. Green gas or something.

Thanks in advance.


(IndyJones) #2

there was a way to make it… i used an entity with shader key, but i don’t remember details. try to look for pazurmapping website.


(Diego) #3

Simple, just apply a colored fog shader to a brush. This is one I set up for Praetoria but never used:


textures/praetoria/poison
{
	qer_editorimage textures/praetoria/editor_images/poison.tga
	qer_trans .75
	surfaceparm nolightmap
	surfaceparm trans
	surfaceparm nodraw
	surfaceparm fog
	surfaceparm nonsolid
	surfaceparm noimpact
	surfaceparm nomarks
	cull disable
	q3map_globaltexture
	q3map_surfacelight 0
	fogparms ( 0.35 .5 0.25 ) 512  //(red green blue) distance
	
}

It doesn’t matter what you use for the editor image. The shader doesn’t use a texture. I’ve probably got some extra parameters that I don’t need. I haven’t looked at this shader in a long time. But I remember it had a pukey color. Just adjust the fogparms (red green blue) distance values to your liking.


(sQynor) #4

Thank you!


(stealth6) #5

one of the spyjuice tutorials has color changing fog


(Diego) #6

Yeah, but the spyjuice fog affects the entire map. He just wants a gas chamber.
By the way, for the fog brush to work, it has to be square or rectangular. Don’t skew the vertex points to make odd shapes.