I know this forum has seen many terrain topics but I’ve searched for a fix to this. As far as I know I’ve done everything right yet I’m still running into problems.
-
The terrain has random cracks or tears. Here is a pic.

-
The alphamap seems to be messing up as well; what appears in game hardly relates to the alphamap.
metashader:
textures/ruins_alpha/terrain_base
{
nopicmips
q3map_lightmapaxis z
q3map_lightmapmergable
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
}
textures/ruins_alpha/terrain_0
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rock_grayvar.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_grayvar.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_1
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/grass_path1.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/grass_path1.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_2
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rocky_sand.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rocky_sand.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_3
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/dirt3.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/dirt3.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_0to1
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rock_grayvar.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_grayvar.tga
}
{
map textures/temperate_sd/grass_path1.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_0to2
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rock_grayvar.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_grayvar.tga
}
{
map textures/temperate_sd/rocky_sand.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_0to3
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rock_grayvar.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rock_grayvar.tga
}
{
map textures/temperate_sd/dirt3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_1to2
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/grass_path1.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/grass_path1.tga
}
{
map textures/temperate_sd/rocky_sand.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_1to3
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/grass_path1.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/grass_path1.tga
}
{
map textures/temperate_sd/dirt3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
textures/ruins_alpha/terrain_2to3
{
q3map_baseshader textures/ruins_alpha/terrain_base
qer_editorimage textures/temperate_sd/rocky_sand.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/temperate_sd/rocky_sand.tga
}
{
map textures/temperate_sd/dirt3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
Metashader is added to the shaderlist.
Worldspawn:
// entity 0
{
"_fog" "textures/neotic_skies/neo_yellowfog"
"_color" "1.000000 0.705507 0.534357"
"_minlight" "26"
"_mingridlight" "64"
"classname" "worldspawn"
"mapcoordsmins" "-14080 14080"
"mapcoordsmaxs" "14080 -14080"
"vertexremapshader0" "textures/ruins_alpha/terrain_0;textures/%METASHADER_NAME%_base"
"vertexremapshader1" "textures/ruins_alpha/terrain_1;textures/%METASHADER_NAME%_base"
"vertexremapshader2" "textures/ruins_alpha/terrain_2;textures/%METASHADER_NAME%_base"
"vertexremapshader3" "textures/ruins_alpha/terrain_3;textures/%METASHADER_NAME%_base"
"vertexremapshader4" "textures/ruins_alpha/terrain_0to1;textures/%METASHADER_NAME%_base"
"vertexremapshader5" "textures/ruins_alpha/terrain_0to2;textures/%METASHADER_NAME%_base"
"vertexremapshader6" "textures/ruins_alpha/terrain_0to3;textures/%METASHADER_NAME%_base"
"vertexremapshader7" "textures/ruins_alpha/terrain_1to2;textures/%METASHADER_NAME%_base"
"vertexremapshader8" "textures/ruins_alpha/terrain_1to3;textures/%METASHADER_NAME%_base"
"vertexremapshader9" "textures/ruins_alpha/terrain_2to3;textures/%METASHADER_NAME%_base"
terrain group:
// entity 427
{
"alphamap" "ruins_alpha.pcx"
"shader" "ruins_alpha/terrain"
"layers" "4"
"terrain" "1"
"classname" "func_group"
I’ve been recreating and redoing this for a few days now and I can’t figure it out; I’ve done this successful so many times… I want to scream now.

