Difference between revisions of "Documentation Talk:Reference Section 5.1"

From POV-Wiki
Jump to navigation Jump to search
m (follow up)
(Ambient description was a bit outdated)
Line 6: Line 6:
  
 
:* added link to the documentation --[[User:Jholsenback|jholsenback]] 14:47, 7 July 2010 (UTC)
 
:* added link to the documentation --[[User:Jholsenback|jholsenback]] 14:47, 7 July 2010 (UTC)
 +
 +
 +
Suggested change to ambient section below. Please check the links as I'm not sure
 +
what the commented linkto tags actually do.
 +
 +
====Ambient====
 +
<p>The light you see in dark shadowed areas comes from diffuse reflection off of other objects. This light cannot be modeled directly using ray-tracing, however, the <!--<linkto "radiosity">radiosity</linkto>--->[[Documentation:Tutorial_Section_3.7#Radiosity|radiosity]] feature can do a realistic approximation at the cost of higher render times. For most scenes, especially in-door scenes, this is will greatly improve the end result.</p>
 +
 +
<p>The classic way to simulate <em>ambient lighting</em> in shadowed areas is to assume that light is scattered
 +
everywhere in the room equally, so the effect can simply be calculated by adding a small amount of light to each texture,
 +
whether or not a light is actually shining on that texture. This renders very fast, but has the disadvantage that shadowed
 +
areas look flat.</p>
 +
 +
<p>
 +
Giving high <code>ambient</code> to an object effectively gives it an intrinsic glow, however, if the intent is
 +
to actually have it glowing (as opposed to simulating background light), the <code>emission</code> keyword
 +
should be used instead. The difference is that actual glowing objects light up their surroundings in
 +
<!--<linkto "radiosity">radiosity</linkto>--->[[Documentation:Tutorial_Section_3.7#Radiosity|radiosity]] scenes.</p>
 +
 +
<p>The <code>ambient</code> keyword controls the amount of ambient light used for this object. As the ambient light might
 +
be tinted, this is actually a color value, however, a single float value of, e.g., <code>0.3</code>, gets promoted to the full color vector <code>&lt;0.3,0.3,0.3,0.3,0.3&gt;</code>, which is acceptable because only the red, green and blue parts are used.</p>
 +
 +
<p>The default value is 0.1 which gives very little ambient light. As with light sources, physically meaningful values are greater
 +
than 0, but negative values actually work too, and the value may be abitrarily high to simulate bright light. Ambient light affects both shadowed and non-shadowed areas, so if you turn up the <code>ambient</code> value, you may want to turn down the <code>diffuse</code> and <code>reflection</code> values.</p>
 +
 +
<p class="Note"><strong>Note:</strong> Without radiosity, ambient light does not account for the color of surrounding objects. If you walk into a room that has red walls, floor and ceiling then your white clothing will look pink from the reflected light. POV-Ray's ambient shortcut does not account for this.</p>
 +
 +
<p>You can set the ambient for each object separately in its finish statement, for example</p>
 +
<pre>
 +
finish { ambient rgb &lt;0.3,0.1,0.1&gt; } //a pink ambient
 +
</pre>
 +
<p>You may also specify the overall ambient light level used when calculating the ambient lighting of an object
 +
using the global <code>ambient_light</code> setting. The total light is given by <em>Ambient = Finish_Ambient * Global_Ambient_Light_Source</em>. See the section <!--<linkto "ambient_light">Ambient Light</linkto>--->
 +
[[Documentation:Reference Section 3.1#Ambient_Light|Ambient Light]] for details.</p>
 +
 +
<p class="Note"><strong>Note:</strong> Specular reflected indirect illumination such as the flashlight shining in a mirror is not modelled by either ambient light or radiosity. For this, you need
 +
<!--<linkto "radiosity">radiosity</linkto>--->[[Documentation:Reference_Section_6.1#Photons|photons]].</p>
 +
 +
[[User:Froesccn|Froesccn]] 12:48, 8 October 2011 (UTC)

Revision as of 12:48, 8 October 2011

About Subsurface Light Transport, the following paper has sample values to use as reference for a few material:

http://graphics.stanford.edu/papers/bssrdf/bssrdf.pdf

--Maurice 13:28, 7 July 2010 (UTC)

  • added link to the documentation --jholsenback 14:47, 7 July 2010 (UTC)


Suggested change to ambient section below. Please check the links as I'm not sure what the commented linkto tags actually do.

Ambient

The light you see in dark shadowed areas comes from diffuse reflection off of other objects. This light cannot be modeled directly using ray-tracing, however, the radiosity feature can do a realistic approximation at the cost of higher render times. For most scenes, especially in-door scenes, this is will greatly improve the end result.

The classic way to simulate ambient lighting in shadowed areas is to assume that light is scattered everywhere in the room equally, so the effect can simply be calculated by adding a small amount of light to each texture, whether or not a light is actually shining on that texture. This renders very fast, but has the disadvantage that shadowed areas look flat.

Giving high ambient to an object effectively gives it an intrinsic glow, however, if the intent is to actually have it glowing (as opposed to simulating background light), the emission keyword should be used instead. The difference is that actual glowing objects light up their surroundings in radiosity scenes.

The ambient keyword controls the amount of ambient light used for this object. As the ambient light might be tinted, this is actually a color value, however, a single float value of, e.g., 0.3, gets promoted to the full color vector <0.3,0.3,0.3,0.3,0.3>, which is acceptable because only the red, green and blue parts are used.

The default value is 0.1 which gives very little ambient light. As with light sources, physically meaningful values are greater than 0, but negative values actually work too, and the value may be abitrarily high to simulate bright light. Ambient light affects both shadowed and non-shadowed areas, so if you turn up the ambient value, you may want to turn down the diffuse and reflection values.

Note: Without radiosity, ambient light does not account for the color of surrounding objects. If you walk into a room that has red walls, floor and ceiling then your white clothing will look pink from the reflected light. POV-Ray's ambient shortcut does not account for this.

You can set the ambient for each object separately in its finish statement, for example

finish { ambient rgb <0.3,0.1,0.1> } //a pink ambient

You may also specify the overall ambient light level used when calculating the ambient lighting of an object using the global ambient_light setting. The total light is given by Ambient = Finish_Ambient * Global_Ambient_Light_Source. See the section Ambient Light for details.

Note: Specular reflected indirect illumination such as the flashlight shining in a mirror is not modelled by either ambient light or radiosity. For this, you need photons.

Froesccn 12:48, 8 October 2011 (UTC)