
PACMAN
#myfirstrib.rib – test test
Display "myfirstrib.tiff" "file" "rgb"
Projection "perspective" "fov" 30
Translate 0 2 20
LightSource "pointlight"
"from" [2 2 -3]
"intensity" [10]
WorldBegin
AttributeBegin
#ball1
color 1 1 1
translate 1 -2.1 5
Rotate 120 1 0 0
scale 0.4 0.4 0.4
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
#ball2
Color 1 1 1
Translate 2.5 -2.1 5
Rotate 120 1 0 0
scale 0.4 0.4 0.4
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
#ball3
Color 1 1 1
Translate 4 -2.1 5
Rotate 120 1 0 0
scale 0.4 0.4 0.4
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
#pacman
Color 1 1 0
Translate 0 -2 0
Rotate 180 1 0 0
Rotate 45 0 0 1
Scale 2 2 2
Sphere 1 -1 1 270
AttributeEnd
AttributeBegin
#eye
Color 0 0 0
Translate -0.5 -1.1 -2
Rotate 120 1 0 0
Scale 0.3 0.3 0.3
Sphere 1 -1 1 360
AttributeEnd
WorldEnd
No comments:
Post a Comment