<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3AMedia_Types</id>
	<title>Reference:Media Types - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3AMedia_Types"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Media_Types&amp;action=history"/>
	<updated>2026-04-04T10:46:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Media_Types&amp;diff=9052&amp;oldid=prev</id>
		<title>Jholsenback: removed lead-in heading to correct double header in build</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Media_Types&amp;diff=9052&amp;oldid=prev"/>
		<updated>2016-12-17T17:37:21Z</updated>

		<summary type="html">&lt;p&gt;removed lead-in heading to correct double header in build&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:37, 17 December 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Media Types==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#indexentry:media, types}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#indexentry:media, types}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;There are three types of particle interaction in &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt;: absorbing, emitting, and scattering. All three activities may occur in a single media. Each of these three specifications requires a color. Only the red, green, and blue components of the color are used. The filter and transmit values are ignored. For this reason it is permissible to use one float value to specify an intensity of white color. For example, the following two lines are legal and produce the same results:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;There are three types of particle interaction in &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt;: absorbing, emitting, and scattering. All three activities may occur in a single media. Each of these three specifications requires a color. Only the red, green, and blue components of the color are used. The filter and transmit values are ignored. For this reason it is permissible to use one float value to specify an intensity of white color. For example, the following two lines are legal and produce the same results:&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Media_Types&amp;diff=9038&amp;oldid=prev</id>
		<title>Jholsenback: initial creation</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Media_Types&amp;diff=9038&amp;oldid=prev"/>
		<updated>2016-12-17T15:58:47Z</updated>

		<summary type="html">&lt;p&gt;initial creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Media Types==&lt;br /&gt;
{{#indexentry:media, types}}&lt;br /&gt;
&amp;lt;p&amp;gt;There are three types of particle interaction in &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt;: absorbing, emitting, and scattering. All three activities may occur in a single media. Each of these three specifications requires a color. Only the red, green, and blue components of the color are used. The filter and transmit values are ignored. For this reason it is permissible to use one float value to specify an intensity of white color. For example, the following two lines are legal and produce the same results:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emission 0.75&lt;br /&gt;
emission rgb &amp;amp;lt;0.75,0.75,0.75&amp;amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Absorption===&lt;br /&gt;
{{#indexentry:absorption, media}}&lt;br /&gt;
{{#indexentry:keyword, absorption}} &lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt; keyword specifies a color of light which is absorbed when looking through the media. For example, &amp;lt;code&amp;gt;absorption rgb&amp;amp;lt;0,1,0&amp;amp;gt;&amp;lt;/code&amp;gt; blocks the green light but permits red and blue to get through. Therefore a white object behind the media will appear magenta. The default value is &amp;lt;code&amp;gt;rgb&amp;amp;lt;0,0,0&amp;amp;gt;&amp;lt;/code&amp;gt; which means no light is absorbed, meaning all light passes through normally.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Emission===&lt;br /&gt;
{{#indexentry:emission, media}}&lt;br /&gt;
{{#indexentry:keyword, emission}}&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;emission&amp;lt;/code&amp;gt; keyword specifies the color of the light emitted from the particles. Particles which emit light are visible without requiring additional illumination. However, they will only illuminate other objects if radiosity is used with media on.  This is similar to an object with high &amp;lt;code&amp;gt;ambient&amp;lt;/code&amp;gt; values. The default value is &amp;lt;code&amp;gt;rgb&amp;amp;lt;0,0,0&amp;amp;gt;&amp;lt;/code&amp;gt; which means no light is emitted.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Scattering===&lt;br /&gt;
{{#indexentry:scattering, media}}&lt;br /&gt;
{{#indexentry:keyword, scattering}}&lt;br /&gt;
&amp;lt;p&amp;gt;The syntax of a &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; statement is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SCATTERING:&lt;br /&gt;
  scattering { &lt;br /&gt;
    Type, COLOR [ eccentricity Value ] [ extinction Value ] &lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The first float value specifies the type of scattering. This is followed by the color of the scattered light. The default value if no &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; statement is given is &amp;lt;code&amp;gt;rgb &amp;amp;lt;0,0,0&amp;amp;gt;&amp;lt;/code&amp;gt; which means no scattering occurs.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:extinction, media}}&lt;br /&gt;
{{#indexentry:keyword, extinction}}&lt;br /&gt;
&amp;lt;p&amp;gt;The scattering effect is only visible when light is shining on the media from a light source. This is similar to &amp;lt;code&amp;gt;diffuse&amp;lt;/code&amp;gt; reflection off of an object. In addition to reflecting light, scattering media also absorbs light like an &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt; media. The balance between how much absorption occurs for a given amount of scattering is controlled by the optional &amp;lt;code&amp;gt;extinction&amp;lt;/code&amp;gt; keyword and a single float value. The default value of 1.0 gives an extinction effect that matches the scattering. Values such as &amp;lt;code&amp;gt;extinction 0.25&amp;lt;/code&amp;gt; give 25% the normal amount. Using &amp;lt;code&amp;gt;extinction 0.0&amp;lt;/code&amp;gt; turns it off completely. Any value other than the 1.0 default is contrary to the real physical model but decreasing extinction can give you more artistic flexibility.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The integer value &amp;lt;em&amp;gt;&amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt;&amp;lt;/em&amp;gt; specifies one of five different scattering phase functions representing the different models: isotropic, Mie (haze and murky atmosphere), Rayleigh, and Henyey-Greenstein.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Type 1, &amp;lt;em&amp;gt;isotropic scattering&amp;lt;/em&amp;gt; is the simplest form of scattering because it is independent of direction. The amount of light scattered by particles in the atmosphere does not depend on the angle between the viewing direction and the incoming light.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Types 2 and 3 are &amp;lt;em&amp;gt;Mie haze&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;Mie murky&amp;lt;/em&amp;gt; scattering which are used for relatively small particles such as minuscule water droplets of fog, cloud particles, and particles responsible for the polluted sky. In this model the scattering is extremely directional in the forward direction, i.e. the amount of scattered light is largest when the incident light is anti-parallel to the viewing direction (the light goes directly to the viewer). It is smallest when the incident light is parallel to the viewing direction. The haze and murky atmosphere models differ in their scattering characteristics. The murky model is much more directional than the haze model.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;centered&amp;quot; width=&amp;quot;660px&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[Image:RefImgMiehaze.gif|center|640px&amp;lt;!--center---&amp;gt;]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;caption&amp;quot;&amp;gt;The Mie haze scattering function&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;centered&amp;quot; width=&amp;quot;660px&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[Image:RefImgMiemurky.gif|center|640px&amp;lt;!--center---&amp;gt;]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;caption&amp;quot;&amp;gt;The Mie murky scattering function&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Type 4 &amp;lt;em&amp;gt;Rayleigh scattering&amp;lt;/em&amp;gt; models the scattering for extremely small particles such as molecules of the air. The amount of scattered light depends on the incident light angle. It is largest when the incident light is parallel or anti-parallel to the viewing direction and smallest when the incident light is perpendicular to the viewing direction. You should note that the Rayleigh model used in POV-Ray does not take the dependency of scattering on the wavelength into account.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;centered&amp;quot; width=&amp;quot;660px&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[Image:RefImgRaylscat.gif|center|640px&amp;lt;!--center---&amp;gt;]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;caption&amp;quot;&amp;gt;The Rayleigh scattering function&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#indexentry:eccentricity, media}}&lt;br /&gt;
{{#indexentry:keyword, eccentricity}} &lt;br /&gt;
&amp;lt;p&amp;gt;Type 5 is the &amp;lt;em&amp;gt;Henyey-Greenstein scattering&amp;lt;/em&amp;gt; model. It is based on an analytical function and can be used to model a large variety of different scattering types. The function models an ellipse with a given eccentricity e. This eccentricity is specified by the optional keyword &amp;lt;code&amp;gt;eccentricity&amp;lt;/code&amp;gt; which is only used for scattering type five. The default eccentricity value of zero defines isotropic scattering while positive values lead to scattering in the direction of the light and negative values lead to scattering in the opposite direction of the light. Larger values of e (or smaller values in the negative case) increase the directional property of the scattering.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;centered&amp;quot; width=&amp;quot;660px&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[Image:RefImgHgscatt.gif|center|640px&amp;lt;!--center---&amp;gt;]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;caption&amp;quot;&amp;gt;The Henyey-Greenstein scattering function for different eccentricity values&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; See the section on [[Reference:Light Group|Light Groups]] for additional information when using scattering media in a light group.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>