Monday, 24 October 2011

Practical 2: PacMan

In your own words describe what is Renderman?
Renderman is a scripting language.

Cherilynn
PacMan


#pacman.rib
Display "pacman.tiff" "file" "rgb"

Projection "perspective" "fov" 40
Translate 0 0 5

LightSource "pointlight"
"from" [2 2 -3]
"intensity" [10]

WorldBegin
AttributeBegin
Color 0 0 0
Translate -0.3 0.5 -1
Scale 0.15 0.15 0.15
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
Color 1 1 0
Translate -0.3 0 0
Rotate 180 1 0 0
Rotate 45 0 0 1
Sphere 1 -1 1 270

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 0.4 0 0
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 0.9 0 0
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360

AttributeEnd

AttributeBegin
Color 1 1 1
Translate 1.4 0 0
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360

AttributeEnd

WorldEnd

No comments:

Post a Comment