q3map2 2.3.31/ old fashioned vertext lit terrain


(Sub-Zero) #1

Forgive me if this is a hallmark n00b issue, but I can’f find any info anywhere.

I created some terrain with easygen and exported it with skybox and info_playerstart.
q3map2 complains about not finding textures it should be able to find during the bsp stage.

— ClipSidesIntoTree —
WARNING: Couldn’t find image for shader textures/mountain/terrain_0
WARNING: Couldn’t find image for shader textures/mountain/terrain_0to1
WARNING: Couldn’t find image for shader textures/mountain/terrain_1
WARNING: Couldn’t find image for shader textures/mountain/terrain_1to2
WARNING: Couldn’t find image for shader textures/mountain/terrain_2
WARNING: Couldn’t find image for shader textures/mountain/terrain_2to3
WARNING: Couldn’t find image for shader textures/mountain/terrain_3

When I load the map, the textures show up but they are not blended between tris. I have the easygen generated shader in shaderlist.txt, the shadername.pcx in baseq3 along with shadername.bmp, and all of the textures used in the meta shader are 32 bit tgas. What am I doing wrong?


(Sub-Zero) #2

Here’s my metashader…

textures/mountain/terrain_0
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock21.tga
rgbGen vertex
tcmod scale 0.125 0.125
}
}

textures/mountain/terrain_1
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock17.tga
rgbGen vertex
tcmod scale 0.125 0.125
}
}

textures/mountain/terrain_2
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock6.tga
rgbGen vertex
tcmod scale 0.166666672 0.166666667
}
}

textures/mountain/terrain_3
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock16.tga
rgbGen vertex
tcmod scale 0.125 0.125
}
}

textures/mountain/terrain_0to1
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock21.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
}
{
map textures/stone/pjrock17.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/terrain_0to2
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock21.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
}
{
map textures/stone/pjrock6.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/terrain_0to3
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock21.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
}
{
map textures/stone/pjrock16.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/terrain_1to2
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock17.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
}
{
map textures/stone/pjrock6.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/terrain_1to3
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock17.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
}
{
map textures/stone/pjrock16.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.125 0.125
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/terrain_2to3
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock6.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.166666672 0.166666667
}
{
map textures/stone/pjrock16.tga
rgbGen vertex
alphaGen vertex
tcmod scale 0.166666672 0.166666667
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/mountain/vxterrain
{
q3map_terrain
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
map textures/stone/pjrock21.tga
rgbGen vertex
tcmod scale 0.125 0.125
}
}


(ydnar) #3

<pre style=“font-size:12px”>
textures/subzero_mtn/terrain_base
{
q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 ) // sets texture coordinates
q3map_tcMod rotate 33 // rotates them a little to make it look good
surfaceparm pointlight // sets no lightmap (vertex lighting only)

// note that q3map_terrain DOES NOT go in your shaders,
// but rather in the textures/common/terrain shader that
// you put on the brushes in radiant

}

textures/subzero_mtn/terrain_0
{
// this line tells q3map2 to use the above shader as a ‘base’ for this shader
// so it inherits all the texturing/lighting settings of it

q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock21.tga
    rgbGen vertex
    // note: there's no tcMod scale, as the texture coordinates are
    // already pre-set by q3map, for faster in-game rendering
}

}

textures/subzero_mtn/terrain_1
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock17.tga
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_2
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock6.tga
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_3
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock16.tga
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_0to1
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock21.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock17.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
    // note: rgbGen vertex implies alphaGen vertex automatically
}

}

textures/subzero_mtn/terrain_0to2
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock21.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock6.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_0to3
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock21.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock16.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_1to2
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock17.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock6.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_1to3
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock17.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock16.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
}

}

textures/subzero_mtn/terrain_2to3
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock6.tga
    rgbGen vertex
}
{
    map textures/stone/pjrock16.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
}

}

textures/subzero_mtn/vxterrain
{
q3map_baseshader textures/subzero_mtn/terrain_base

{
    map textures/stone/pjrock21.tga
    rgbGen vertex
}

}</pre>

<font size=-1>[ This Message was edited by: ydnar on 2002-11-23 14:45 ]</font>