Need help with terrain shaders


(Arcanis) #1

This is my terrain shader:

textures/tc_flakcannon/terrain_0
{
qer_editorimage textures/temperate_sd/grass_dense1.tga
q3map_lightmapsamplesize 64
q3map_lightmapaxis z
q3map_texturesize 256 256
q3map_tcGen ivector ( 128 0 0 ) ( 0 128 0 )
{
map textures/temperate_sd/grass_dense1.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}

textures/tc_flakcannon/terrain.vertex
{
{
map textures/temperate_sd/grass_dense1.tga
rgbGen vertex
}
}

But the terrain is so boring because there is only one texture. I dont know how to mix more textures?

Plz help


(The Wanderer) #2

are you using easygen for your terrain? If so you should read the help that comes with it on how to use it, because it explains how to texture your terrain also.


(Orange) #3

Ohh EasyGen… I never leave my house without it…
J/k

But I do recommend you to use EasyGen, it solved me so much trouble…


(MadMaximus) #4

yes… easygen is an excellent terrain builder, i would have been lost without it, but if you want to try some more stylistic terrain not hindered by a set x and y grid, i would suggest you read ratty’s or seven_dc’s tut’s about alphamod blending, you can do some real nice terrain texturing with it.

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

http://www.splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=8276&highlight=alphamod


(Orange) #5

One thing about creating terrains:
No matter how big they look in gtkRadiant, it’ll be much smaller in the game.
Think BIG…


(MadJack) #6

Orange, that’s totally false. Texture size in radiant should be pretty much the same in the game. That is on terrain or on brushes.

If it’s different in your case, it’s because you did something wrong. Or you haven’t fixed the problem with easygen’s shader.


(Orange) #7

I’m not talking about the texture’s size, I’m talking about the terrain itself…
Maybe I did my calculations wrong, but I know I had to double my terrain size after I saw it’s too small.