03-13-2011, 05:01 PM
(03-13-2011, 03:03 PM)theShadow Wrote: ok kitsune, I will have to ask around about that.
Sure. Or you can look at the map itself in Nexuiz. I actually took a look at it just now. This is the terrain shader that ons-reborn uses (keep in mind it also has multiple layers via alpha map, but I don't think that will matter here):
Code:
textures/test3/terrain_0
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_surfaceModel models/grass02.md3 24 0.025 1.5 3 1 122 1
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_1
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground2.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_2
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/rock02b.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_3
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground4.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_4
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/sand01.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/rock_b.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_0to1
{
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
q3map_nonplanar
q3map_globalTexture
q3map_surfaceModel models/grass02.md3 38 0.025 1 2 1 122 1
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map textures/terraintex/ground2.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_0to2
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map textures/terraintex/rock02b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_0to3
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map textures/terraintex/ground4.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_0to4
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map textures/terraintex/sand01.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_0to5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/grass2.tga
}
{
map textures/terraintex/rock_b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_1to2
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground2.tga
}
{
map textures/terraintex/rock02b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_1to3
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground2.tga
}
{
map textures/terraintex/ground4.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_1to4
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground2.tga
}
{
map textures/terraintex/sand01.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_1to5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground2.tga
}
{
map textures/terraintex/rock_b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_2to3
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/rock02b.tga
}
{
map textures/terraintex/ground4.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_2to4
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/rock02b.tga
}
{
map textures/terraintex/sand01.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_2to5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/rock02b.tga
}
{
map textures/terraintex/rock_b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_3to4
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground4.tga
}
{
map textures/terraintex/sand01.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_3to5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/ground4.tga
}
{
map textures/terraintex/rock_b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
textures/test3/terrain_4to5
{
q3map_nonplanar
q3map_globalTexture
q3map_shadeangle 179
q3map_lightmapsamplesize 32
q3map_lightmapaxis z
q3map_lightmapBrightness 0.5
q3map_lightmapsampleoffset 8.0
// q3map_texturesize 512 512
q3map_tcGen ivector ( 384 0 0 ) ( 0 384 0 )
{
map textures/terraintex/sand01.tga
}
{
map textures/terraintex/rock_b.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
//rgbGen identity
}
}
//textures/test3/terrain.vertex
//{
// {
// map textures/terraintex/grass2.tga
// rgbGen vertex
// }
//}
That shader file is called test3 in Nexuiz. The brush that has the texture on next, is a func_group, and has the following keys:
alphamap ons/ons-reborn-terrain.pcx
layers 6
shader test3/terrain
terrain 1
Some of them are for layer map support again, but I posted everything for the info. Hope this helps