Common Shader Parameters

The following are some of the available parameters common to all shaders.

Color

To edit the color of the shader, click the arrow to the right of the heading to display the Color Editor.

Moving the slider does not change the color of the shader, but lets you adjust the value of the color without having to open the Color Editor. The slider range corresponds to gray scale values, based on the HSV (Hue, Saturation, Value) color system.

Tips:

Incandescence

A special effect option that can be used to make a surface appear opalescent or as if it were emitting light itself, such as lava or a phosphorescent moss. A slight touch of Incandescence on vegetable matter for example, can make the vegetation look alive.

By default, the incandescence color is black, which has no effect on the surface. To edit the Incandescence color, click the arrow to the right of the heading to display the Color Editor. Incandescence can be any color you want depending on the effect you want to create.

Moving the Incandescence slider does not change its basic color, but lets you adjust the value of the color without having to open the Color Editor.

Tips:

Transparency

By default, all shaders will render the surface as totally opaque.Transparency is used to affect the transparency of a surface. To edit the color of the Transparency, click the arrow to the right of the heading to display the Color Editor.

Tip: Generally, the color used for transparency should be the same color used for the shader, although using different colors can be useful for creating special effects.

Moving the slider adjusts the level of transparency. Transparency is derived through a gray scale or color that dictates the level of transparency. Black is totally opaque and white is totally transparent. Any hue or saturation will be used to give the transparency a color range.

Notes:

When using Transparency:

Special Effects Parameters

Bump

Bump applies to a texture map and can make a surface appear rough or bumpy. This effect is achieved by disturbing the surface normals according to the intensity of the pixels in the texture map being used.

Although bump mapping makes a surface appear bumpy or rough, the surface itself is not changed in any way and therefore, a silhouette of the object appears smooth.

The Bump map texture is selected from the Map... button, which opens the Texture Procedures window.

Tip: Bump mapping results in very little overhead in rendering time if used with two-dimensional textures.

Displacement

Although a Displacement map parameter is similar to a bump map, the surface to which it is mapped is displaced along the normals according to the intensity of the pixels in the texture map. With displacement maps, the silhouette of the surface is consistent with the rest of the surface, unlike bump mapping.

Tips:

Shading Map

Shading Map can be used to create a variety of non-photorealistic effects such as a cartoon, or to highlight threshold values.

Shading Map lets you map an arbitrary texture to influence the shading model of a surface. The U value of the texture is mapped to the shading's hue, and the V value is mapped to the shading's intensity (the value defined by R+G+B/3). The effect is to change the shader's color, specular color and eccentricity to allow you to create a new style of shading model.

Tip: Good results can be achieved using a Ramp texture for the map.

Translucence

This simulates the way light diffusely penetrates through translucent objects (for instance, it can exaggerate the diffuse component). It is very useful for a wide range of materials: clouds, fur, hair, marble, jade, wax, paper, leaves, petals, or frosted light bulbs. The valid range is -· to ·. Translucence can also be animated.

Using Translucence for fur and hair

Objects like fur and hair benefit greatly by shading the translucency and very little diffuse illumination. The effect is that small scale surface bumps and tufts have very soft shading as light readily passes through, while large scale features (like the back of the object, as opposed to the front) get full shadows and highlights.

This effect is almost impossible to achieve without translucence.

Tips:

Transl. Depth

Determines the distance light will penetrate into the object. The valid range is any floating point number.

If the value is greater than zero, light can shine on surfaces that face away from the lightsource. For example, a spotlight with a texture map could act like a rear projector lighting up a translucent screen from behind. If the light casts shadows, the translucence depth will determine how far the light can penetrate into the object. Transl. Depth can be animated.

Tips:

Opacity Depth

Opacity Depth causes the transparency of an object to diminish with the thickness of an object. Objects are fully opaque if their depth is greater than the Opacity Depth. The valid range is any floating point number.

Note: When the opacity depth is zero, it has no effect (as opposed to making an object always opaque).

