Ok i have a mistery that the devteam might solve, cause im at a loss quiete honestly.
i made 2 different versions of the map, one with vertext lit terrain, and one with lightmapped terrain.
for the lightmapped terrain i used the global _fog command and i refer to the following shader:
textures/eagle/fog
{
qer_editorimage textures/sfx/fog_grey1.tga
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm trans
surfaceparm fog
fogparms ( 0.2 0.2 0.2 ) 2400
}
i have my _farplanedist set at 600
same as the fogclip
my terrain has the following shader:
textures/snowrocket/terrain_base
{
q3map_lightmapMergable
q3map_lightmapaxis z
q3map_lightmapsize 512 512
q3map_normalimage textures/sd_bumpmaps/normalmap_terrain.tga
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
q3map_tcMod rotate 37
q3map_tcMod scale 1 1
surfaceparm landmine
surfaceparm snowsteps
}
textures/snowrocket/terrain_0
{
qer_editorimage textures/stone/mxsnow2.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow2.tga
rgbgen identity
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_1
{
qer_editorimage textures/snow_sd/mxrock4b_snow.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/snow_sd/mxrock4b_snow.tga
rgbgen identity
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_2
{
qer_editorimage textures/stone/mxsnow3.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow3.tga
rgbgen identity
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_3
{
qer_editorimage textures/stone/mxrock3h_snow.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxrock3h_snow.tga
rgbgen identity
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_0to1
{
qer_editorimage textures/stone/mxsnow2.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow2.tga
rgbgen identity
}
{
map textures/snow_sd/mxrock4b_snow.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_0to2
{
qer_editorimage textures/stone/mxsnow2.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow2.tga
rgbgen identity
}
{
map textures/stone/mxsnow3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_0to3
{
qer_editorimage textures/stone/mxsnow2.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow2.tga
rgbgen identity
}
{
map textures/stone/mxrock3h_snow.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_1to2
{
qer_editorimage textures/snow_sd/mxrock4b_snow.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/snow_sd/mxrock4b_snow.tga
rgbgen identity
}
{
map textures/stone/mxsnow3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_1to3
{
qer_editorimage textures/snow_sd/mxrock4b_snow.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/snow_sd/mxrock4b_snow.tga
rgbgen identity
}
{
map textures/stone/mxrock3h_snow.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
textures/snowrocket/terrain_2to3
{
qer_editorimage textures/stone/mxsnow3.tga
q3map_baseshader textures/fueldump/terrain_base
{
map textures/stone/mxsnow3.tga
rgbgen identity
}
{
map textures/stone/mxrock3h_snow.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbgen identity
alphaGen vertex
}
{
lightmap $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
{
map textures/detail_sd/snowdetail.tga
blendFunc GL_DST_COLOR GL_SRC_COLOR
rgbgen identity
tcMod scale 5 5
detail
}
}
and my r_speeds are like this:
now comes the vertex lit map with the same _farplanedist and fogclip as lightmapped terrain
shader for sky:
textures/eagle/Sky
{
qer_editorimage textures/eagle/sky_m01dmcmp
q3map_globaltexture
q3map_lightsubdivide 1024
q3map_sun 0.55 0.55 0.55 90 220 60
q3map_surfacelight 90
skyparms - 200 -
surfaceparm nodlight
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
fogvars ( 0.2 0.2 0.2 ) 2300
}
shader for terrain:
textures/rocketbase/terrain.vertex
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var01.tga
rgbgen identity
rgbGen vertex
tcmod scale 0.04 0.04
}
}
textures/rocketbase/terrain_0
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var01.tga
rgbGen vertex
rgbgen identity
tcmod scale 0.04 0.04
}
}
textures/rocketbase/terrain_1
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var02.tga
rgbGen vertex
rgbgen identity
tcmod scale 0.04 0.04
}
}
textures/rocketbase/terrain_2
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/mxrock4b_snow.tga
rgbGen vertex
rgbgen identity
tcmod scale 0.04 0.04
}
}
textures/rocketbase/terrain_0to1
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var01.tga
rgbGen vertex
rgbgen identity
alphaGen vertex
tcmod scale 0.04 0.04
}
{
map textures/snow_sd/snow_var02.tga
rgbgen identity
rgbGen vertex
alphaGen vertex
tcmod scale 0.04 0.04
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
textures/rocketbase/terrain_0to2
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var01.tga
rgbGen vertex
rgbgen identity
alphaGen vertex
tcmod scale 0.04 0.04
}
{
map textures/snow_sd/mxrock4b_snow.tga
rgbgen identity
rgbGen vertex
alphaGen vertex
tcmod scale 0.04 0.04
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
textures/rocketbase/terrain_1to2
{
surfaceparm landmine
surfaceparm snowsteps
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/snow_sd/snow_var02.tga
rgbgen identity
rgbGen vertex
alphaGen vertex
tcmod scale 0.04 0.04
}
{
map textures/snow_sd/mxrock4b_snow.tga
rgbgen identity
rgbGen vertex
alphaGen vertex
tcmod scale 0.04 0.04
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
and the r_speeds piccie:

so u see there is a HUGE difference in r_speeds.
btw for some reason i cant place landmines on the vertex lit terrain or there doesnt flock up snow when u fire on the terrain.
Hope someone can solve the mistery
Grts Thej

