This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing TextureMatrix
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The texture matrix object allows you to define how a texture will appear in an material. It can be used to manipulate still (fixed) textures as well as animated ones. | |
− | == Code == | + | ==Code== |
{| | {| | ||
| | | | ||
− | + | textureMatrix | |
− | + | name example_texmat | |
− | + | scale 0.0 0.0 1.0 1.0 | |
− | + | spin 0.0 | |
− | + | shift 0.0 0.0 | |
− | + | center 0.5 0.5 | |
− | + | fixedscale 0.0 0.0 | |
− | + | fixedspin 0.0 | |
− | + | fixedshift 0.0 0.0 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
end | end | ||
|} | |} | ||
+ | Texture Matrix must be used in conjunction with the [[Material]] object using texmat. | ||
+ | valid parameters for a Material are: | ||
+ | <properties> | ||
+ | name=name for reference | ||
+ | scale=u/v freqs, u/v scales | ||
+ | spin=rotation freq | ||
+ | shift=u/v freqs | ||
+ | center=dynamic u/v center (for spin and scale) | ||
+ | fixedscale=time invariant u/v scale | ||
+ | fixedspin=time invariant rotation | ||
+ | fixedshift=time invariant u/v shift | ||
+ | </properties> | ||
− | == | + | ==Examples== |
− | + | Texture Matrix is often used to create the appearance of flowing water or lava with the "shift" argument. | |
− | + | ||
− | + | ||
− | + | ||
[[Category:Map Making]] | [[Category:Map Making]] | ||
− | [[Category: | + | [[Category:Map_Objects]] |