Jump to content

Home

Terrain-Textures-Question


way

Recommended Posts

if you look in the gtkradiant folder, you'll find a tutorial explaining how to do terrains like this one.

 

it's a little outdated though. you'll probably want you terrain lightmapped, which wasn't a feature before q3map2. So you change the metashader. Go here http://www.shaderlab.com/q3map2/manual/notes/wabbit.htm for the new metashader example to get lightmapping.

Link to comment
Share on other sites

I have this already at the end of my shader:(

Does the *.shader-file help?

here:

textures/eigene/baseterrain

{

q3map_lightmapsamplesize 8

q3map_lightmapsampleoffset 8

q3map_lightmapaxis z

}

 

textures/eigene/terrain_0

{

q3map_baseshader textures/eigene/baseterrain

{

map textures/yavin/greenblock.jpg

rgbGen identity

tcMod scale 0.1 0.1

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_1

{

q3map_baseshader textures/eigene/baseterrain

{

map textures/yavin/rock3.jpg

rgbGen identity

tcMod scale 0.05 0.05

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_2

{

q3map_baseshader textures/eigene/baseterrain

{

map textures/yavin/lighturth.jpg

rgbGen identity

tcMod scale 0.075 0.075

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_3

{

q3map_baseshader textures/eigene/baseterrain

{

map textures/yavin/stone.jpg

rgbGen identity

tcMod scale 0.1 0.1

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_0to1

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/greenblock.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

}

{

map textures/yavin/rock3.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.05 0.05

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_0to2

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/greenblock.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

}

{

map textures/yavin/lighturth.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.075 0.075

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_0to3

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/greenblock.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

}

{

map textures/yavin/stone.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_1to2

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/rock3.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.05 0.05

}

{

map textures/yavin/lighturth.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.075 0.075

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_1to3

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/rock3.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.05 0.05

}

{

map textures/yavin/stone.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen identity

}

}

 

textures/eigene/terrain_2to3

{

q3map_baseshader textures/eigene/baseterrain

 

{

map textures/yavin/lighturth.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.075 0.075

}

{

map textures/yavin/stone.jpg

rgbGen identity

alphaGen vertex

tcmod scale 0.1 0.1

blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

}

{

map $lightmap

blendFunc GL_DST_COLOR GL_ZERO

tcGen lightmap

rgbGen indentity

}

}

 

textures/eigene/terrain.vertex

{

{

map textures/yavin/greenblock.jpg

rgbGen vertex

}

}

 

textures/common/terrain

{

q3map_terrain

surfaceparm nodraw

surfaceparm nolightmap

surfaceparm nomarks

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...