A question on ambient light

MoonUnit

L1: Registered
Aug 12, 2008
12
0
This is kind of a newbie question so apologies, but I had a search through and couldn't find the answer anywhere.

Essentially what I'm trying to understand is how bounce light works in indoor environments. I understand that outdoors when you have an light_env any face that can see the skybox but is not lit directly by the sunlight angle is lit by the ambient light, thus creating light in shadows so they aren't completely black.

So what's the indoor equivalent?

I.e. looking at a decompiled lumberyard map, the spawn room (that's completely encased when the doors are closed to begin with) is lit only with two downward facing spots and yet the roof area above the spots is not completely black. Why? What's lighting that?

Again I'm a newbie to all this but thank in advance for any help.
 

TheBladeRoden

L420: High Member
Oct 26, 2007
491
168
Radiosity makes the light hitting the floor bounce back up onto the ceiling.

Oh, and welcome to our club, join the chat.
 

MoonUnit

L1: Registered
Aug 12, 2008
12
0
Thanks for the welcome and the advice so far.

Ok so that wiki page was useful and I sort of understand the different falloff systems but I'm still not really understanding what causes the bounce. I mean as you say a constant light would theoretically never fade but for a spotlight it would never fade only in the direction to which it is being aimed.

In a practical in hammer sense, could someone demonstrate how using a downward facing spot they could light a room including the roof above the spotlight. I.e. bounce the light off of the floor and onto the ceiling. Or am I just not turning on some property or compile option?
 
Last edited:
Dec 25, 2007
566
439
The light bounces are calculated when you run Vrad as part of a compile. They might be skipped a bit when using the "Fast" option, I'm not sure.

If you're seeing a mostly black ceiling, it might well be that you've got a light prop that's casting shadows, so you should turn shadows off for it.
 

MoonUnit

L1: Registered
Aug 12, 2008
12
0
Ok I've attached to this post some screencaps of my problem. There's the light_spot entity in a small room. Its downward facing and has an intensity of 2000 (sorta extreme to illustrate the point, looking at decompiled valve maps they're often 200). There's a prop above it with shadows disabled. After compile (with normal RAD settings) you get the other two pictures showing how the floor where the light directly hits is light but there's zero bounce light.
 

TheDarkerSideofYourShadow

L10: Glamorous Member
Apr 12, 2008
792
286
With a light_spot, you'll want to toy with the angles. There is both the inner and the outer. Make sure you have the helpers button on (upper right of hammer, I believe it is the wireframe sphere) to see what they look like in the map.
 

FaTony

Banned
Mar 25, 2008
901
160

samn

L4: Comfortable Member
Mar 28, 2008
158
47
Can you post your compile log?

If it is a leak then you can go to Map -> Load Pointfile, it should show a red arrow that gives you an idea of where the leak is.
 

efciem

L69: Deviant Member
Mar 31, 2008
69
6
wouldnt a leak just make the map fullbright?
thus , blackness would be impossible?
 

Altaco

L420: High Member
Jul 3, 2008
484
120
No, the map is still lit if there's a leak I believe, but there are no bounces. Not sure though.
 

efciem

L69: Deviant Member
Mar 31, 2008
69
6
Radiosity is a global illumination algorithm, Basicly what it means is
Light pointing in a certain direction, will hit any object in its path, light is then absorbed by the object and reflected back outwards at a similar but opposing angle of that of the light hitting it, this can be 100% of the light bouncing off, to only a small percentage, this would depend on the surface the light is hitting.

In Hammer, rad process in compile handles this,.

You can set your light up , to have limits to the distance the light will travel before it fades out / falls off.

Increase these options in the spot light properties and you will see the difference. The question remains, if the model above your light is blocking the light.. if you attempt lowering the light entity down slightly fromunder the light model, you may also notice this changes things.

here is an example of what radiosity does:

http://en.wikipedia.org/wiki/Image:Radiosity_Comparison.jpg
 

MoonUnit

L1: Registered
Aug 12, 2008
12
0
So it was a leak, thanks for a all the help guys :)

(if your curious there was some trouble with displacements and a mesh that protruded out into the void seemed to cause a bit of trouble too).