Material 2.0 Operator

 

The Material 2.0 Operator creates a Blinn-Phong material to apply to meshes. To apply a Material 2.0 to a mesh, use the MatInput Operator. If you show the Material 2.0 Operator, a temporary cube with the material applied will appear in the View Window. Please note that Material 2.0 settings cannot be exported.

 

Inputs

 

Up to three textures as direct inputs, but you can link any named texture in the project into any material.

 

Parameters

 

General Section

 

Flags

specular(on/off): Toggles the specular.

x2 intensity(on/off): Doubles the light intensity.

specularity map(on/off): uses the Q (alpha) channel of the normal map (linked into the Material 2.0 with the parameter bump) to set specularity per texel. Negative values are treated as 0, so keep the alpha between 128 and 255 to get meaningful results.

 

Diffuse

Defines the diffuse color.

 

Specular

Defines the specular color

 

Specular power (hardness)

Controls specular edge definition.

 

Texture Section

 

Main

The main texture. Select the texture to link with the link button (selecting from the direct inputs), or with the Find an op! Dialog ([...] button), or choose from the named operators on the current operator page [..] button or simply type a name. The [->] button jumps to the linked operator in the Page Window.

 

Flags (only visible when a valid Main texture is linked):

tile/clamp: Sets texture edge behaviour.

no filter/filter/mipmap/trilin/aniso: Sets the mode for filtering the texture when it is displayed at other sizes than its native resolution. no filter: Use nearest neighbour. filter: Use bilinear filtering. mipmap: Use Mipmaps (Mipmaps are set up in the Format Operator). trilin: Use trilinear filtering. aniso: Use anisotropic filtering.

untransformed/scaled/trans1/trans2: Defines a UV transformation to use. untransformed: No transform. scaled: Uses the main > ScaleUV value to scale the texture uniformly. trans1: Uses transformation set 1. trans2: Uses transformation set 2.

 

ScaleUV (only visible when a valid Main texture is linked)

Defines the scale factor for the scaled UV transformation mode.

 

Detail 1/2

Detail textures. If you select a valid texture, Flags and a ScaleUV field analogous to those of the main texture will appear, with one additional parameter called Op.

 

Op

mul/mul2/mul4/add/addsmooth: Sets the blending mode for the detail texture. mul: Multiplies. mul2: Multiplies with doubled values (A*B*2). mul4: Multiplies with quadrupled values (A*B*4). add: Adds. addsmooth: Adds analogous to the Screen blending mode in Adobe Photoshop©.

 

Alpha map

Controls texture transparency. If you select a valid texture, Flags and a ScaleUV field analogous to those of the main texture will appear. Please note that the alpha map is internally converted to 1bit format with the threshold at 50% brightness.

.

Bump/Lighting Section

 

bump

Selects a normal map for bump mapping. For best results, use the Normals Operator configured to tangent 2D to create the normal map from a height map. If you select a valid texture, Flags and a ScaleUV field analogous to those of the main texture will appear.

 

detail bump

Selects a second normal map for bump mapping. If you select a valid texture, Flags and a ScaleUV field analogous to those of the main texture will appear.

 

envi

Selects a texture for environment mapping. If you select a valid texture, some flags will appear, including edge behaviour and filtering options analogous to the main texture, plus the following:

normal/reflection: Chooses between Environment Map (normal) and Reflection Map.

bumped/unbumped: Toggles bump for the environment map.

 

UV transform

 

Use these controls to transform the texture projection. You have two separate sets of transformation controls, trans1 and trans2. They can be assigned to any texture, alpha map or bump texture.

 

trans1 scale (X, Y, Z)

Changes the projection scale.

 

trans1 rot (local X, Y, Z)

Changes the projection rotation.

 

trans1 trans (X, Y, Z)

Changes the projection position.

 

trans2 scale (X, Y):

Changes the projection scale.

 

trans2 rot (local Z)

Changes the projection rotation.

 

trans2 trans (X, Y):

Changes the projection position.

 

Keyboard shortcut

 

m (when adding miscellaneous operators)

 

Back to the List of Operators