Page 1 of 1
diff ambient in diff areas
Posted: Tue Feb 15, 2005 9:11 pm
by HDL_CinC_Dragon
is it possible to have a tunnel type thing with maybe ambient 15 15 15 and then have a building somewhere else in the map have abmient light 75 75 75?
Posted: Tue Feb 15, 2005 9:12 pm
by lizardkid
no.
$world values cant be changed after spawn i dont think.
Posted: Tue Feb 15, 2005 9:24 pm
by hogleg
Sure, why not?
Posted: Tue Feb 15, 2005 10:36 pm
by HDL_CinC_Dragon
aw man

that sucks... i could swear ive seen this done before...
Posted: Tue Feb 15, 2005 11:28 pm
by hogleg
I've done it before too.

Posted: Tue Feb 15, 2005 11:52 pm
by panTera
Impossible. All worldspawn values affect the whole map, not specific areas. Just think of farplane(fog) or suncolor.
But of course you can use a different amount of light in different areas. If you want a tunnel to be darker than the rest of the map, make sure you don't set the ambientlight too high. To then make a certain part or building brighter you're gonna have to use pointlights. It also can help if a building has open windows/roofs so the sunlight can shine through.
Posted: Wed Feb 16, 2005 7:57 pm
by HDL_CinC_Dragon
well what I want to do is have it be a day-time map but I have a sewer system that I want to be slightly dark but light enough to see. know what I mean?
Posted: Wed Feb 16, 2005 9:00 pm
by hogleg
Hmmmm, I thought that when u highlighted lets say ur water brush and gave it amb lighting values that it just made the water give off that value of light. I relize its under worldspawn but thought it was just applied to that brush.
So no matter what u highlight amb lighting or anything worldspawn applies to the whole map?
I have applied several different ambient light values to different brushes so I guess its using the first one it see's, huh?
oops

Posted: Wed Feb 16, 2005 9:18 pm
by HDL_CinC_Dragon
thats exactly what I thought
Posted: Wed Feb 16, 2005 10:05 pm
by Bjarne BZR
There are 3 light types:
1) Ambient: appied to everything. This value dictates the absolute darkest there can be in a map. A sealed off room with no openings will have this light.
2) Point: Basically "lightbulbs". Radiate light equally in all directions from a singular point (hence the name I guess

). A sealed off room with no openings and a point light will have this light + the ambient light.
3) Sunlight: As opposed to point light: this light is parallell to in a single direction ( an approximation of the light from the sun ( real sunlight is not paralell, but the few rays that reach us are pretty far from the sun, so considering it paralell vill be easier to compute and the human eye does not notice a difference ) ). A sealed off room with no openings Will have none of this light. But rip off the roof an it will probably get some ( if you have set the sunlight to come from above atleast... )
There is also a kind of fourth light type: light emitting surfaces. But what the compiler actually does under the hood is to create a number of point lights over the surface. So really it is just a shortcut for placing a lot of small point lights.
Again, there is also a fifth kind of light: spotlights. But as that is just a specially configured point light (made to light up a cone from the point light source), its not really a type by itself.
I just started writing and now I wrote all of this, and probably totally besides the point. Just ignore me

Posted: Wed Feb 16, 2005 10:15 pm
by HDL_CinC_Dragon
no no, uve given me and idea =) I love you guys lol
Posted: Wed Feb 16, 2005 10:36 pm
by Master-Of-Fungus-Foo-D
to get the effect you want you need to use suncolor ( 70 70 70) and amient (bout for your light somewhere under 10) so your tunnel will be dark enought for point light to look good...
Posted: Wed Feb 16, 2005 10:39 pm
by HDL_CinC_Dragon
exactly what im doing =) thnx man!
Sunlight Question:
If I put sundirection: 125 125 125 will it go diagonal parralel from 125x 125y 125z down onto 0x 0y 0z on my map?
Posted: Thu Feb 17, 2005 4:13 am
by Balr14
hogleg wrote:Hmmmm, I thought that when u highlighted lets say ur water brush and gave it amb lighting values that it just made the water give off that value of light. I relize its under worldspawn but thought it was just applied to that brush.
So no matter what u highlight amb lighting or anything worldspawn applies to the whole map?
I have applied several different ambient light values to different brushes so I guess its using the first one it see's, huh?
oops

ambient light is a wordspawn property and does not apply to any brush. You select a brush simply as a convenient way to specify worldspawn values, but they become a seperate entity.