View source
From Iris2
for
How to write a Material File
Jump to:
navigation
,
search
=Editing the File= ==Import the materia-templates.material== Open a file and rename it to the name of the material in your mesh file. For example basefloortile.material for the respective basefloortile.mesh. Begin the file with the following file without the slashes. The slashes are normally for comments. <code>import * from "material-templates.material"</code> This will import the templates and the artist does not have to type very much. ==Defining the Template and Texture== Then type this and replace the "diffuse_template" with your chosen template and "tex_basefloortile.png" with the texture which you want to use. <code> material basefloortile : diffuse_template { set_texture_alias ambient_tex tex_basefloortile.png set_texture_alias diffuse_tex tex_basefloortile.png } </code> =Templates= ==diffuse_template== // For normal Floortiles without transparency ==diffuse_template_alpha== // For Transparents with Shadows ==diffuse_template_sceneblend== // Everything without Shadow ==diffuse_template_foliage== // For leaves, trees and plants =Note= To test the meshes, material and texture by taking a look on it with the help of [http://www.ogre3d.org/tikiwiki/Ogre+Meshy Ogre Meshy]. You have to copy the "material-templates.material" in the same folder.
Return to
How to write a Material File
.
Views
Page
Discussion
View source
History
Personal tools
Log in
main
Main Page
Screenshots
download
Install Guide
Forum
FAQ
Macros
Credits
dev
Developer Blog
A Guide for Artists
Development
Item Model List
Iris-Testshard
Bugreports
SvnLog
API C++
API Lua
wiki
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages