Shaders and Textures
Once you have created surfaces, you will want to see them as rendered images. To make them as striking and realistic as possible, you need to apply shaders and textures to your objects. Alias uses shaders to define the appearance of your objects so they look as if they were created with real materials. Textures can also be applied to the shaders to create more sophisticated visual effects. You can even add special effects to shaders, to make them appear semi-transparent or to give them a sense of 3D relief.
The Multi-Lister
The Multi-Lister is a visual catalog where you can create, edit and assign shaders, lights and forces. The Multi-Lister has its own menus and is an important tool in the rendering process. You can limit the listed objects in the Multi-lister to display only shaders by choosing Shaders from the Multi-lister's List menu.

Shaders
Shaders preview about how a surface will appear when rendered. Color, texture and material qualities such as reflectivity, specularity and transparency are all set using shaders. Shaders can have textures assigned to them and can contain many layers of information to create a visual effect.
The Shader Editor
The various Shader parameters are set in the Shader Editor. You can call up the Shader Editor by either picking a Shader icon then choosing Edit from the Edit menu, or you can double click on the Shader icon. This window displays all shader parameters belonging to a shader and lets you set them accordingly. Here you can set surface attributes such as color, finish and opaqueness or you can add a texture map to part of the shader. You can also use Special Effects such as bump maps or translucency to further refine the final look of the shader.

Shading Models
There are four main shading models that can be applied to your shaders. Each offers different parameters that can be edited to create specific effects.

Lambert - This shading model is used primarily for matte surfaces or other unpolished surfaces.
Phong - This shading model is used primarily for glass and glossy plastic surfaces.
Blinn - This shading model is used primarily for metallic surfaces.
Lightsource - This shading model is used to simulate an object that has no shading properties. The look of this shader type is a special effect and it does not actually emit light.
Basic Shading Parameters
Within the Shader editor there are several key parameters that affect the look of a shader. In the diagram shown below you can see how some of those parameters work with a simple Phong shader:

The various parameters affect the look of the shader as follows:
Color - This sets the basic color of the shader.
Specular - This sets the color and intensity of the specular highlight.
Shinyness - This sets the size of the specular highlight.
Incandescence - This sets the color of the darkest area of the shader
Reflection - This sets whether the shader diplays its own color or reflects the environment.
Diffusion - This affects the sharpness of the reflected environment.
Texture Mapping
A texture is a shader element that is mapped onto a surface. Textures are opened as part of the shader and then positioned using either a parametric or solid mapping technique. Textures can add a "tactile" quality to your shaders, since real-world objects are not smooth. Textures are loaded into the Multi-lister using the Texture window.

Alias uses either 2D bitmap images or built-in procedurals as textures. The built-in procedurals include ramps, fractals, marbles and granites that all offer you flexibility when creating textures, since you can edit their parameters within the Shader Editor. On the other hand, bitmap images can be created and edited in an external paint program and imported into Alias for texturing. All of these texture choices can be set in the Texture Editor.
To evoke the Texture Editor, double click on the texture's icon in the Multi-lister. In the Texture Editor, you are given parameters specific to that texture type. For example, a ramp texture will offer you the opportunity to edit the ramp type, the colors that make up the ramp surface and the placement of the ramp on the surface.

Solid vs. Parametric Mapping
Alias uses two methods for mapping textures onto surfaces. These are Parametric mapping and Solid mapping.

The first type is Parametric mapping, which places a texture in the UV parameter space of a surface. This gives the effect of the texture being wrapped around the object. The above illustration shows how the gridded texture map is wrapped around the sphere and placed on each face of the cube as a separate map.
The second mapping type is Solid texture mapping, which makes your surfaces appear as if they are carved out of a solid block. Solid textures exist in XYZ coordinate space instead of UV parameter space. This allows a solid texture to affect all parts of an object and not only individual surfaces.
Solid textures are controlled by a texture placement object that helps define the location of the solid texture in 3D space and project the textures onto the surfaces. In the above illustration, you can see the Solid texture icon placed in front of the various objects.
The texture is projected towards these objects based on the orientation and placement of the Solid texture icon and the chosen projection method. Note how the checker pattern passes through the cube and the sphere as if they were one solid object.
Solid Projections
When projecting textures onto objects, there are several methods for achieving the final effect. Listed below are some of the projection options available for texturing objects. Each projection method has its own Solid projection icons that can be positioned in relation to the object.
Planar
Projects the texture by extruding it along the Z-direction of the Solid texture icon.

