News:

Come Chat with us live! Learn how HERE!

Main Menu

Light emitting shader fail

Started by nudie, September 16, 2009, 11:33:20 AM

nudie

I've been trying to make a light emitting texture like the one from mudkip_b1 but failed.
From Mudkip_b1


My texture glows but does not emit any light.


Here's the script:
textures/android/solid_blue
{
        qer_editorimage textures/android/solid_blue.tga
   q3map_lightimage textures/android/solid_blue.tga
   surfaceparm nomarks
        q3map_surfacelight 1200
        {
                map textures/android/solid_blue.tga
                rgbGen identity
        }
   {
      map $lightmap
      tcGen lightmap
   }
   {
      map textures/android/solid_blue.tga
      blendfunc add
   }
}

Does anybody know what I'm doing wrong?

Taiyo.uk

Is your map name in your shaderlist.txt? Looks like trem can find the shader but q3map2 cannot.

nudie

#2
Quote from: Taiyo.uk on September 16, 2009, 06:35:26 PM
Is your map name in your shaderlist.txt? Looks like trem can find the shader but q3map2 cannot.
I just added it to the in Tremulous/base/scripts/shaderlist.txt
but it doesn't do anything.

Somebody help me plz. I really want to finish this map.

UniqPhoeniX

Is the shader file mapname.shader? Shaderlist.txt needs the name of that file (without .shader).

nudie

Yes, I have done the above instructions, but I still have this problem.
Mudkip_b1 is not on the shaderlist.txt, yet the lights still glow.
For the moment, I will have to result to the light entities until someone can figure this out.

UniqPhoeniX

Tremulous doesn't use shaderlist afaik, only radiant and the compiler. That light on the walls is added during compile.

Minimum

Just for the hell of being offtopic, nudieeeeee.

Also, I'm a RadiantNoob, but maybe try making a row of small lights? I sense there would be lag problems with doing that though, :<.

gimhael

The number of lights has no influence on the FPS in the final level, because the engine doesn't render any lights. This is all compiled into the static lightmap. The compile would need more time though.

Ingar

Note that fullbright ("glow") and surface light ("light") are not related.