Code center > Suggestions

Optics

<< < (7/13) > >>

Zelos:
the light intesity is the inverse square. if we double the distance it becomes 4 times weaker

Numsgil:
Light intensity for a radiating body in a non absorptive medium.  Things like stars in space.  Doesn't quite work the same if the medium is absorbing light as you go along.  At least I don't beleive so.  Feel free to find something to the contrary.

Here's my proof:


--- Quote ---Theory:
Light intensity decreases as the square of the distance from a light source. For example, if you measure 200 lm/ft2 at a distance of two feet from a light bulb, then at a distance of four feet, you will detect 50 lm/ft2. This fact assumes that the light is travelling through a vacuum. This is a reasonable approximation for air, but it is not a fair approximation for water. First of all, when light makes the transition from air to water, a fair portion of that light will be reflected. This explains why you can often see your reflection in a calm pool of water. This reflection of light occurs because water has a higher index of refraction than air. The light that is ultimately transmitted (allowed to penetrate the water) then has to deal with more absorption and scattering from various particles in the water. This combination of absorption and scattering is called attenuation. All these factors explain why it is significantly darker underwater than above water.

Like light intensity, temperature tends to decrease as depth increases. There are two reasons for this. For one thing, less light is received the further down below the surface you go. When light is absorbed by a substance, it is converted into heat, so more light means more heat. As you go down further and further beneath the surface, you'll find less and less light and therefore temperatures are cooler. It is also a fact that cold water is denser than warm water, so it will sink down to the bottom while warm water rises to the surface.
--- End quote ---

This is what I found (yes, read it.  Seriously.  READ...IT)

Source Some crazy experiment for kids (or maybe students).

Zelos:
interesting, I like it exept that its using foot. god damn it why cant ppl use SI units, the right and only good units.

Endy:
Alright, I'll chip in my two cents. :)  I was just wondering if we could create true day/night cycles, affecting sight radius with this. Shouldn't be too hard since some of the code is already there for the plants.

Something like *.night could be used to tell the "time".

Numsgil:
You mean a gradual change instead of BAM night and BAM day?

I was thinking of tying this sight radius thing in pretty tightly with the veggie controls.  Unless people think they want seperate controls for each.

That would also encourage bots to sleep at night.  Before the problem was bots that hunted irregardless of what time it was, decimating a veggy population in the middle of the night.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version