Well, let me first start off by saying these shaders worked just fine in both JKA and Nexuiz, but as soon as I moved em to Wolfenstein, I got problems.
Basically, I have tried an env mapped water shader, a sun_extâed sky shader, a stain glass window and a translucent version of the stainglass window for the light to shine through, with the entity command surfaceparm lightfilter to make the light coloured.
But on every compile, I get the black and orange grid of death, and a slew of nonsense error messages.
Iâll post the shaders, with their error message:
textures/ctt/ctt
{
qer_editorimage textures/ctt/ctt_ft
q3map_lightRGB 0.923568 0.959106 1.000000
q3map_skylight 200 5
surfaceparm nomarks
surfaceparm sky
surfaceparm noimpact
surfaceparm nodlight
q3map_lightmapFilterRadius 0 8
q3map_sunExt 1.000000 0.997119 0.857641 350 180 58 1 2
notc
nopicmip
nomipmaps
q3map_nolightmap
skyParms textures/ctt/ctt 1024 -
}
Shader textures/ctt/ctt has a stage with no image
textures/walls/whitelight
{
qer_editorimage textures/mp/ylight.jpg
q3map_surfacelight 8000
q3map_backSplash 0.4 6
q3map_nolightmap
q3map_lightRGB 1 1 1
{
map $whiteimage
blendFunc GL_DST_COLOR GL_ZERO
rgbGen const ( 1.00 1.00 1.00 )
}
{
map $whiteimage
blendFunc GL_ONE GL_ONE
rgbGen const ( 1.00 1.00 1.00 )
glow
}
}
WARNING: unknown general shader parameter âglowâ in âtextures/walls/whitelightâ
textures/water/water
{
qer_editorimage textures/water/water
qer_trans 0.7
sort banner
surfaceparm water
surfaceparm nonsolid
surfaceparm nomarks
surfaceparm trans
q3map_material water
q3map_tessSize 512
deformvertexes normal 0.1 0.1
deformvertexes wave 128 sin 0 0.5 0.2 1
{
map textures/water/water
blendfunc blend
tcMod turb 0.25 0.2 1 0.2
}
{
map textures/water/env_Water
tcGen environment
blendFunc GL_DST_COLOR GL_ZERO
blendfunc GL_ONE GL_ONE
}
{
map textures/water/water
blendFunc GL_DST_COLOR GL_ZERO
}
{
WARNING: R_FindImageFile could not find âtextures/water/waterâ in shader âtextures/water/waterâ
textures/stainglass/window1
{
map textures/stainglass/window1
q3map_surfacelight 9000
q3map_backSplash 0.4 6
q3map_nolightmap
q3map_lightRGB 1 1 1
{
map textures/stainglass/window1
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}
textures/stainglass/window2
{
map textures/stainglass/window
q3map_surfacelight 9000
q3map_backSplash 0.4 6
q3map_nolightmap
q3map_lightRGB 1 1 1
{
map textures/stainglass/window2
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}
textures/stainglass/window1trans
{
map textures/stainglass/window1trans
q3map_nolightmap
surfaceparm trans
surfaceparm lightfilter
surfaceparm alphashadow
{
map textures/stainglass/window1trans
alphaFunc GE128
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
textures/stainglass/window2trans
{
map textures/stainglass/window2trans
q3map_nolightmap
surfaceparm trans
surfaceparm lightfilter
surfaceparm alphashadow
{
map textures/stainglass/window2trans
alphaFunc GE128
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
WARNING: unknown general shader parameter âmapâ in⌠(all 4 shaders in that file)
Only one of them references a missing image⌠and all of them are missing their images. All env map images are missing as well on the water. However, I know the shader works because my sky emits light and my water makes ripples and acts just like water does. My stain glass windows emit light fine also.
Any ideas? Thanks for your help,
Pande

I read it before I had even made a shader