2)Pacman
#myfirstrib.rib – test test
Display "myfirstrib.tiff" "file" "rgb"
Translate 0 0 5
LightSource "pointlight"
"from" [2 2 -3]"intensity" [10]
WorldBegin
AttributeBegin
Color 1 1 0Translate -1.2 0 0
Rotate 35 0 0 45
Scale 1 1 1
Sphere 1 -1 1 270
AttributeEnd
AttributeBegin
Color 1 1 1Translate 0 0 0
Rotate 35 0 0 2
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
Color 1 1 1Translate 1 0 0
Rotate 35 0 0 2
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
Color 1 1 1Translate 2 0 0
Rotate 35 0 0 2
Scale 0.2 0.2 0.2
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
Color 0 0 0Translate -1 0.4 -1
Rotate 35 0 0 2
Scale 0.15 0.15 0.15
Sphere 1 -1 1 360
AttributeEnd
WorldEnd
Mushroom
#myfirstrib.rib – test test
Display "myfirstrib.tiff" "file" "rgba"
Projection "perspective" "fov" 70
Translate 0 0 5
LightSource "pointlight"
"from" [2 2 -3]
"intensity" [10]
"intensity" [10]
#GreenHead
WorldBegin
AttributeBegin
Color 0 1 0
Rotate 90 1 0 0
Scale 1.9 1.9 1.9
Sphere 1 -1 0.5 360
Rotate 90 1 0 0
Scale 1.9 1.9 1.9
Sphere 1 -1 0.5 360
AttributeEnd
#White Circle
AttributeBegin
AttributeBegin
Color 1.5 1.5 1.5
Translate 0 0.4 -3
scale 0.5 0.5 0.5
Disk 1 1 360
Translate 0 0.4 -3
scale 0.5 0.5 0.5
Disk 1 1 360
AttributeEnd
AttributeBegin
Color 1.5 1.5 1.5
Translate -1.2 0.2 -3
scale 0.5 0.5 0.5
Disk 1 1 360
Translate -1.2 0.2 -3
scale 0.5 0.5 0.5
Disk 1 1 360
AttributeEnd
AttributeBegin
Color 1.5 1.5 1.5
Translate 1.2 0.2 -3
scale 0.5 0.5 0.5
Disk 1 1 360
Translate 1.2 0.2 -3
scale 0.5 0.5 0.5
Disk 1 1 360
AttributeEnd
#Body
AttributeBegin
color 0.937 0.806 0.49
Scale 1 0.8 1
Translate 0 -1 -1
Sphere 1 -1 1 360
AttributeBegin
color 0.937 0.806 0.49
Scale 1 0.8 1
Translate 0 -1 -1
Sphere 1 -1 1 360
AttributeEnd
#LeftEye
AttributeBegin
color 0 0 0
Scale 0.1 0.2 0.2
Translate -2 -3.4 -10
Sphere 1 -1 1 360
AttributeBegin
color 0 0 0
Scale 0.1 0.2 0.2
Translate -2 -3.4 -10
Sphere 1 -1 1 360
AttributeEnd
#RightEye
AttributeBegin
color 0 0 0
scale 0.1 0.2 0.2
Translate 2 -3.4 -10
Sphere 1 -1 1 360
AttributeBegin
color 0 0 0
scale 0.1 0.2 0.2
Translate 2 -3.4 -10
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
Color 1 1 1
Scale 0.05 0.07 0.05
Translate 3.55 -7.5 -45
Sphere 1 -1 1 360
Scale 0.05 0.07 0.05
Translate 3.55 -7.5 -45
Sphere 1 -1 1 360
AttributeEnd
AttributeBegin
Color 1 1 1
Scale 0.05 0.07 0.05
Translate -3.55 -7.5 -45
Sphere 1 -1 1 360
Scale 0.05 0.07 0.05
Translate -3.55 -7.5 -45
Sphere 1 -1 1 360
AttributeEnd
WorldEnd