RfM
|
|
Introduction
This tutorial presents four scripts that implement an interface that enable the edges of a
polygonal object to control the displacement of another object - either polygonal
or nurbs. The OSL shader used to achieve this effect is presented in the tutorial
OSL: Wyvill Lines.
Important Note: Max Edge Count
Changes to the #define MAX_VERTICES 4000
Notice the |
Step 1 - Installing the Scripts
It is assumed the reader has followed the recommendations on customizing
RenderMan for Maya presented in the tutorial,
"RfM: Customizing".
|
Step 2 - Using the Scripts
Launch Maya and check the RenderMan_for_Maya plugin is loaded. Step 3 - ShadingThe WyvillLines OSL shader need only be used on the controlled object - the sphere. The shading network is shown next. Notice in figures 2 and 3 the "Data Name" must be identical for the controller and controlled objects. Step 4 - Rendering
Set the project and save the scene.
When the scene is rendered two rib archives will be saved in the project's data directory. For example, maya/projects/wyvill/data/cube_sphere_attributes.0001.rib maya/projects/wyvill/data/cube_sphere_wireframe.0001.rib
The first archive defines two custom attributes while the second rib file defines the geometry
that represents a wireframe version of the controller polygonal object. The vertices of
the controller object can be animated. However, change the "Evaluation" mode in Maya's Preferences
Settings/Animation to
|
© 2002- Malcolm Kesson. All rights reserved.