LBA2:Island polygons

From LBA File Information
Revision as of 05:44, 20 July 2022 by Zink (talk | contribs)
Jump to navigation Jump to search
Island polygons
Extension

LPG

Occurence

LBA2

Colour
Programs supporting this format

(none)

References

Find entries of this type

The file contains the definition of the ground triangles used for an island section.

Specification

There are 64x64x2x4 bytes in the file. The grid for an island section is made of 64x64 squares.

Each square has potentially 2 triangles. Each triangle is defined by a 32 bits bitfield.

  • Bits 0 -> 3 = color: Index in the game palette of the color to use for this triangle (if useColor flag is set)
  • Bits 4 -> 4 = unknown_1
  • Bits 5 -> 5 = useTexture: Whether to use texturing or not for this triangle.
  • Bits 6 -> 6 = unknown_2
  • Bits 7 -> 7 = useColor: Whether to use coloring or not for this triangle. (a triangle can be both textured and colored, where there are transparent texture areas)
  • Bits 8 -> 11 = sound: sound for this ground
  • Bits 12 -> 15 = liquid: Animated sea/lava squares near the shore
  • Bits 16 -> 16 = orientation: Direction to use for "cutting" the square into 2 triangles.
  • Bits 17 -> 17 = collision: Determines how the surface interacts with the character.
  • Bits 18 -> 18 = unknown_3
  • Bits 19 -> 32 = uvIndex: Index of the UV entry to use for this triangle (see LBA2:Island texture uvs)


Information provided by: Lupin