Author Topic: Light emitting shader fail  (Read 4476 times)

nudie

  • Posts: 32
  • Turrets: +1/-3
Light emitting shader fail
« on: September 16, 2009, 11:33:20 am »
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

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Re: Light emitting shader fail
« Reply #1 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.

nudie

  • Posts: 32
  • Turrets: +1/-3
Re: Light emitting shader fail
« Reply #2 on: September 17, 2009, 07:54:46 am »
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.
« Last Edit: September 20, 2009, 01:08:53 am by nudie »

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Light emitting shader fail
« Reply #3 on: September 20, 2009, 01:22:43 am »
Is the shader file mapname.shader? Shaderlist.txt needs the name of that file (without .shader).

nudie

  • Posts: 32
  • Turrets: +1/-3
Re: Light emitting shader fail
« Reply #4 on: September 20, 2009, 06:17:09 am »
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

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Light emitting shader fail
« Reply #5 on: September 21, 2009, 04:11:59 am »
Tremulous doesn't use shaderlist afaik, only radiant and the compiler. That light on the walls is added during compile.

Minimum

  • Posts: 126
  • Turrets: +4/-7
Re: Light emitting shader fail
« Reply #6 on: September 21, 2009, 10:39:08 am »
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

  • Posts: 546
  • Turrets: +70/-16
Re: Light emitting shader fail
« Reply #7 on: September 21, 2009, 12:23:42 pm »
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

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Light emitting shader fail
« Reply #8 on: September 21, 2009, 05:33:04 pm »
Note that fullbright ("glow") and surface light ("light") are not related.