<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lbafileinfo.kaziq.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Johannes</id>
	<title>LBA File Information - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://lbafileinfo.kaziq.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Johannes"/>
	<link rel="alternate" type="text/html" href="https://lbafileinfo.kaziq.net/index.php/Special:Contributions/Johannes"/>
	<updated>2026-04-09T17:37:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://lbafileinfo.kaziq.net/index.php?title=LBA2:Island_polygons&amp;diff=2612</id>
		<title>LBA2:Island polygons</title>
		<link rel="alternate" type="text/html" href="https://lbafileinfo.kaziq.net/index.php?title=LBA2:Island_polygons&amp;diff=2612"/>
		<updated>2024-02-03T19:06:23Z</updated>

		<summary type="html">&lt;p&gt;Johannes: The other lines use inclusive interval ends, and the last part is 13 bytes long, see https://github.com/LBALab/lba2remake/blob/e142948d92045c103eba1c97554494f192783663/src/game/scenery/island/ground.ts#L87&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox format&lt;br /&gt;
| extension = LPG&lt;br /&gt;
| lba2 = true&lt;br /&gt;
| colour = FF99FF&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The file contains the definition of the ground triangles used for an island section.&lt;br /&gt;
&lt;br /&gt;
== Specification ==&lt;br /&gt;
&lt;br /&gt;
There are 64x64x2x4 bytes in the file. The grid for an island section is made of 64x64 squares.&lt;br /&gt;
&lt;br /&gt;
Each square has potentially 2 triangles. Each triangle is defined by a &#039;&#039;32 bits&#039;&#039; bitfield.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Bits 0 -&amp;gt; 3&#039;&#039; = &#039;&#039;&#039;color&#039;&#039;&#039;: Index in the game palette of the color to use for this triangle (if useColor flag is set)&lt;br /&gt;
* &#039;&#039;Bits 4 -&amp;gt; 4&#039;&#039; = &#039;&#039;&#039;unknown_1&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;Bits 5 -&amp;gt; 5&#039;&#039; = &#039;&#039;&#039;useTexture&#039;&#039;&#039;: Whether to use texturing or not for this triangle.&lt;br /&gt;
* &#039;&#039;Bits 6 -&amp;gt; 6&#039;&#039; = &#039;&#039;&#039;unknown_2&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;Bits 7 -&amp;gt; 7&#039;&#039; = &#039;&#039;&#039;useColor&#039;&#039;&#039;: Whether to use coloring or not for this triangle. (a triangle can be both textured and colored, where there are transparent texture areas)&lt;br /&gt;
* &#039;&#039;Bits 8 -&amp;gt; 11&#039;&#039; = &#039;&#039;&#039;sound&#039;&#039;&#039;: sound for this ground&lt;br /&gt;
* &#039;&#039;Bits 12 -&amp;gt; 15&#039;&#039; = &#039;&#039;&#039;liquid&#039;&#039;&#039;: Animated sea/lava squares near the shore&lt;br /&gt;
* &#039;&#039;Bits 16 -&amp;gt; 16&#039;&#039; = &#039;&#039;&#039;orientation&#039;&#039;&#039;: Direction to use for &amp;quot;cutting&amp;quot; the square into 2 triangles.&lt;br /&gt;
* &#039;&#039;Bits 17 -&amp;gt; 17&#039;&#039; = &#039;&#039;&#039;collision&#039;&#039;&#039;: Determines how the surface interacts with the character.&lt;br /&gt;
* &#039;&#039;Bits 18 -&amp;gt; 18&#039;&#039; = &#039;&#039;&#039;unknown_3&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;Bits 19 -&amp;gt; 31&#039;&#039; = &#039;&#039;&#039;uvIndex&#039;&#039;&#039;: Index of the UV entry to use for this triangle (see [[LBA2:Island texture uvs]])&lt;br /&gt;
&lt;br /&gt;
[[File:Island.jpg|500px]]       &lt;br /&gt;
&lt;br /&gt;
{{providers|[[provider::Lupin]]}}&lt;/div&gt;</summary>
		<author><name>Johannes</name></author>
	</entry>
</feed>