Tremulous Forum

Media => Mapping Center => Topic started by: Evoc on August 06, 2008, 07:19:34 pm

Title: Light Shader Problem
Post by: Evoc on August 06, 2008, 07:19:34 pm
Hey, Evoc again.

For my map, I am borrowing the primary light shader used in Tremor (the one used on all of the walls, in all the light fixtures, etc - take a look around Tremor and you'll see what I mean).

Except, the thing is, when I import the shader into my map, and use it (it's part of the Titan texture set), it doesn't appear as bright as it does in Tremor.

It does emit light, and I know I am using the shader for sure (white line around it in texture browser), but if I compare both maps side by side, for some reason it looks brighter in Tremor, and I confirmed this by adding Tremor's "light flicker" shader, and that emitted the same amount of light as it did in Tremor, yet the non-flickering normal one does not emit as much light as it does in Tremor.

Why does this happen, and how can I fix this?
Title: Re: Light Shader Problem
Post by: Lava Croft on August 06, 2008, 07:23:58 pm
Copy the light shader to your own mymap.shader and make it brighter.
Title: Re: Light Shader Problem
Post by: Odin on August 06, 2008, 07:50:32 pm
Or use -scale for q3map2. This is what was probably used for tremor.
Title: Re: Light Shader Problem
Post by: Lava Croft on August 06, 2008, 08:07:36 pm
-scale is a decrepid solution for a problem that should be solved in the map itself, not via a compile switch.
Title: Re: Light Shader Problem
Post by: Odin on August 07, 2008, 12:02:49 am
-scale is the same as making your lights brighter manually, since that's what it does for you.
Title: Re: Light Shader Problem
Post by: Lava Croft on August 07, 2008, 12:27:58 am
-scale is the same as making your lights brighter manually, since that's what it does for you.
Exactly.
Title: Re: Light Shader Problem
Post by: TRaK on August 07, 2008, 12:54:55 am
If I remember correctly, if you look at tremor.map there are point lights placed under each fixture. However, the easier way would be to copy over the shader and edit the surfacelight value.
Title: Re: Light Shader Problem
Post by: Odin on August 07, 2008, 06:03:52 am
-scale is the same as making your lights brighter manually, since that's what it does for you.
Exactly.
Except you don't have to edit each and every shader light you have or modify each and every point light.
Title: Re: Light Shader Problem
Post by: Lava Croft on August 07, 2008, 08:50:47 am
-scale is the same as making your lights brighter manually, since that's what it does for you.
Exactly.
Except you don't have to edit each and every shader light you have or modify each and every point light.
If you need -scale it means the lighting on your map is broken. It means you have to fix the lighting on your map, by editing the lighting in your map by hand. Using switches like -scale or -gamma is just a very crude solution that really should be avoided.