Spherical
Wraps the texture around the Y-axis in a spherical fashion centered on 0,0,0.

Cylindrical
Wraps the texture around the Y-axis in a tube-like fashion.

Ball
Projects the texture in a manner similar to a candy-wrapper being pulled around a lollipop. There is therefore one pinch point as opposed to the two pinch points in Spherical and Cylindrical mapping.

Cubic
Creates six copies of the texture then projects them outwards from 0, 0, 0 in a pyramidal fashion.

Triplanar
Projects the texture by extruding along the three axes defined by the Solid projection icon.

Camera - Projects image planes onto the surface based on the orientation of the camera. This method is very useful when projecting hand drawn sketches onto surfaces and is used in Lesson 33.

Convert Solid Texture
In some cases, such as CV animation, it is very important that all the textures end up as parametric maps. Alias includes a Convert Solid texture option in the Multi-lister that takes a Solid texture and turns it into a series of parametric maps that work with the UV parameter space of the various objects. You can also convert procedural textures into images using solid option.
Texture Placement
When working with parametric texture maps, you are placing the texture into the UV parameter space of that surface. By default the texture will stretch and warp using the surface patches as a frame of reference.
This means that a surface with an uneven layout of isoparametric patches will create an uneven texture.
Within the Texture placement section of the Shader Editor, you have the option of setting up Chord length texturing that will evenly map the texture over the whole surface. You can also control the position of the texture on the surface using label mapping, and you can increase the number of repeats along each direction to cover the whole surface.

Shown below are four examples of how the ceramic tile texture could be mapped onto the surface shown.

One tool that will help you place textures is the Texture Placement window. This window can be opened using the Texture placement icon in the Multi-lister. It has various menu items that help you position textures.

Texture Mapping Effects
In addition to basic color textures, you can apply special types of textures to your shaders. These effects add detail to your shaders and give your surfaces a more realistic look. These mapping types can sometimes be used in place of modeling when it comes to fine details. Shown below are several mapping techniques that use this wall and the gridded texture.

Bump Maps
A bump map uses a texture's tones of grey to create the illusion of relief on a surface. Areas of black on the texture indicate that the surface is raised while a gradation can be used to represent a sloping area. This effect only gives the illusion of depth on the surface and does not actually alter the surface.

Displacement Maps
A displacement is a bump map that physically moves the surface during rendering. Whereas the edge of a bump mapped surface still looks flat, a displacement map is visible at the edge. Displacement maps look better than bump maps if you are moving around the object in an animation. Displacement maps take a while longer to render than bump maps but the final effect is often worth the wait.

Transparency Map
A transparency map uses tones of gray to create the appearance that the surface is transparent. Areas of black on the texture indicate that the surface is transparent, while gray areas create a semi-transparent look. White areas are completely opaque.

Reflectivity Map
A reflectivity map uses tones of gray to create the illusion that parts of a surface are reflective and other parts are not. This would be a good effect for a shiny surface that has rust spots.

Combining texture maps
There are other areas in the Shader Editor where you can map textures. These various levels of textures give you a whole range of texture effects that can all be combined in a single shader. For instance, if you wanted to show rust on a metal surface, you could use a Color map to represent the change of color from metal to rust red, a bump map to shown a bit of relief where the rust is happening and a reflectivity map so that the metal reflects but the rust doesn't.
The Environment Shader
The Environment shader defines the background of the rendered scene. This shader can contain a texture image or a more straight- forward color map or ramp. This shader is also where you can create a fog effect or add a glow to your scene.

Now that you know a little bit about how shaders work, you can begin applying them into a scene. Watch for the various methods of mapping textures onto objects and be sure to become familiar with how the Multi-lister and Shader Editor work together.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.