Where to place surfaceparm grassteps and landmine for work?


(Kic) #1

Here is a shader, please help

textures/11/terrain_0
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
surfaceparm grasssteps
surfaceparm landmine

{
	map textures/temperate_sd/grass_dense1.tga
	rgbGen vertex
	tcmod scale 0.126 0.126
}

}

textures/11/terrain_1
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/temperate_sd/rock_ugly_brown.tga
rgbGen vertex
tcmod scale 0.126 0.126
}
}

textures/11/terrain_0to1
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight

{
	map textures/temperate_sd/grass_dense1.tga
	rgbGen vertex
	alphaGen vertex
	tcmod scale 0.126 0.126
}
{
	map textures/temperate_sd/rock_ugly_brown.tga
	rgbGen vertex
	alphaGen vertex
	tcmod scale 0.126 0.126
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}

}

textures/11/terrain.vertex
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/temperate_sd/grass_dense1.tga
rgbGen vertex
tcmod scale 0.126 0.126
}
}


(psyco_mario) #2

I have no idea what you want.

Explain better Please :slight_smile:

Oh, and thats a shader… not a script :slight_smile:


(D3C0Y) #3

I think, he means that why cant he plant mines on his grass… or something like that.
Title is really hard to decipher :smiley:


(Kic) #4

I dont know , how make grassteps and surfaceparm landmine, if I write it in shader, don’t work, why?
How to fix it?
How make terrain textures in best possible way? - shader manual ???!!!


(]UBC[ McNite) #5

Link to the Shader Manual:
http://members.lycos.co.uk/quakeroats/q3map2/shader_manual/

If you have trouble with grassteps and landmine, maybe create a simple shader first and apply it to a small region, then try it out.
For where you write in which commands, have a look at the shaders of the stock maps, they give you a good idea.

For which way to make shaders best… that totally depends on which way you want to work (terrain with alphapic from EasyGen, alphablending/dotproduct2 blending, just simple shaders without any blending…).


(Shaderman) #6

http://splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=13363


(CyburK) #7

dont forget to add the name of your .shader file to the shaderlist.txt file.

greetings cyburk


(Loffy) #8

I always recompile whenever I change shaders, to make sure that the new settings get baked into the finished product.
Also, what McNite says is important to me: Create small testmaps just for testing these things, to make sure it works.