diff ambient in diff areas

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

diff ambient in diff areas

Post 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?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

no.

$world values cant be changed after spawn i dont think.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

Sure, why not?
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

aw man :( that sucks... i could swear ive seen this done before...
Image
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

I've done it before too.
:?
"all the governments in the world are corrupt and in the hands of the Illuminati"
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post 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.
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post 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?
Image
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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 :oops:
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

thats exactly what I thought
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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 :wink:
Admin .MAP Forums
Image
Head above heels.
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

no no, uve given me and idea =) I love you guys lol
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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...
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post 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?
Image
Balr14
Colonel
Posts: 450
Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA

Post 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 :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.
Post Reply