<?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%3ADensity</id>
	<title>Reference:Density - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ADensity"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Density&amp;action=history"/>
	<updated>2026-04-04T06:33:19Z</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:Density&amp;diff=9254&amp;oldid=prev</id>
		<title>Jholsenback: version changes</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Density&amp;diff=9254&amp;oldid=prev"/>
		<updated>2017-06-30T08:58:20Z</updated>

		<summary type="html">&lt;p&gt;version changes&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 08:58, 30 June 2017&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-l78&quot; &gt;Line 78:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 78:&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 class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; The &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt; brackets are part of the actual &amp;lt;em&amp;gt;DENSITY_MAP_ENTRY&amp;lt;/em&amp;gt;. They are not notational symbols denoting optional parts. The brackets surround each entry in the density map.&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 class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; The &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt; brackets are part of the actual &amp;lt;em&amp;gt;DENSITY_MAP_ENTRY&amp;lt;/em&amp;gt;. They are not notational symbols denoting optional parts. The brackets surround each entry in the density map.&amp;lt;/p&amp;gt;&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;/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;/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;&amp;lt;p&amp;gt;In &amp;lt;em&amp;gt;previous&amp;lt;/em&amp;gt; versions there &amp;lt;em&amp;gt;had&amp;lt;/em&amp;gt; to be from 2 to 256 entries in the map. A {{Change}} in version 3.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7.1 &lt;/del&gt;has removed the upper restriction.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;In &amp;lt;em&amp;gt;previous&amp;lt;/em&amp;gt; versions there &amp;lt;em&amp;gt;had&amp;lt;/em&amp;gt; to be from 2 to 256 entries in the map. A {{Change}} in version 3.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;8 &lt;/ins&gt;has removed the upper restriction.&amp;lt;/p&amp;gt;&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;/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;/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;Density maps may be nested to any level of complexity you desire. The densities in a map may have color maps or density maps or any type of density you want.&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;Density maps may be nested to any level of complexity you desire. The densities in a map may have color maps or density maps or any type of density you want.&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:Density&amp;diff=9070&amp;oldid=prev</id>
		<title>Jholsenback: added 256 upper limit change</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Density&amp;diff=9070&amp;oldid=prev"/>
		<updated>2016-12-18T15:32:23Z</updated>

		<summary type="html">&lt;p&gt;added 256 upper limit change&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 15:32, 18 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-l78&quot; &gt;Line 78:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 78:&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 class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; The &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt; brackets are part of the actual &amp;lt;em&amp;gt;DENSITY_MAP_ENTRY&amp;lt;/em&amp;gt;. They are not notational symbols denoting optional parts. The brackets surround each entry in the density map.&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 class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; The &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt; brackets are part of the actual &amp;lt;em&amp;gt;DENSITY_MAP_ENTRY&amp;lt;/em&amp;gt;. They are not notational symbols denoting optional parts. The brackets surround each entry in the density map.&amp;lt;/p&amp;gt;&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;/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;/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;&amp;lt;p&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;There may &lt;/del&gt;be from 2 to 256 entries in the map.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In &amp;lt;em&amp;gt;previous&amp;lt;/em&amp;gt; versions there &amp;lt;em&amp;gt;had&amp;lt;/em&amp;gt; to &lt;/ins&gt;be from 2 to 256 entries in the map&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. A {{Change}} in version 3.7.1 has removed the upper restriction&lt;/ins&gt;.&amp;lt;/p&amp;gt;&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;/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;/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;Density maps may be nested to any level of complexity you desire. The densities in a map may have color maps or density maps or any type of density you want.&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;Density maps may be nested to any level of complexity you desire. The densities in a map may have color maps or density maps or any type of density you want.&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:Density&amp;diff=9054&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:Density&amp;diff=9054&amp;oldid=prev"/>
		<updated>2016-12-17T17:39:00Z</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:39, 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;==Density==&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:density, media}}&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:density, media}}&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;{{#indexentry:keyword, density}}&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:keyword, density}}&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:Density&amp;diff=9050&amp;oldid=prev</id>
		<title>Jholsenback: link repair after build error</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Density&amp;diff=9050&amp;oldid=prev"/>
		<updated>2016-12-17T17:07:07Z</updated>

		<summary type="html">&lt;p&gt;link repair after build error&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:07, 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-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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:density, media}}&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:density, media}}&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;{{#indexentry:keyword, density}}&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:keyword, density}}&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;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;&amp;lt;p&amp;gt;Particles of media are normally distributed in constant density throughout the media. However, the &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement allows you to vary the density across space using any of POV-Ray's pattern functions such as those used in textures. If no &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement is given then the density remains a constant value of 1.0 throughout the media. More than one &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; may be specified per &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; statement. See [[Reference:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Media&lt;/del&gt;#Multiple Density vs. Multiple Media|Multiple Density vs. Multiple Media]].&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;Particles of media are normally distributed in constant density throughout the media. However, the &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement allows you to vary the density across space using any of POV-Ray's pattern functions such as those used in textures. If no &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement is given then the density remains a constant value of 1.0 throughout the media. More than one &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; may be specified per &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; statement. See [[Reference:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Density&lt;/ins&gt;#Multiple Density vs. Multiple Media|Multiple Density vs. Multiple Media]].&amp;lt;/p&amp;gt;&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;/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;/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;The syntax for &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; is:&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;The syntax for &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; is:&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:Density&amp;diff=9040&amp;oldid=prev</id>
		<title>Jholsenback: initial creation</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Density&amp;diff=9040&amp;oldid=prev"/>
		<updated>2016-12-17T16:02:44Z</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;==Density==&lt;br /&gt;
{{#indexentry:density, media}}&lt;br /&gt;
{{#indexentry:keyword, density}}&lt;br /&gt;
&amp;lt;p&amp;gt;Particles of media are normally distributed in constant density throughout the media. However, the &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement allows you to vary the density across space using any of POV-Ray's pattern functions such as those used in textures. If no &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement is given then the density remains a constant value of 1.0 throughout the media. More than one &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; may be specified per &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; statement. See [[Reference:Media#Multiple Density vs. Multiple Media|Multiple Density vs. Multiple Media]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The syntax for &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DENSITY:&lt;br /&gt;
  density {&lt;br /&gt;
    [DENSITY_IDENTIFIER]&lt;br /&gt;
    [DENSITY_TYPE]&lt;br /&gt;
    [DENSITY_MODIFIER...]&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
DENSITY_TYPE:&lt;br /&gt;
  PATTERN_TYPE | COLOR &lt;br /&gt;
  DENSITY_MODIFIER:&lt;br /&gt;
  PATTERN_MODIFIER | DENSITY_LIST | color_map { COLOR_MAP_BODY } |&lt;br /&gt;
  colour_map { COLOR_MAP_BODY } | density_map { DENSITY_MAP_BODY }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement may begin with an optional density identifier. All subsequent values modify the defaults or the values in the identifier. The next item is a pattern type. This is any one of POV-Ray's pattern functions such as &amp;lt;code&amp;gt;[[Reference:Bozo Pattern|:bozo|bozo]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Reference:Wood Pattern|:wood|wood]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Reference:Gradient Pattern|:gradient|gradient]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Reference:Waves Pattern|:waves|waves]]&amp;lt;/code&amp;gt;, etc. Of particular usefulness are the &amp;lt;code&amp;gt;[[Reference:Spherical Pattern|:spherical|spherical]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Reference:Planar Pattern|:planar|planar]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Reference:Cylindrical Pattern|:cylindrical|cylindrical]]&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;[[Reference:Boxed Pattern|:boxed|boxed]]&amp;lt;/code&amp;gt; patterns which were previously available only for use with our discontinued &amp;lt;code&amp;gt;halo&amp;lt;/code&amp;gt; feature. All patterns return a value from 0.0 to 1.0. This value is interpreted as the density of the media at that particular point. See the section [[Reference:Pattern|:Pattern|Pattern]] for details on particular pattern types. Although a solid &amp;lt;em&amp;gt;COLOR&amp;lt;/em&amp;gt; pattern is legal, in general it is used only when the &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement is inside a &amp;lt;code&amp;gt;density_map&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===General Density Modifiers===&lt;br /&gt;
&amp;lt;p&amp;gt;A &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; statement may be modified by any of the general pattern modifiers such as transformations, &amp;lt;code&amp;gt;turbulence&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;warp&amp;lt;/code&amp;gt;. See [[Reference:Pattern Modifiers|Pattern Modifiers]] for details. In addition, there are several density-specific modifiers which can be used.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Density with color_map===&lt;br /&gt;
{{#indexentry:color_map, density}}&lt;br /&gt;
&amp;lt;p&amp;gt;Typically, a &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; uses just one constant color throughout. Even if you vary the density, it is usually just one color which is specified by the &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;emission&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; keywords. However, when using &amp;lt;code&amp;gt;emission&amp;lt;/code&amp;gt; to simulate fire or explosions, the center of the flame (high density area) is typically brighter and white or yellow. The outer edge of the flame (less density) fades to orange, red, or in some cases deep blue. To model the density-dependent change in color which is visible, you may specify a &amp;lt;code&amp;gt;color_map&amp;lt;/code&amp;gt;. The pattern function returns a value from 0.0 to 1.0 and the value is passed to the color map to compute what color or blend of colors is used. See [[Reference:Color Map|Color Maps]] for details on how pattern values work with &amp;lt;code&amp;gt;color_map&amp;lt;/code&amp;gt;. This resulting color is multiplied by the &amp;lt;code&amp;gt;absorption&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;emission&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;scattering&amp;lt;/code&amp;gt; color. Currently there is no way to specify different color maps for each media type within the same &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; statement.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Consider this example:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
media {&lt;br /&gt;
  emission 0.75&lt;br /&gt;
  scattering {1, 0.5}&lt;br /&gt;
  density {&lt;br /&gt;
    spherical&lt;br /&gt;
    color_map {&lt;br /&gt;
      [0.0 rgb &amp;amp;lt;0,0,0.5&amp;amp;gt;]&lt;br /&gt;
      [0.5 rgb &amp;amp;lt;0.8, 0.8, 0.4&amp;amp;gt;]&lt;br /&gt;
      [1.0 rgb &amp;amp;lt;1,1,1&amp;amp;gt;]&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The color map ranges from white at density 1.0 to bright yellow at density 0.5 to deep blue at density 0. Assume we sample a point at density 0.5. The emission is 0.75*&amp;amp;lt;0.8,0.8,0.4&amp;amp;gt; or &amp;amp;lt;0.6,0.6,0.3&amp;amp;gt;. Similarly the scattering color is 0.5*&amp;amp;lt;0.8,0.8,0.4&amp;amp;gt; or &amp;amp;lt;0.4,0.4,0.2&amp;amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;For block pattern types &amp;lt;code&amp;gt;checker&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hexagon&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;brick&amp;lt;/code&amp;gt; you may specify a color list such as this:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
density {&lt;br /&gt;
 checker &lt;br /&gt;
   density {rgb&amp;amp;lt;1,0,0&amp;amp;gt;}&lt;br /&gt;
   density {rgb&amp;amp;lt;0,0,0&amp;amp;gt;}&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;See [[Reference:Pigment#Color List Pigments|Color List Pigments]] which describes how &amp;lt;code&amp;gt;pigment&amp;lt;/code&amp;gt; uses a color list. The same principles apply when using them with &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Density Maps and Density Lists===&lt;br /&gt;
{{#indexentry:keyword, density_map}}&lt;br /&gt;
&amp;lt;p&amp;gt;In addition to specifying blended colors with a color map you may create a blend of densities using a &amp;lt;code&amp;gt;density_map&amp;lt;/code&amp;gt;. The syntax for a density map is identical to a color map except you specify a density in each map entry (and not a color).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The syntax for &amp;lt;code&amp;gt;density_map&amp;lt;/code&amp;gt; is as follows:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DENSITY_MAP:&lt;br /&gt;
  density_map { DENSITY_MAP_BODY }&lt;br /&gt;
DENSITY_MAP_BODY:&lt;br /&gt;
  DENSITY_MAP_IDENTIFIER | DENSITY_MAP_ENTRY...&lt;br /&gt;
DENSITY_MAP_ENTRY:&lt;br /&gt;
  [ Value DENSITY_BODY ]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Where &amp;lt;em&amp;gt;&amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt;&amp;lt;/em&amp;gt; is a float value between 0.0 and 1.0 inclusive and each &amp;lt;em&amp;gt;DENSITY_BODY&amp;lt;/em&amp;gt; is anything which can be inside a &amp;lt;code&amp;gt;density{...}&amp;lt;/code&amp;gt; statement. The &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; keyword and &amp;lt;code&amp;gt;{}&amp;lt;/code&amp;gt; braces need not be specified.&amp;lt;/p&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; The &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt; brackets are part of the actual &amp;lt;em&amp;gt;DENSITY_MAP_ENTRY&amp;lt;/em&amp;gt;. They are not notational symbols denoting optional parts. The brackets surround each entry in the density map.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;There may be from 2 to 256 entries in the map.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Density maps may be nested to any level of complexity you desire. The densities in a map may have color maps or density maps or any type of density you want.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Density lists may also be used with block patterns such as &amp;lt;code&amp;gt;checker&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hexagon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;brick&amp;lt;/code&amp;gt;, as well as the object pattern &amp;lt;code&amp;gt;object&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;For example:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
density {&lt;br /&gt;
  checker&lt;br /&gt;
    density { Flame scale .8 }&lt;br /&gt;
    density { Fire scale .5 }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&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; In the case of block patterns the &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; wrapping is required around the density information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A density map is also used with the &amp;lt;code&amp;gt;average&amp;lt;/code&amp;gt; density type. See [[Reference:Average Pattern|:Average|Average]] for details.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You may declare and use density map identifiers but the only way to declare a density block pattern list is to declare a density identifier for the entire density.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiple Density vs. Multiple Media===&lt;br /&gt;
&amp;lt;p&amp;gt;It is possible to have more than one &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt; specified per object and it is legal to have more than one &amp;lt;code&amp;gt;density&amp;lt;/code&amp;gt; per &amp;lt;code&amp;gt;media&amp;lt;/code&amp;gt;. The effects are quite different.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Consider this example:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
object {&lt;br /&gt;
  MyObject&lt;br /&gt;
  pigment { rgbf 1 }&lt;br /&gt;
  interior {&lt;br /&gt;
    media {&lt;br /&gt;
      density { Some_Density }&lt;br /&gt;
      density { Another_Density }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;As the media is sampled, calculations are performed for each density pattern at each sample point. The resulting samples are multiplied together. Suppose one density returned &amp;lt;code&amp;gt;rgb&amp;amp;lt;.8,.8,.4&amp;amp;gt;&amp;lt;/code&amp;gt; and the other returned &amp;lt;code&amp;gt;rgb&amp;amp;lt;.25,.25,0&amp;amp;gt;&amp;lt;/code&amp;gt;. The resulting color is &amp;lt;code&amp;gt;rgb&amp;amp;lt;.2,.2,0&amp;amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;/p&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; In areas where one density returns zero, it will wipe out the other density. The end result is that only density areas which overlap will be visible. This is similar to a CSG intersection operation. Now consider:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
object { &lt;br /&gt;
  MyObject&lt;br /&gt;
  pigment { rgbf 1 }&lt;br /&gt;
  interior {&lt;br /&gt;
    media {&lt;br /&gt;
      density { Some_Density }&lt;br /&gt;
      }&lt;br /&gt;
    media {&lt;br /&gt;
      density { Another_Density }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;In this case each media is computed independently. The resulting colors are added together. Suppose one density and media returned &amp;lt;code&amp;gt;rgb&amp;amp;lt;.8,.8,.4&amp;amp;gt;&amp;lt;/code&amp;gt; and the other returned &amp;lt;code&amp;gt;rgb&amp;amp;lt;.25,.25,0&amp;amp;gt;&amp;lt;/code&amp;gt;. The resulting color is &amp;lt;code&amp;gt;rgb&amp;amp;lt;1.05,1.05,.4&amp;amp;gt;&amp;lt;/code&amp;gt;. The end result is that density areas which overlap will be especially bright and all areas will be visible. This is similar to a [[Reference:Constructive Solid Geometry|:CSG|CSG]] [[Reference:Union|:union|union]] operation. See the sample scene &amp;lt;code&amp;gt;~scenes\interior\media\media4.pov&amp;lt;/code&amp;gt; for an example which illustrates this.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>