Tips:

Use Back Color

If the Use Back Color (use background color) is toggled ON, the shader derives its color from the area of the background that is directly behind the surface element. The background used can be either a 2D texture or a 3D environmental texture map or a simple backdrop or color. Except for the shadows and reflection cast on it, the surface that is using the background color is totally unnoticeable in the scene.

Using the Use Back Color Parameter - Example

The following example shows how to use the Use Back Color parameter.

A scanned-in image of an automotive showroom is being used as an environmental background. A vehicle is placed in the scene. The vehicle may reflect the background environment around it, but is unable to cast a shadow onto the showroom floor as there is no floor there. The floor is simply an environmental illusion of sorts.

Using the Use Back Color parameter, you can place a simple plane under the vehicle. The plane is undetectable in the rendered scene, since it has taken on the colors of the background directly below it. But, since there is now a surface there, the vehicle can now cast realistic shadows onto it. Also, if the shader for the plane is reflective, and the raytracer is used, the floor may also reflect the vehicle.

Applying a transparency map to the plane that is more transparent at the edges and opaque in the center area, will help to feather the edges of the plane into the backdrop.

Note: You can now use the mask which generates shaders to measure and change the opaque qualities of the mask. The masks generated for such shaders now have the shadows as the indicator of the opaqueness of the mask value. That is, the entire surface will not be registered in the mask.

Matte Transp.

The Matte Transp. slider value indicates the transparent multiplier amount for the alpha channel. The default is 0, which means that any opaque object registers a full alpha value.

If the Matte Transp. value is 1, a 0 alpha value is registered. Any Matte Transp. values between 0 and 1 act as a multiplier to the alpha channel value to arrive at a new alpha value.

Tip: This is useful for special effects purposes. If you want an object to gradually appear over an animated sequence of frames after compositing, animate the Matte Transp. value from 1 to 0.

Emit Particles

If set to ON, the Particle Emissions parameters are available and all objects assigned this shader will emit particles (other parameters may still prevent it from doing so).

Glow Parameters

The Glow parameters define the surface glow effect.

Glow Intens.

Glow Intensity defines the brightness of the shader's glow effect. If the Environment shader's Shader Glow Glow Type and Halo Type parameters are off, Glow Intensity has no effect.

Hide Source

When Hide Source is set to ON, a surface whose shader has a non-zero Glow Intens. will be invisible, but will show as a glow effect. This can give good gas effects. If the Environment shader's Shader Glow Glow Type and Halo Type parameters are off, Hide Source has no effect.

Raytrace Parameters

The Raytrace options are available with all shading models, but are used only if the image is raytraced.

Refract Index

When raytracing transparent surfaces, Refract Index controls the degree to which light rays are bent through transparent objects by the raytracer. For example, glass has an approximate refractive index of 1.6.

All transparent surfaces that use the refractive index must have thickness before true refraction can be calculated. If surfaces do not have a thickness, (for example, a simple plane or face element), the refractive index value should be set to 1.0, or use the Surface Width in the Raytrace Effects window.

As the refractive index value is changed, the shader icon in the Multi-lister updates to display the new setting.

Note: This is only a visual approximation and does not represent the exact effect of the raytraced image.

Reflect Limit

The Reflect Limit controls the number of reflected rays that a shader will reflect. Normally, try to maintain a reflection limit below 5 for a highly reflective surface, and as low as 1 for surfaces with low reflectivity. For example, if the reflectivity value for a surface is in the range of 0.5 to 1, then set your Reflect Limit in the range of 2 to 5. If the reflectivity value of a surface is in the range of 0 to 0.5, set your Reflect Limit in the range of 1 to 2.

Tip: Careful selection of reflection limits is very important to achieve good raytrace rendering times. Always try to use low values. It is good working practice to produce multiple test renders to achieve the lowest values possible to suit the image requirements.

