(Terrain) shader doesn't seem to work
Posted: Sun Mar 15, 2009 9:13 pm
Hm, don't know how to start this... I began working with terrain in GTKRadiant some time ago (still gotta finish a couple of other maps and terrain would greatly enhance a few of them especially my new one). Now I got that shader here, just a simple one level shader, so nothing is blended or whatever, but it won't show up in GTKRadiant (neither in 1.2.1 nor in 1.5.0).
The er_rock02 texture should be applied to a terrain I've been creating inside EasyGen, since I wanted to know if that thing is something useful for Q3 mapping. But,as said, the exported and saved as .map file shows up in GTKRadiant, but without any er_rock02 texturing, it's just the common terrain texture that is shown, although it has the right key values if you look them up by pressing "n", such as entity, shader, alphamap and so on.
If anyone is familiar with terrain shaders I would really appreciated his oder her help. I hope that I mentioned everything that has to be mentioned.
Shader:
The key values shown in the editor for the terrain texture are:
classname func_group
terrain 1
layers 1 (since I got only one texture at that time to make it not too complicated if someone checks this shader)
shader scum/terrain
alphamap scum.pcx
By the way this is the second or third form of my shader: the first ones had .jpg endings instead of .tga and also no qer_editorimage textures/scum/er_rock02.tga, I added that one, but it didn't work neither.
The er_rock02 texture should be applied to a terrain I've been creating inside EasyGen, since I wanted to know if that thing is something useful for Q3 mapping. But,as said, the exported and saved as .map file shows up in GTKRadiant, but without any er_rock02 texturing, it's just the common terrain texture that is shown, although it has the right key values if you look them up by pressing "n", such as entity, shader, alphamap and so on.
If anyone is familiar with terrain shaders I would really appreciated his oder her help. I hope that I mentioned everything that has to be mentioned.

Shader:
Code: Select all
textures/scum/terrain_0
{
qer_editorimage textures/scum/er_rock02.tga
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/scum/er_rock02.tga
rgbGen vertex
tcmod scale 0.250 0.250
}
}
textures/scum/terrain.vertex
{
qer_editorimage textures/scum/er_rock02.tga
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/scum/er_rock02.tga
rgbGen vertex
tcmod scale 0.250 0.250
}
}
The key values shown in the editor for the terrain texture are:
classname func_group
terrain 1
layers 1 (since I got only one texture at that time to make it not too complicated if someone checks this shader)
shader scum/terrain
alphamap scum.pcx
By the way this is the second or third form of my shader: the first ones had .jpg endings instead of .tga and also no qer_editorimage textures/scum/er_rock02.tga, I added that one, but it didn't work neither.