|
Lighting with Renderman Shading Language
Back Lit

# KeyLight - Back
LightSource
"spotlight" 1
"intensity" 80
"from" [-5 -1 -5]
"to" [0 0 0]
#FrontLight - Front
LightSource
"spotlight" 1
"intensity" 15
"from" [4 0 4]
"to" [0 0 0]
#FillLight
LightSource
"spotlight" 1
"intensity" 20
"from" [4 4 4]
"to" [0 0 0]
#MainShadow
LightSource
"shadowspot" 1
"intensity" 60
"from" [-4 6 -4]
"to" [0 0 0]
"shadowname" ["raytrace"]
"samples" 256
"width" 8
Attribute "visibility" "transmission" ["opaque"]
Close-Up

# KeyLight - Back
LightSource
"spotlight" 1
"intensity" 60
"from" [-5 0 -5]
"to" [0 0 0]
#FrontLight - Front
LightSource
"spotlight" 1
"intensity" 20
"from" [4 0 4]
"to" [0 0 0]
#FillLight
LightSource
"spotlight" 1
"intensity" 20
"from" [4 4 4]
"to" [0 0 0]
#MainShadow
LightSource
"shadowspot" 1
"intensity" 45
"from" [-4 6 -4]
"to" [0 0 0]
"shadowname" ["raytrace"]
"samples" 32
"width" 8 Attribute "visibility" "transmission"
["opaque"]
Colored Lighting
LightSource "spotlight" 1 #Yellow fill light
"intensity" 20
"from" [0 5 4]
"to" [0 0 0]
"lightcolor" [1.0 1.0 0.8]
LightSource "shadowspot" 1 #Shadow Light - Pink
"intensity" 60
"from" [3 6 -2]
"to" [0 0 0]
"lightcolor" [0.0 0.2 1.0]
"shadowname" ["raytrace"]
"samples" 256
"width" 8.0
LightSource "spotlight" 1 #Intense Blue light
"intensity" 40
"from" [5 4 -4]
"to" [0 0 0]
"lightcolor" [0.8 1.0 0.8]
LightSource "spotlight" 1 #Intense Orange light
"intensity" 50
"from" [1 8 1]
"to" [0 0 0]
"lightcolor" [1.0 0.6 0.4]
Attribute "visibility" "transmission" ["opaque"]
Experimentation with Shapes and Lighting
Display "lighting01 - back lighting"
"it" "rgb"
Format 427 240 1
Projection "perspective" "fov" 40
Translate 0 -.5 3.5
Rotate -15 0 1 0
Rotate -05 1 0 0
#Rotate -10 0 0 1
Scale 1 1 -1
# KeyLight - Back
LightSource
"spotlight" 1
"intensity" 60
"from" [-5 0 -5]
"to" [0 0 0]
#FrontLight - Front
LightSource
"spotlight" 1
"intensity" 20
"from" [4 0 4]
"to" [0 0 0]
#FillLight
LightSource
"spotlight" 1
"intensity" 20
"from" [4 4 4]
"to" [0 0 0]
#MainShadow
LightSource
"shadowspot" 1
"intensity" 45
"from" [-4 6 -4]
"to" [0 0 0]
"shadowname" ["raytrace"]
"samples" 32
"width" 8
Attribute "visibility" "transmission"
["opaque"]
#LightSource
# "spotlight" 2
# "intensity" 20
WorldBegin
ReverseOrientation
TransformBegin
Surface "plastic"
#Floor
TransformBegin
Scale 20 20 20
Polygon "P" [-5 0 -5 5 0 -5 5 0 5 -5 0 5]
TransformEnd
#Import Pyramid object
TransformBegin
ReadArchive "H:/rman/ribs/pyramid_obj.rib"
TransformEnd
TransformEnd
WorldEnd
|