<?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_Talk%3AImage_Map</id>
	<title>Reference Talk:Image Map - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference_Talk%3AImage_Map"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference_Talk:Image_Map&amp;action=history"/>
	<updated>2026-04-27T14:16:55Z</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_Talk:Image_Map&amp;diff=9499&amp;oldid=prev</id>
		<title>SharkD: grammar</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference_Talk:Image_Map&amp;diff=9499&amp;oldid=prev"/>
		<updated>2018-07-24T00:47:11Z</updated>

		<summary type="html">&lt;p&gt;grammar&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 00:47, 24 July 2018&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-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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;li&amp;gt; OpenEXR will use &amp;lt;em&amp;gt;associated&amp;lt;/em&amp;gt; (ala &amp;lt;em&amp;gt;premultiplied&amp;lt;/em&amp;gt;) alpha as per specifications.&amp;lt;/li&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;li&amp;gt; OpenEXR will use &amp;lt;em&amp;gt;associated&amp;lt;/em&amp;gt; (ala &amp;lt;em&amp;gt;premultiplied&amp;lt;/em&amp;gt;) alpha as per specifications.&amp;lt;/li&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;div&gt;&amp;lt;li&amp;gt; {{New}} as of version 3.7.1, TIFF will use straight or associated alpha as per the file header (3.7.0 expected associated alpha).&amp;lt;/li&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;li&amp;gt; {{New}} as of version 3.7.1, TIFF will use straight or associated alpha as per the file header (3.7.0 expected associated alpha).&amp;lt;/li&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;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;li&amp;gt; TGA and BMP 32-bit RGBA will use straight alpha, retaining file input compatibility for now, until a final decision &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;has been &lt;/del&gt;made on these formats.&amp;lt;/li&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;li&amp;gt; TGA and BMP 32-bit RGBA will use straight alpha, retaining file input compatibility for now, until a final decision &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is &lt;/ins&gt;made on these formats.&amp;lt;/li&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;div&gt;&amp;lt;/ul&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;/ul&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;/table&gt;</summary>
		<author><name>SharkD</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference_Talk:Image_Map&amp;diff=9126&amp;oldid=prev</id>
		<title>Clipka: Created page with &quot;==Using the Alpha Channel== &lt;p&gt;Another way to specify non-filtered transmit transparency in an image map is by using the&lt;em&gt; alpha channel&lt;/em&gt;. POV-Ray will automatically use...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference_Talk:Image_Map&amp;diff=9126&amp;oldid=prev"/>
		<updated>2016-12-23T06:20:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Using the Alpha Channel== &amp;lt;p&amp;gt;Another way to specify non-filtered transmit transparency in an image map is by using the&amp;lt;em&amp;gt; alpha channel&amp;lt;/em&amp;gt;. POV-Ray will automatically use...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Using the Alpha Channel==&lt;br /&gt;
&amp;lt;p&amp;gt;Another way to specify non-filtered transmit transparency in an image map is by using the&amp;lt;em&amp;gt; alpha channel&amp;lt;/em&amp;gt;. POV-Ray will automatically use the alpha channel for transmittance when one is stored in the image. PNG file format allows you to store a&lt;br /&gt;
different transparency for each color index in the PNG file, if desired. If your paint programs support this feature of PNG you can do the transparency editing within your paint program rather than specifying transmit values for each color in the POV file. Since some image formats can also store full alpha channel (transparency) information you can generate image maps that have transparency which is not dependent on the color of a pixel but rather its location in the image.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Although POV uses &amp;lt;code&amp;gt;transmit 0.0&amp;lt;/code&amp;gt; to specify no transparency and &amp;lt;code&amp;gt; 1.0&amp;lt;/code&amp;gt; to specify full transparency, the alpha data ranges from 0 to 255 in the opposite direction. Alpha data 0 means the same as &amp;lt;code&amp;gt;transmit 1.0&amp;lt;/code&amp;gt; and alpha data 255 produces &amp;lt;code&amp;gt;transmit 0.0&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;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 version 3.7 alpha handling for image file output has changed. Effectively, the background &amp;lt;em&amp;gt;now requires&amp;lt;/em&amp;gt; a &amp;lt;code&amp;gt;filter&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;transmit&amp;lt;/code&amp;gt; value in order for alpha transparency to work properly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Previous versions of POV-Ray always expected &amp;lt;em&amp;gt;straight&amp;lt;/em&amp;gt; (aka &amp;lt;em&amp;gt;non-premultiplied&amp;lt;/em&amp;gt;) alpha for file input, this has been changed in 3.7 on a per-file-format basis as follows:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; PNG will use straight alpha as per specification.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; OpenEXR will use &amp;lt;em&amp;gt;associated&amp;lt;/em&amp;gt; (ala &amp;lt;em&amp;gt;premultiplied&amp;lt;/em&amp;gt;) alpha as per specifications.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; {{New}} as of version 3.7.1, TIFF will use straight or associated alpha as per the file header (3.7.0 expected associated alpha).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; TGA and BMP 32-bit RGBA will use straight alpha, retaining file input compatibility for now, until a final decision has been made on these formats.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Additionally the &amp;lt;code&amp;gt;premultiplied&amp;lt;/code&amp;gt; parameter may be used to specify the input image alpha handling. This boolean parameter specifies whether the file is stored in premultiplied &amp;lt;em&amp;gt;associated&amp;lt;/em&amp;gt; or non-premultiplied &amp;lt;em&amp;gt;straight&amp;lt;/em&amp;gt; alpha format, overriding the file format specific default. This keyword has no effect on files without an alpha channel. Like the &amp;lt;code&amp;gt;gamma&amp;lt;/code&amp;gt;, it &amp;lt;em&amp;gt;MUST&amp;lt;/em&amp;gt; immediately follow the filename, though the order does not matter.&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 following mechanism has some limitations with colored highlights.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;When generating non-premultiplied alpha output to a classic low-dynamic-range file format (e.g. PNG), transparency of particularly bright areas will now be reduced, in order to better preserve highlights on transparent objects.&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; When using an input image in a &amp;lt;code&amp;gt;material_map&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bump_map&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;image_pattern&amp;lt;/code&amp;gt; definition, the following conditions apply.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; For material maps, &amp;lt;em&amp;gt;no&amp;lt;/em&amp;gt; alpha premultiplication handling is done whatsoever, instead the data as stored in the file is used.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; For bump maps and image patterns, images with an alpha channel are treated as if they had a black background, unless the alpha channel itself is used.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&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 also &amp;lt;code&amp;gt;[[Reference:Background|background]]&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;[[Reference:Sky Sphere|sky_sphere]]&amp;lt;/code&amp;gt; for additional information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strike style=&amp;quot;color:red&amp;quot;&amp;gt;Activating alpha output via &amp;lt;code&amp;gt;Output_Alpha=on&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;+UA&amp;lt;/code&amp;gt;, when used with unsupported file formats generates a warning.&amp;lt;/strike&amp;gt; &amp;lt;em style=&amp;quot;color:red&amp;quot;&amp;gt;Editor's note: Does not belong here.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;{{New}} as of version 3.7.1, using &amp;lt;code&amp;gt;filter all&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;transmit all&amp;lt;/code&amp;gt; on an image file with an alpha channel is now supported properly (requires &amp;lt;code&amp;gt;#version 3.71&amp;lt;/code&amp;gt; or higher).&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Clipka</name></author>
	</entry>
</feed>