How to write a Material File

From Iris2

Jump to: navigation, search
(Defining the Template and Texture)
(Templates)
Line 46: Line 46:
==diffuse_template_sceneblend==
==diffuse_template_sceneblend==
-
This is for tiles without having textures. This is good for flowers blossoms or lilypads working with basefloortiles.
+
You can take that if the object should not have shadows but still is alpha transparent.
 +
 
 +
: Adavantage: sehr schöne Ränder (z.b. für Grass) This is good for flowers blossoms or lilypads working with basefloortiles. Because it has very nice frames on grasses for example.
 +
: Disadvantage: No real "Tiefensortierung". It is only apparent if you look at it and another mesh also having sceneblend.
==diffuse_template_foliage==
==diffuse_template_foliage==
For leaves, trees and plants
For leaves, trees and plants
 +
 +
 +
Material Tips:
 +
 +
* "diffuse_template_foliage"
 +
:: nehmen wenn Schatten vom Objekt geworfen werden soll, und das Objekt Alpha-Transparenz hat
 +
:: Vorteil: Objekt wirft Schatten
 +
:: Nachteil: Objekt hat nicht so schöne Ränder (geeignet für Blumen oder Bäume)
 +
* "diffuse_template_alpha"
 +
: für Objekte nehmen die Schatten werfen sollen und Alpha-Transparenz haben
 +
:: Vorteil: nicht so rechenintensiv
 +
:: Nachteil: nicht so schöne Ränder (daher für alles geeignet das transparenz hat)
 +
 +
* Tutorial für Materials => http://www.ogre3d.org/tikiwiki/Materials
=Beware=
=Beware=
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.
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.

Revision as of 12:52, 7 December 2011

Personal tools