### William Schilthuis ### WilliamGS.com ### http://www.sfdm.scad.edu/faculty/mkesson/vsfx319/index.html ### spring 2009 ### Renderman Archive ### Matrix Composition ### Part 4 of 6 ### Description: ### Lights Beauty Pass. ### ### Bake the Shadow Map(s) first, then render this file ### In Cutter, Right click on "...spot1.tx" in line 50, and ### Bake the Shadow Pass. To increase resolution, open the ### "...spot1.rib" that is created, modify and compile it. ### Option "searchpath" "shader" "@:../shaders" Option "searchpath" "texture" "../textures" Option "searchpath" "archive" "../archives:Cutter_Help/templates/Rib:custom_templates/Rib" Display "wgs_matrix_rook_Lights.tif" "it" "rgba" Format 512 288 1 Projection "perspective" "fov" 52 ShadingRate 1.0 Translate 0.0 -0.2 0.5 Rotate 20 1 0 0 Rotate 15 0 1 0 Scale 1 1 -1 WorldBegin # USE FOR RAYTRACED SHADOWS # Attribute "visibility" "trace" [1] # Attribute "shade" "string transmissionhitmode" ["primitive"] # Attribute "visibility" "int transmission" [1] LightSource "shadowspot" 1 "intensity" 4.0 "lightcolor" [1.0 0.95 0.9] "from" [-1.0 0.9 -1.5] "to" [0.0 0.2 -0.5] "coneangle" 0.55 "conedeltaangle" 0.15 #edge sharpness # "beamdistribution" 2.0 "shadowname" ["wgs_matrix_rook_spot1.tx"] #render and use this shadow map "samples" 1024.0 "width" 32.0 LightSource "shadowspot" 2 "intensity" 3.0 "lightcolor" [1.0 0.95 0.9] "from" [-1.0 0.9 -1.5] "to" [0.0 0.2 -0.5] "coneangle" 0.65 "conedeltaangle" 0.15 #edge sharpness # "beamdistribution" 2.0 "shadowname" ["raytrace"] #kill your render time for self shadows "samples" 1024.0 "width" 16.0 Surface "plastic" AttributeBegin #SCENE GROUP TransformBegin # ReadArchive "cutrAxes.rib" Scale 10 10 10 Polygon "P" [-0.5 0 -0.5 -0.5 0 0.5 0.5 0 0.5 0.5 0 -0.5] "st" [0 0 0 1 1 1 1 0] TransformEnd AttributeEnd AttributeBegin #COMPOSITION GROUP ReadArchive "wgs_matrix_rook_compositiongroup_archive.rib" AttributeEnd WorldEnd