Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
trs:miscellany [2020/05/19 12:23] – [Complete Flipeffect List] zdimensiontrs:miscellany [2020/12/11 18:26] (current) – [Object Textures] typo stohrendorf
Line 33: Line 33:
 ===== Palette ===== ===== Palette =====
  
-This consists of 256 [[trs:fundamentals#tr_colour|[tr_colour]]] structs, one for each palette entry. However, the individual colour values range from 0 to 63; they must be multiplied by 4 (or bitshifted by 2 to the left) to get the correct values.+This consists of 256 [[trs:fundamentals#tr_colour|[tr_colour]]] structs, one for each palette entry. However, the individual colour values range from 0 to 63; they must be multiplied by 4 (or bitshifted by 2 to the left) to get the correct values. Palette is used for all 8-bit colour, such as 8-bit textures.
  
-This used for all 8-bit colour, such as 8-bit textures.+{{:icons:tr1.png?nolink|TR1 only}} First entry in palette is treated as //transparent colour// used for textures with alpha testing. In later games, transparent colour was replaced by so-called "magenta transparency"meaning that any pixel with red and blue values at maximum and green value at zero, is treated as completely transparent.
  
 ===== Object Textures ===== ===== Object Textures =====
  
-An object texture (or //texture details// in TRLE terms) keeps detailed information about each texture independently used in the game. While it’s not a texture image itself (these are kept inside //texture atlases//), it’s rather a reference to a particular texture in an atlas atlas, kept with all other necessary information to display this texture.+An object texture (or //texture details// in TRLE terms) keeps detailed information about each texture independently used in the game. While it’s not a texture image itself (these are kept inside //texture atlases//), it’s rather a reference to a particular texture in an atlas, kept with all other necessary information to display this texture. 
  
 ==== Object Texture Vertex Structure ==== ==== Object Texture Vertex Structure ====
Line 74: Line 75:
  
   * //Bits 0..14// specify the //texture atlas// to use. On PC, the value should be between 0 and 63 (inclusive).   * //Bits 0..14// specify the //texture atlas// to use. On PC, the value should be between 0 and 63 (inclusive).
-  * //Bit 15//: {{:icons:tr3.png?nolink|TR3 only}}{{:icons:tr4.png?nolink|TR4 only}}{{:icons:tr5.png?nolink|TR5 only}} if set, it indicates that the texture is used on a triangle face.+  * //Bit 15//: {{:icons:tr4.png?nolink|TR4 only}}{{:icons:tr5.png?nolink|TR5 only}} if set, it indicates that the texture is used on a triangle face.
  
 ''%%Attribute%%'' specifies transparency mode (i.e. //blending mode//) used for face with this texture applied. There are several ones available: ''%%Attribute%%'' specifies transparency mode (i.e. //blending mode//) used for face with this texture applied. There are several ones available:
trs/miscellany.1589890992.txt.gz · Last modified: 2020/05/19 12:23 by zdimension
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0