<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Mapdev%3Aparallax</id>
	<title>Mapdev:parallax - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Mapdev%3Aparallax"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Mapdev:parallax&amp;action=history"/>
	<updated>2026-04-21T06:05:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Mapdev:parallax&amp;diff=1204&amp;oldid=prev</id>
		<title>Qrow: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Mapdev:parallax&amp;diff=1204&amp;oldid=prev"/>
		<updated>2026-02-24T05:54:47Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:54, 23 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Mapdev:parallax&amp;diff=1203&amp;oldid=prev</id>
		<title>mapdevinter&gt;Gajop: /* mapinfo.lua */</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Mapdev:parallax&amp;diff=1203&amp;oldid=prev"/>
		<updated>2018-12-18T15:37:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;mapinfo.lua&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Parallax Texture =&lt;br /&gt;
modifies the diffuse, normal, and specular&lt;br /&gt;
TEXTURE COORDINATES before sampling is done&lt;br /&gt;
&lt;br /&gt;
{{FIXME}} description as to why you want to use Parallax textures.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Example&lt;br /&gt;
| {{FIXME}} needs image file || {{FIXME}} needs image file&lt;br /&gt;
|-&lt;br /&gt;
! Without Parallax Map !! With Parallax Map&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
= Specification =&lt;br /&gt;
== mapinfo.lua ==&lt;br /&gt;
The relevant sections of the [[Mapdev:mapinfo.lua|mapinfo.lua]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local mapinfo = {&lt;br /&gt;
   ...&lt;br /&gt;
   resources = {&lt;br /&gt;
      ...&lt;br /&gt;
      parallaxHeightTex = &amp;quot;parallax.png&amp;quot;,&lt;br /&gt;
      ...&lt;br /&gt;
   },&lt;br /&gt;
   ...&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Image File==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
! width=&amp;quot;15%&amp;quot; | File Location&lt;br /&gt;
| ./maps/&lt;br /&gt;
|-&lt;br /&gt;
! File Format&lt;br /&gt;
| PNG, TGA&lt;br /&gt;
|-&lt;br /&gt;
! Colour Depth&lt;br /&gt;
| 8bpp&lt;br /&gt;
|-&lt;br /&gt;
! Channels&lt;br /&gt;
| RGBA&lt;br /&gt;
|-&lt;br /&gt;
! Resolution&lt;br /&gt;
| Any, recommended powers of two, will be stretched over the terrain. Should be the same size as the [[Mapdev:specular]] image&lt;br /&gt;
|}&lt;br /&gt;
{{FIXME}} needs cleaning.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
height, scale, and bias parameters are packed&lt;br /&gt;
as follows to produce a texel offset-factor f&lt;br /&gt;
&lt;br /&gt;
h = (parallaxHeightTex.r * 65280 + parallaxHeightTex.g * 256) / 65536&lt;br /&gt;
s = (parallaxHeightTex.b)&lt;br /&gt;
b = (parallaxHeightTex.a - 0.5)&lt;br /&gt;
f = h * s + b&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Forum Discussions =&lt;br /&gt;
* [http://springrts.com/phpbb/viewtopic.php?f=13&amp;amp;t=29108 Parallax Maps?]&lt;br /&gt;
&lt;br /&gt;
[[Category:Map Dev]]&lt;/div&gt;</summary>
		<author><name>mapdevinter&gt;Gajop</name></author>
	</entry>
</feed>