##RenderMan RIB-Structure 1.0 version 3.03 # Comments appear next to single hash marks (#). # From: Robert Cheung cs184-cv #Display "s.tif" "file" "rgba" # Define the viewpoint Projection "perspective" "fov" [55 ] Rotate 15 1 0 0 Rotate 0 0 1 0 # rotate 43, -10 2 10 to check kenny corner # rotate 30, -8 2 10 to check kenny corner # rotate 90, -10 2 0 to check kenny side # rotate 0, 0 2 10 to check kenny front # rotate 0, -5 2 10 to check alien front Translate 0 2 10 # Draw one frame, define the world FrameBegin 1 WorldBegin LightSource "ambientlight" 1 "intensity" [.2 ] # Turn ray-casting shadow calculation on Attribute "light" "shadows" ["on"] # light sources LightSource "distantlight" 2 "intensity" [.3 ] "lightcolor" [1 1 1] "from" [15 10 0] "to" [0 0 0] LightSource "distantlight" 6 "intensity" [1 ] "lightcolor" [1 1 1] "from" [-15 10 0] "to" [0 0 0] LightSource "distantlight" 7 "intensity" [.3 ] "lightcolor" [1 1 1] "from" [0 10 15] "to" [0 0 0] LightSource "distantlight" 8 "intensity" [1 ] "lightcolor" [1 1 1] "from" [0 10 -15] "to" [0 0 0] #LightSource "distantlight" 3 "intensity" [2 ] "lightcolor" [1 1 1] "from" [30 30 30] "to" [0 0 0] #LightSource "distantlight" 4 "intensity" [2 ] "lightcolor" [1 1 1] "from" [-30 30 -30] "to" [0 0 0] #LightSource "distantlight" 5 "intensity" [1.5 ] "lightcolor" [1 1 0] "from" [50 30 -20] "to" [0 0 0] LightSource "spotlight" 9 "intensity" [1 ] "lightcolor" [1 1 1] "from" [0 0 0] "to" [0 0 0] "coneangle" [5] "conedeltaangle" [10] "beamdistribution" [2] ################################################################ # KENNY # ################################################################ # head AttributeBegin Attribute "identifier" "name" "kennyhead" TransformBegin Color [.4 .2 -.3] Translate 0 0 -2.3 Scale .7 1 1 Rotate -85 0 0 1 Surface "carpet" Torus 1 .2 0 360 350 TransformEnd Color [1 .25 0] TransformBegin Scale 1 1 1 Surface "carpet" Displacement "cloth" Sphere 2 -2 2 360 TransformEnd TransformBegin Scale .7 1 1 Surface "carpet" Displacement "cloth" Hyperboloid 1.3 1.3 -.5 .8 .8 -2.2 360 TransformEnd AttributeEnd # eyes AttributeBegin Attribute "identifier" "name" "kennyeye" Color [1 1 1] TransformBegin Translate .3 0 -2.1 Rotate 90 0 0 1 Scale .64 .48 1 Surface "metal" Disk .05 -1 360 TransformEnd TransformBegin Translate -.3 0 -2.1 Rotate 90 0 0 1 Scale .64 .48 1 Surface "metal" Disk .05 -1 360 TransformEnd TransformBegin Color [-0.1 -0.1 0.1] Translate .2 -.2 -2.12 Rotate 90 0 0 1 Scale .5 .2 1 Surface "metal" Disk .06 -.5 360 TransformEnd TransformBegin Color [0 0 0.1] Translate -.2 -.2 -2.12 Rotate 90 0 0 1 Scale .5 .2 1 Surface "metal" Disk .06 -.5 360 TransformEnd AttributeEnd # body AttributeBegin Attribute "identifier" "name" "kennybody" Color [1 .25 0] Surface "carpet" Displacement "cloth" # chunk TransformBegin Translate 0 -2.5 0 Scale 1.5 1.4 1.5 Rotate 270 1 0 0 Sphere 1 -.2 1 360 TransformEnd # left leg TransformBegin Translate .7 -2.9 0 Scale .6 .9 .8 Rotate 270 1 0 0 Sphere 1 -.2 1 360 TransformEnd # right leg TransformBegin Translate -.7 -2.9 0 Scale .6 .9 .8 Rotate 270 1 0 0 Sphere 1 -.2 1 360 TransformEnd # Shoes TransformBegin Color [.4 .1 .3] Surface "cmarble" Translate .7 -3.1 0 Scale .6 1 .8 Rotate 90 1 0 0 Cylinder 1 -0.2 0 360 Disk 0 -1 360 TransformEnd TransformBegin Translate -.7 -3.1 0 Scale .6 1 .8 Rotate 90 1 0 0 Cylinder 1 -0.2 0 360 Disk 0 -1 360 TransformEnd AttributeEnd # hand AttributeBegin Attribute "identifier" "name" "kennyhand" Color [1 .25 0] Surface "carpet" Displacement "cloth" # arm TransformBegin Translate 1.4 -2.05 -0.3 Scale .5 .5 .5 Rotate 270 1 0 -1.3 Sphere 1 -.2 1 360 TransformEnd TransformBegin Translate -1.4 -2.05 -0.3 Scale .5 .5 .5 Rotate 270 1 0 1.3 Sphere 1 -.2 1 360 TransformEnd # palm Color [.4 .2 -.3] TransformBegin Translate 1.4 -2.05 -0.3 Scale .45 .45 .45 Rotate 270 0 0 1 Sphere 1 -1 1 320 TransformEnd TransformBegin Translate -1.4 -2.05 -0.3 Scale .45 .45 .45 Rotate 270 0 0 1 Sphere 1 -1 1 320 TransformEnd AttributeEnd ############################################################### # floor # ############################################################### AttributeBegin Attribute "identifier" "name" "floor" Color [0 1 .3] # 0 1 .3 Translate 0 -3 0 Rotate 90 1 0 0 Surface "grass" # Declare "texname" "string" # Surface "texmap" "texname" "grass.tif" Displacement "grassdp" Scale 5 5 5 TransformBegin Polygon "P" [10 10 0 -10 10 0 -10 -10 0 10 -10 0] TransformEnd AttributeEnd ############################################################### # sky # ############################################################### AttributeBegin Attribute "identifier" "name" "sky" Translate 0 11 10 TransformBegin Color [0 0 .1] # Rotate 180 1 0 0 Scale 10 10 10 Declare "texname" "string" Surface "texmap" "texname" "backgnd.tif" # Surface "plastic" Polygon "P" [-3 1.4 0 3 1.4 0 3 -1.4 0 -3 -1.4 0] TransformEnd AttributeEnd ############################################################### # alien light # ############################################################### AttributeBegin Attribute "identifier" "name" "alienlight" Color [1 1 .2] TransformBegin Rotate -90 1 0 0 # Surface "alienlight" Surface "funkyglass" Scale 1 1 1 Hyperboloid 0 2 15 0 3 -3 360 TransformEnd AttributeEnd ############################################################### # tree1 # ############################################################### AttributeBegin Attribute "identifier" "name" "tree1" Translate 8 0 4 TransformBegin Color [0 1 .3] # Declare "texname" "string" # Surface "texmap" "texname" "grass.tif" Surface "grass" Displacement "grassdp" Scale 1 1 1 Sphere 2 -2 2 360 TransformEnd TransformBegin Rotate -90 1 0 0 Color [.4 .2 -.3] Scale 1 1 1 Surface "wood" Hyperboloid -0.05 -.05 -1.8 .05 -0.2 -4.15 360 TransformEnd Translate -5 0 0 # Tree2 TransformBegin Color [0 1 .3] # Declare "texname" "string" # Surface "texmap" "texname" "grass.tif" Surface "grass" Displacement "grassdp" Scale 1 1 1 Sphere 2 -2 2 360 TransformEnd TransformBegin Rotate -90 1 0 0 Color [.4 .2 -.3] Scale 1 1 1 Surface "wood" Hyperboloid -0.05 -.05 -1.8 .05 -0.2 -4.15 360 TransformEnd AttributeEnd ################################################################ # Alien # ################################################################ Translate -4 2 1 # alien's head AttributeBegin Attribute "identifier" "name" "alienhead" Color [.3 1 .1] TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Surface "alienskin" Sphere 1 -.5 1 360 TransformEnd TransformBegin Translate 0 -2.0 0 Rotate -90 1 0 0 Scale 1 1 1 Surface "alienskin" Paraboloid .95 0 1.6 360 TransformEnd #eyes Translate 0 -.4 -.2 TransformBegin Color [-1 -1 .1] Rotate 45 0 0 1 Rotate -10 1 0 0 Rotate -120 0 1 0 Scale .5 1 1 Surface "metal" Disk 1 .5 360 TransformEnd Translate 0 0 0 TransformBegin Color [-1 -1 .1] Rotate -45 0 0 1 Rotate -10 1 0 0 Rotate 120 0 1 0 Scale .5 1 1 Surface "metal" Disk 1 .5 360 TransformEnd AttributeEnd # alien's body AttributeBegin Attribute "identifier" "name" "alienbody" Color [.3 1 .1] #Surface "plastic" Surface "alienskin" TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Hyperboloid -0.05 -.05 -1.8 .05 -0.2 -2.15 360 TransformEnd TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Hyperboloid .05 -0.2 -2.15 -.15 0.05 -3.5 360 TransformEnd TransformBegin Translate 0 -3.5 0 Scale .15 .20 .15 Sphere 1 -1 1 360 TransformEnd #arms TransformBegin Translate .9 -2.50 -.3 Rotate 225 .8 0 -1 Scale .1 .1 1 Sphere 1 0 1 360 TransformEnd TransformBegin Translate -.9 -2.50 -.3 Rotate 225 .8 0 1 Scale .1 .1 1 Sphere 1 0 1 360 TransformEnd TransformBegin Translate .9 -2.50 -.3 Scale .15 .15 .15 Sphere 1 -1 1 360 TransformEnd TransformBegin Translate -.9 -2.50 -.3 Scale .15 .15 .15 Sphere 1 -1 1 360 TransformEnd #legs TransformBegin Translate .4 -4.4 -.1 Rotate 270 3 0 -1 Scale .1 .1 1 Sphere 1 -.7 1 360 TransformEnd TransformBegin Translate -.4 -4.4 -.1 Rotate 270 3 0 1 Scale .1 .1 1 Sphere 1 -.7 1 360 TransformEnd TransformBegin Translate .6 -5 -.4 Scale .1 .1 .5 Sphere 1 -1 1 360 TransformEnd TransformBegin Translate -.6 -5 -.4 Scale .1 .1 .5 Sphere 1 -1 1 360 TransformEnd AttributeEnd ################################################################ # Alien2 # ################################################################ Translate 8 0 0 # alien2's head AttributeBegin Attribute "identifier" "name" "alien2head" Color [.3 1 .1] TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Surface "alienskin" # Surface "plastic" Sphere 1 -.5 1 360 TransformEnd TransformBegin Translate 0 -2.0 0 Rotate -90 1 0 0 Scale 1 1 1 Surface "alienskin" # Surface "plastic" Paraboloid .95 0 1.6 360 TransformEnd #eyes Translate 0 -.4 -.2 TransformBegin Color [-1 -1 .1] Rotate 45 0 0 1 Rotate -10 1 0 0 Rotate -120 0 1 0 Scale .5 1 1 Surface "metal" Disk 1 .5 360 TransformEnd Translate 0 0 0 TransformBegin Color [-1 -1 .1] Rotate -45 0 0 1 Rotate -10 1 0 0 Rotate 120 0 1 0 Scale .5 1 1 Surface "metal" Disk 1 .5 360 TransformEnd AttributeEnd # alien2's body AttributeBegin Attribute "identifier" "name" "alien2body" Color [.3 1 .1] #Surface "plastic" Surface "alienskin" TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Hyperboloid -0.05 -.05 -1.8 .05 -0.2 -2.15 360 TransformEnd TransformBegin Rotate -90 1 0 0 Scale 1 1 1 Hyperboloid .05 -0.2 -2.15 -.15 0.05 -3.5 360 TransformEnd TransformBegin Translate 0 -3.5 0 Scale .15 .20 .15 Sphere 1 -1 1 360 TransformEnd #arms TransformBegin Translate .9 -2.50 -.3 Rotate 225 .8 0 -1 Scale .1 .1 1 Sphere 1 0 1 360 TransformEnd TransformBegin Translate -.9 -2.50 -.3 Rotate 225 .8 0 1 Scale .1 .1 1 Sphere 1 0 1 360 TransformEnd TransformBegin Translate .9 -2.50 -.3 Scale .15 .15 .15 Sphere 1 -1 1 360 TransformEnd TransformBegin Translate -.9 -2.50 -.3 Scale .15 .15 .15 Sphere 1 -1 1 360 TransformEnd #legs TransformBegin Translate .4 -4.4 -.1 Rotate 270 3 0 -1 Scale .1 .1 1 Sphere 1 -.7 1 360 TransformEnd TransformBegin Translate -.4 -4.4 -.1 Rotate 270 3 0 1 Scale .1 .1 1 Sphere 1 -.7 1 360 TransformEnd TransformBegin Translate .6 -5 -.4 Scale .1 .1 .5 Sphere 1 -1 1 360 TransformEnd TransformBegin Translate -.6 -5 -.4 Scale .1 .1 .5 Sphere 1 -1 1 360 TransformEnd AttributeEnd WorldEnd FrameEnd