Rendering time can be 10-15 times longer where reflection limits are as high as 25. A typical scene rendered with reflection limits of 4 compares favorably in image quality to limits of 25. It is debatable whether recurring mirror scenes really need reflection limits as high as 10 or more.

Refract Limit

The Refract Limit controls the number of refracted rays a shader will refract. To calculate this, count the number of times a ray has to pass through a transparent surface. This must include the ray traveling back from other shaders in the scene.

Using the Refract Limit Parameter - Example

The following is an example of how the Refract Limit parameter works in a scene containing a glass on a table and a mirror on the wall behind the glass.

Notes:

Shadow Limit

The Shadow Limit controls the number of shadow rays the shader permits to be passed on to the next shader. A shadow limit of 0 means that shadows are only generated by primary eye rays (the ray labeled 1 in the previous illustration.) As this number increases, shadows are also calculated for subsequent rays. A value of 0 or 1 is fine for almost all raytraces.

Note: Raytracing time increases dramatically for each increase in this parameter.

Raytrace Effects

Surface Width

Surface Width is only used for transparent objects with the raytracer. This parameter simulates the thickness of transparent objects that are made of single surfaces. Results will not be identical to building objects with thickness, but good results can be easily achieved where it may be difficult to build the thickness of a surface. Thickness is defined in world units. This effect works best where the edges of the glass are not visible, such as closed surfaces, or shapes such as car windshield.

Transp. Shade

Transp. Shade is used to vary the transparency across a surface with respect to RayTracer shadows. It is an effect that makes shadows of transparent objects brighter in the center, simulating the focusing of light. The valid slider range is from 0 to 1, where the default value of 0 produces shadows of constant intensity.

Transp. Depth

Transp. Depth controls the distance a ray will travel beyond a transparent surface. When set to 0, the ray travels an infinite distance. If set to a value other than 0, as the ray passes beyond a transparent surface unless it reaches another object, its color becomes the background color. Transp. Depth value is in world units.

Chroma Abber.

Chroma Abber. (chromatic aberration) simulates how different wavelengths of light are refracted differing amounts when they pass through a transparent surface. Chroma Abber. only effects a ray as it passes through its second surface (the first exit ray).

Note: This parameter only has an effect when raytracing. Like most transparent effects, best results are achieved when there are suitable objects in the background to be refracted.

Refrac Jitter

Refrac Jitter randomly alters the direction of refraction rays. Refrac Jitter can be used to give an effect like frosted glass. The valid slider range is from 0 to 1. If large values are used, it may be necessary to increase the Refrac Samples value or aliasing artifacts will be evident.

Refrac Samples

Refrac Samples controls the number of subsamples made on refraction. The number of samples smoothens or roughens the Refrac Jitter effect. At 1, you get a very rough frosted glass effect. Refrac Samples may need to be increased with high values of Refrac Jitter.

Note: If Refrac Jitter is set to 0, Refrac Samples has no effect.

Use Refl. Map

When toggled ON, the raytracer calculates reflections for the shader based on the reflection map being used on the specific shader and all other surroundings are ignored.

When toggled OFF, reflections for the shader are calculated, based on the surrounding objects or background and all reflection maps are ignored.

Hidden Line Rendering Parameters

Hidden Line Rendering options are available to use with all shading models, but are used only if the image is Hidden Line rendered (see Render Hidden line for more information).

Use Fill Color

When ON, surfaces rendered using the hidden line renderer will be filled with the Fill Color. When OFF, surfaces will be filled with the background color.

Fill Color

Only relevant when using the Hidden Line renderer. If Use Fill Color is ON, Fill Color defines the color and value for the filled regions of surfaces.

U Patch Lines

Controls the number of lines shown in the `U' direction of a surface when doing a hidden line rendering. When set to 0, no lines will be drawn on a surface other than edges.

V Patch Lines

Controls the number of lines shown in the `V' direction of a surface when doing a hidden line rendering. When set to 0, no lines will be drawn on a surface other than edges.





aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.