Tilefromtexture (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
{{Under construction}}
{{Under construction}}


'''tilefromtexture''' <tilenum> { [...] }
<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.
Used to generate an 8-bit tile from an image file.  Use the alpha channel for transparency instead of the pink color.
Line 7: Line 7:
== Tokens ==
== Tokens ==


{| cellpadding="0" cellspacing="0" border="0"
<span {{code}}>'''file''' <filename> (or '''name''')</span>
| valign="top" | '''file''' <filename>
| width="20px" |
| valign="top" | (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.
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>
<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.
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.


{| cellpadding="0" cellspacing="0" border="0"
<span {{code}}>'''xoffset''' <value> (or '''xoff''')</span><br />
| valign="top" | '''xoffset''' <value><br />'''yoffset''' <value>
<span {{code}}>'''yoffset''' <value> (or '''yoff''')</span>
| width="20px" |
| valign="top" | (or '''xoff''')<br />(or '''yoff''')
|-
|}


Set the offsets of the tile.
Set the offsets of the tile.


'''texhitscan'''
<span {{code}}>'''texhitscan'''</span>


Set [[texture hitscan]] for the tile.
Set [[texture hitscan]] for the tile.


'''nofullbright'''
<span {{code}}>'''nofullbright'''</span>


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


'''texture'''
<span {{code}}>'''texture'''</span>


DESCRIPTION
DESCRIPTION


'''texture'''
<span {{code}}>'''texture'''</span>


DESCRIPTION
DESCRIPTION


'''ifcrc''' <value>
<span {{code}}>'''ifcrc''' <value></span>


DESCRIPTION
DESCRIPTION


'''ifmatch''' { [...] }
<span {{code}}>'''ifmatch''' { [...] }</span>


DESCRIPTION
DESCRIPTION


:: '''crc32''' <value>
:: <span {{code}}>'''crc32''' <value></span>


:: DESCRIPTION
:: DESCRIPTION


:: '''size''' <width> <height>
:: <span {{code}}>'''size''' <width> <height></span>


:: DESCRIPTION
:: DESCRIPTION


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

Revision as of 05:54, 23 February 2020

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

DESCRIPTION

texture

DESCRIPTION

ifcrc <value>

DESCRIPTION

ifmatch { [...] }

DESCRIPTION

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