shader problem


(azerot94) #1

i search but i didnt find anything. i use gtk radiant 1.40. i make a trickjump map.

i wanna make a texture which is slick (like ice) - name:d_ice2.tga
i wanna make all textures : nodamage

here is my shader code

// By Dinius
/////////////////////////////////////////////////////////////////////////////////

//	Top textures of the pillars - no fall damage..
//	-----------------------------------------------
textures/tut4nabs/tiled3
{
	qer_editorimage textures/tut4nabs/tiled3.jpg
	implicitMap textures/tut4nabs/tiled3.jpg
	surfaceparm nodamage
}
textures/tut4nabs/tiled4
{
	qer_editorimage textures/tut4nabs/tiled4.jpg
	implicitMap textures/tut4nabs/tiled4.jpg
	surfaceparm nodamage
}

// Ice Shaderrrr
// --------------
textures/tut4nabs/NiceIce
{
	qer_editorimage textures/tut4nabs/d_ice2.tga	
	surfaceparm slick
	surfaceparm noimpact
	surfaceparm nodamage
	surfaceparm nolightmap
   
	{
		map $lightmap
		rgbGen identity
	}
	{
            map textures/tut4nabs/d_ice2.tga	
		blendFunc GL_DST_COLOR GL_ZERO
	      rgbGen identity //vertex		 
	}  
	{
   	      map textures/tut4nabs/base.tga
   		blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
    		rgbGen identity //vertex
    		tcGen environment
    	}
}

// Da skybuxxx shadahh...
// -----------------------
textures/tut4nabs/sky1
{
	nocompress
	qer_editorimage textures/tut4nabs/sky1/sky1_env/sky_ft.tga
	q3map_lightimage textures/tut4nabs/sky1/siwa_mask.tga
	q3map_sunExt .94 .85 .67 120 282 23 .5 16
	q3map_lightmapFilterRadius 0 64
	q3map_skylight 50 5

	skyparms textures/tut4nabs/sky1/sky1_env/sky 384 -
	surfaceparm nodlight
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm sky	
}


// THE END

shader is in scripts folder. these textures are in tut4nabs folder.
i try the pk3 but there is no effect…

here is how my pk3 looking
textures/
-------------ps_sp/
-------------tut4nabs/ d_ice2.tga, tiled3.jpg, tiled4.jpg
--------------------------sky1/


(sQynor) #2

Ok, go back to your SCRIPTS folder. open Shaderlist.txt go all the way to the bottem and add the name of your .shader ( let’s say you called your shader tut4nabs.shader, then write on the last line “tut4nabs”

I had the same problem. but when you compile something. the compiler looks at what shaders to use. and what not. if you don’t let him read your shader… the effects like nodamage and slick DO NOT work.

I hope this sort of helps :slight_smile:


(Zer0Cool) #3

Something you mayby should know about the “nodamge” is that it depends on what mod is used because of course nodamge works for all, but some mods stop you instantly when you fall from too high and some let you go on.