User:Fox/wip: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with '=== texture === '''texture''' '''''<tilenum> { ... }''''' Defines a Hightile texture to replace an ART-file tile. '''''<tilenum>''''' may be a number, or a defined label. The ...'
 
Fox (talk | contribs)
No edit summary
Line 3: Line 3:
'''texture''' '''''<tilenum> { ... }'''''
'''texture''' '''''<tilenum> { ... }'''''


Defines a Hightile texture to replace an ART-file tile. '''''<tilenum>''''' may be a number, or a defined label.
:Defines a Hightile texture to replace an ART-file tile. '''''<tilenum>''''' may be a number, or a defined label.


The brace-enclosed block may contain these instructions:
:The brace-enclosed block may contain these instructions:


==== pal ====
:'''pal''' '''''<palnum> { ... }'''''


'''pal''' '''''<palnum> { ... }'''''
:Replaces the palette '''''<palnum>'''''. If a palette has no pal definition palette 0 definition will be used. Tint will not be used on palettes defined with this instruction.


Replaces the palette '''''<palnum>'''''. If a palette has no pal definition palette 0 definition will be used. Tint will not be used on palettes defined with this instruction.
:The brace-enclosed block may contain these instructions:


The brace-enclosed block may contain these instructions:
::'''file''' '''''<filename>'''''<br>
::'''name''' '''''<filename>'''''


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


'''file''' '''''<filename>'''''<br>
::'''alphacut''' '''''<cutoff-value>'''''
'''name''' '''''<filename>'''''


Defines which texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.
::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.


===== alphacut =====
::'''nocompress'''


'''alphacut''' '''''<cutoff-value>'''''
::Prevents the texture from being compressed using S3TC if texture compression is enabled.


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.
::'''nodownsize'''


===== nocompress =====
::Prevents the texture from being downsized.


'''nocompress'''
::'''xscale''' '''''<value>'''''<br>
::'''yscale''' '''''<value>'''''


Prevents the texture from being compressed using S3TC if texture compression is enabled.
::Sets the scale of the hightile texture in relation to the original texture. A '''''<value>''''' of 1.0 makes it the same size, higher makes it cover more then the original tile and smaller makes it cover a smaller area. '''xscale'''(aka '''scale''', '''detailscale''', '''intensity''') sets the horizontal scale and '''yscale''' sets the vertical scale.


===== nodownsize =====
:'''detail''' '''''{ ... }'''''


'''nodownsize'''
:Defines a [[Detail_mapping|detail texture]] for the texture. The brace-enclosed block may contain these instructions:


Prevents the texture from being downsized.
::'''file''' '''''<filename>'''''


===== scale =====
::Specifies which detail texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.


'''xscale''' '''''<value>'''''<br>
::'''scale''' '''''<value>'''''
'''yscale''' '''''<value>'''''


Sets the scale of the hightile texture in relation to the original texture. A '''''<value>''''' of 1.0 makes it the same size, higher makes it cover more then the original tile and smaller makes it cover a smaller area. '''xscale'''(aka '''scale''', '''detailscale''', '''intensity''') sets the horizontal scale and '''yscale''' sets the vertical scale.
::'''''<value>''''' is a positive floating-point value that'll determine how much your detail map should repeat on your diffuse map (if you want your detail map to repeat five times, use a 1/5 scale : 0.2).


==== detail ====
:'''glow''' '''''{ ... }'''''


'''detail''' '''''{ ... }'''''
:Defines a [[Glow_mapping|glow map]] for the texture. The brace-enclosed block may contain these instructions:


Defines a [[Detail_mapping|detail texture]] for the texture. The brace-enclosed block may contain these instructions:
:'''file''' '''''<filename>'''''


===== file =====
:Specifies which glow map file to use. This instruction must be supplied.
 
'''file''' '''''<filename>'''''
 
Specifies which detail texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.
 
===== scale =====
 
'''scale''' '''''<value>'''''
 
'''''<value>''''' is a positive floating-point value that'll determine how much your detail map should repeat on your diffuse map (if you want your detail map to repeat five times, use a 1/5 scale : 0.2).
 
==== glow ====
 
'''glow''' '''''{ ... }'''''
 
Defines a [[Glow_mapping|glow map]] for the texture. The brace-enclosed block may contain these instructions:
 
===== file =====
 
'''file''' '''''<filename>'''''
 
Specifies which glow map file to use. This instruction must be supplied.

Revision as of 20:13, 10 October 2009

texture

texture <tilenum> { ... }

Defines a Hightile texture to replace an ART-file tile. <tilenum> may be a number, or a defined label.
The brace-enclosed block may contain these instructions:
pal <palnum> { ... }
Replaces the palette <palnum>. If a palette has no pal definition palette 0 definition will be used. Tint will not be used on palettes defined with this instruction.
The brace-enclosed block may contain these instructions:
file <filename>
name <filename>
Defines which texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.
alphacut <cutoff-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.
nocompress
Prevents the texture from being compressed using S3TC if texture compression is enabled.
nodownsize
Prevents the texture from being downsized.
xscale <value>
yscale <value>
Sets the scale of the hightile texture in relation to the original texture. A <value> of 1.0 makes it the same size, higher makes it cover more then the original tile and smaller makes it cover a smaller area. xscale(aka scale, detailscale, intensity) sets the horizontal scale and yscale sets the vertical scale.
detail { ... }
Defines a detail texture for the texture. The brace-enclosed block may contain these instructions:
file <filename>
Specifies which detail texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.
scale <value>
<value> is a positive floating-point value that'll determine how much your detail map should repeat on your diffuse map (if you want your detail map to repeat five times, use a 1/5 scale : 0.2).
glow { ... }
Defines a glow map for the texture. The brace-enclosed block may contain these instructions:
file <filename>
Specifies which glow map file to use. This instruction must be supplied.