PDA

View Full Version : Where to place surfaceparm grassteps and landmine for work?


Kic
30th August 2006, 10:51
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
30th August 2006, 11:42
I have no idea what you want.

Explain better Please :)

Oh, and thats a shader.. not a script :)

D3C0Y
30th August 2006, 12:34
I think, he means that why cant he plant mines on his grass... or something like that.
Title is really hard to decipher :D

Kic
30th August 2006, 12:41
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
30th August 2006, 12:57
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
30th August 2006, 13:32
http://splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=13363

CyburK
30th August 2006, 20:16
dont forget to add the name of your .shader file to the shaderlist.txt file.

greetings cyburk

Loffy
31st August 2006, 08:04
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.