### William Schilthuis ### WilliamGS.com ### http://www.sfdm.scad.edu/faculty/mkesson/vsfx319/index.html ### spring 2009 ### Renderman Archive ### Matrix Composition ### Part 5 of 6 ### Description: ### Surface Shader ### ### Color and Displacement. Execute the commented txmake lines ### in order to create renderman (.tex) textures from tiffs. ### ### ### Option "searchpath" "shader" "@:../shaders" Option "searchpath" "texture" "../textures" Option "searchpath" "archive" "../archives:Cutter_Help/templates/Rib:custom_templates/Rib" Display "wgs_matrix_rook_Shaders.tif" "it" "rgba" # Display "+wgs_matrix_rook_AO.tif" "it" "_occlusion" 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 #execute the next line to generate texture maps #txmake ../tiffs/compwood_color.tif ../textures/compwood_color.tex #txmake ../tiffs/compwood_height.tif ../textures/compwood_height.tex #txmake ../tiffs/checker.tif ../textures/checker.tex Attribute "bound" "displacement" [0.10] # USE FOR RAYTRACED SHADOWS # Attribute "visibility" "trace" [1] # Attribute "shade" "string transmissionhitmode" ["primitive"] # Attribute "visibility" "int transmission" [1] WorldBegin LightSource "shadowspot" 1 "intensity" 25.0 "lightcolor" [1.0 0.95 0.9] "from" [-4.0 3.0 1.0] "to" [0.0 0.0 0.0] "coneangle" 0.55 "conedeltaangle" 0.15 #edge sharpness # "beamdistribution" 2.0 # "shadowname" ["wgs_matrix_rook_spot1.tx"] #no shadows for shader testing "samples" 128.0 "width" 16.0 LightSource "shadowspot" 2 "intensity" 32.0 "lightcolor" [0.9 0.9 1.0] "from" [4.0 1.0 2.0] "to" [0.0 0.0 0.0] "coneangle" 0.55 "conedeltaangle" 0.15 #edge sharpness # "beamdistribution" 2.0 # "shadowname" ["wgs_matrix_rook_spot2.tx"] #no shadows for shader testing "samples" 128.0 "width" 16.0 #Surface "rtOcclude" "samples" [256] AttributeBegin #SCENE GROUP Surface "plastic" TransformBegin Displacement "emboss" "texname" ["/stuhome/vsfx319/textures/wgs_matrix_rook_AO.tex"] "Km" 0.1 Scale 2 2 2 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 Surface "combo" "texname" ["wgs_brick.tex"] #"traname" ["wgsfiletest.tex"] "Ks" 0.1 "Kd" 0.5 ReadArchive "wgs_matrix_rook_compositiongroup_archive.rib" AttributeEnd WorldEnd