RfM
|
Introduction
This tutorial provides two examples of how primvars can be set up and used with RIS materials.
The reader should refer to the tutorial "
RIB: Using PrimVars" for basic information about primvars.
Example 1 - using a "float" primvarSetting Up the Material
1 Assign an instance of PxrSurface to several objects.
|
Setting Up the Surfaces
5 Copy and paste the MEL proc, shown in listing 1, into Maya's script window. Listing 1
|
6 Select the surfaces to which PxrSurface was previously assigned. PointsGeneralPolygons [1] [4] [0 1 3 2] "P" [xyz data...] "constant float brightness" [0.4523]
|
Example 2 - using a "color" primvar
Setting Up the MaterialFollow steps 1 to 4 but connect another instance of PxrPrimvar to the Glow "Color" of PxrSurface. Change the variable type and variable name as shown below.
|
Setting Up the Surfaces
Copy and paste the MEL proc, shown in listing 2, into Maya's script window. Listing 2
|
Select the surfaces to which PxrSurface was assigned. PointsGeneralPolygons [1] [4] [0 1 3 2] "P" [xyz data...] "constant color tint" [0.520171 0.486881 0.625127] Finally, render the scene.
|
© 2002- Malcolm Kesson. All rights reserved.