TorqueX/ComponentTutorials/Editors/SortPointEditor

From TDN

Material Builder


Description

The Material Builder is responsible for bringing in images into Torque X Builder and specifying unique visual properties. All images, whether they are static sprites, background images, animations, or scrollers, must first be opened through the Material Editor.


Usage

You can add a new image into Torque X Builder in one of three ways.

• Selecting Project->Material Builder from the menu
• Clicking the Create New Material button at the top of the Create Pane
• Dragging an image file into Torque X Builder from File Explorer



Image:TX_MaterialBuilder.jpg

Additive: Additive blending adds the native color of the object to the color that is beneath it in the scene.

Enable Lighting: The Enable Lighting property specifies that the selected material should render with lighting information applied

Specularity: The Specularity properties are presented when the Enable Lighting checkbox is selected. It specifies the shininess of an image to give it the illusion of 3-dimensional depth

Refraction: The Refraction property specifies that the selected material will refract the scene behind the material. This property includes an index value ranging from zero to one.

Normal Map: Normal mapping is used to add shading details without using more polygons.

Image Mode: When the Image Mode is set to "CELL", you can specify how many columns and rows a sprite sheet contains. Torque X reads a sprite sheet from left to right and from top to bottom. If not set to "CELL", the sprite sheet is treated as one single image