This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Material
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 6: | Line 6: | ||
| | | | ||
material | material | ||
− | name | + | name example_material |
texture filename | texture filename | ||
addtexture filename | addtexture filename | ||
Line 21: | Line 21: | ||
shininess 0.0 | shininess 0.0 | ||
resetmat | resetmat | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
end | end | ||
|} | |} | ||
Valid parameters for a Material are: | Valid parameters for a Material are: | ||
− | + | <properties> | |
− | + | name=name for reference | |
− | + | texture=set the texture (don't use PNG extension) | |
− | + | addtexture=add a texture (again, no PNG extension) | |
− | + | notextures=don't use textures. | |
− | + | notexcolor=don't apply the color to the texture | |
− | + | notexalpha=don't use the texture's alpha channel | |
− | + | texmat=specify a texture matrix. -1 for no texture matrix. | |
− | + | dyncol=specify a dynamic color. -1 for no dynamic color. | |
− | + | ambient=ambient color | |
− | + | diffuse=diffuse (main) color | |
− | + | color=synonym for diffuse | |
− | + | specular=specular color | |
− | + | emission=emission color | |
− | + | shininess=shiny! | |
− | + | resetmat=restore default values | |
− | + | </properties> | |
− | + | To actually apply a texture, you must use some sort of reference in an object, like so: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | To actually apply a | + | |
{| | {| | ||
| | | | ||
Line 94: | Line 48: | ||
rotation 0 | rotation 0 | ||
size 10 10 5 | size 10 10 5 | ||
− | + | matref example_material | |
− | + | ||
− | + | ||
− | + | ||
end | end | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Magic Material Names== | ==Magic Material Names== | ||
===General=== | ===General=== | ||
− | + | [[GroundMaterial]] | |
− | + | ===Skybox=== | |
− | + | [[LeftSkyboxMaterial]] | |
− | + | [[RightSkyboxMaterial]] | |
− | === | + | [[FrontSkyboxMaterial]] |
− | + | [[BackSkyboxMaterial]] | |
− | + | [[TopSkyboxMaterial]] | |
− | + | [[BottomSkyboxMaterial]] | |
− | + | ||
− | + | ||
− | + | ||
==History== | ==History== | ||
Line 126: | Line 67: | ||
==Editor Support== | ==Editor Support== | ||
− | Materials are supported in [[Blender]] with [[BZWTools]], [[pyBZEdit]], and [[Wings3D]]. Materials are NOT supported in [[BZEdit]] | + | Materials are supported in [[Blender]] with [[BZWTools]], [[pyBZEdit]], and [[Wings3D]] with the [[BZW Exporter for Wings3D]]. Materials are NOT supported in [[BZEdit]] or [[BZFed]]. |
− | + | ||
− | + | ||
− | + | ||
[[category:Map_Objects]] | [[category:Map_Objects]] | ||
[[category:Map Making]] | [[category:Map Making]] |