Tilefromtexture (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
 
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:WIP pages]]
{{Under construction}}
 
<span {{code}}>'''tilefromtexture''' <tilenum> { [...] }</span>
 
Used to generate an 8-bit tile from an image file.  Use the alpha channel for transparency instead of the pink color.
 
== Tokens ==
 
<span {{code}}>'''file''' <filename></span> (or '''name''')
 
Defines which texture file to use. File may be any PNG, JPG, DDS, TGA, BMP, GIF or PCX file. This instruction must be supplied.
 
<span {{code}}>'''alphacut''' <value></span>
 
Sets the level of transparency at which a pixel in the texture is considered opaque. Pixels with more transparency than the cut-off are not drawn to the screen when rendered. The default setting is 0.32, which is just below the 33% transparency level of Build. If your texture has areas that are more transparent than the default, you can lower the cut-off level to preserve that detail.
 
<span {{code}}>'''xoffset''' <value></span> (or '''xoff''')<br />
<span {{code}}>'''yoffset''' <value></span> (or '''yoff''')
 
Set the offsets of the tile.
 
<span {{code}}>'''texhitscan'''</span>
 
Set [[texture hitscan]] for the tile.
 
<span {{code}}>'''nofullbright'''</span>
 
The texture will be converted to the game palette without fullbright colors.
 
<span {{code}}>'''texture'''</span>
 
Creates a true-color version of this tile, allowing it to bypass palette limitations in polymost and polymer.
 
<span {{code}}>'''truenpot'''</span>
 
Allows this tile to use true non-power-of-two texture support. Prevents weird texture panning and repeating behavior when using a texture that has a non-power-of-two Y dimension.
 
<span {{code}}>'''ifcrc''' <value></span>
 
DESCRIPTION
 
<span {{code}}>'''ifmatch''' { [...] }</span>
 
DESCRIPTION
 
:: <span {{code}}>'''crc32''' <value></span>
 
:: DESCRIPTION
 
:: <span {{code}}>'''size''' <width> <height></span>
 
:: DESCRIPTION


[[Category:DEF commands]]
[[Category:DEF commands]]

Latest revision as of 15:45, 22 March 2021

This page is under construction.
Please help review and edit this page.

tilefromtexture <tilenum> { [...] }

Used to generate an 8-bit tile from an image file. Use the alpha channel for transparency instead of the pink color.

Tokens

file <filename> (or name)

Defines which texture file to use. File may be any PNG, JPG, DDS, TGA, BMP, GIF or PCX file. This instruction must be supplied.

alphacut <value>

Sets the level of transparency at which a pixel in the texture is considered opaque. Pixels with more transparency than the cut-off are not drawn to the screen when rendered. The default setting is 0.32, which is just below the 33% transparency level of Build. If your texture has areas that are more transparent than the default, you can lower the cut-off level to preserve that detail.

xoffset <value> (or xoff)
yoffset <value> (or yoff)

Set the offsets of the tile.

texhitscan

Set texture hitscan for the tile.

nofullbright

The texture will be converted to the game palette without fullbright colors.

texture

Creates a true-color version of this tile, allowing it to bypass palette limitations in polymost and polymer.

truenpot

Allows this tile to use true non-power-of-two texture support. Prevents weird texture panning and repeating behavior when using a texture that has a non-power-of-two Y dimension.

ifcrc <value>

DESCRIPTION

ifmatch { [...] }

DESCRIPTION

crc32 <value>
DESCRIPTION
size <width> <height>
DESCRIPTION