Haze-Effect ?


(burzum) #1

How can i create this haze effect above hot liquides like lava ?

I tried already to load existing original maps but the editor crashed or was unusable after loading them :frowning:


(Zombie13) #2

Ok heres a material I made that you can adpat for lava distortion:


textures/z13d3dm2/water_floor
{
	noSelfShadow
	noshadows
	twosided
	translucent
	forceoverlays
	sort decal
	water

	qer_editorimage textures/z13d3dm2/liquid12.tga
	{
                Program           heatHaze.vfp
                vertexParm              0       time * .05 , time * .05
                vertexParm              1       1       
                fragmentProgram			heatHaze.vfp
                fragmentMap             0       _currentRender
                fragmentMap             1       textures/z13d3dm2/liquid12_norm.tga 			
             
   	}
	{          //this is the fake reflective cubemap, prolly dont need this for lava
	    	    blend gl_dst_alpha, gl_one
	          maskalpha
       	    cubeMap		env/gen2
		    red	Parm0
	          green   Parm1
	          blue	Parm2
        	    texgen	reflect

	}
	{
    	 	    blend filter
		    map textures/z13d3dm2/liquid12.tga
		    translate	time * 0.05 , time * 0.05
	}
}

Zombie