tutorial_02_(materials).jpg

Functions:

Materials: sce::registerMaterial()
sce::unregisterMaterial()
sce::renderStrechedPic()
sce::setMaterialTransparency()

Scripts:

spaceMaterials.mat: spaceSky
space_ship_1
space_ship_2

Topics

The focus of this tutorial is the use and configuration of materials. You should open "spaceMaterials.mat" with a simple ascii editor (like notepad) and look through the three material definitions. Three simple material effects are used: layering 2 bitmaps (=textures) (used in material: "space-sky"), scrolling and the use of blending (alpha and additional).
If you are not familiar with blending, have a look into the "Concepts and Definitions" section, main topic "Rendering" theme "Materials".





SourceForge.net Logo