Mr Mushroom
#mushroomv2.rib – test test
Display "mushroomv2.tiff" "file" "rgb"
Projection "perspective" "fov" 30
Translate 0 0 5
LightSource "pointlight"
"from" [2 2 -3]
"intensity" [30]
WorldBegin
#Background
AttributeBegin
Color 1 1 1
Disk 0.5 200 360
AttributeEnd
#Mushroom head
AttributeBegin
Color 0.2 1 0
Translate 0 0.3 0.7
Rotate 100 -1 0 0
Scale 0.9 0.9 0.9
Sphere 1 -0.5 1 200
AttributeEnd
#Mushroom face
AttributeBegin
Color 1 0.8 0.45
Translate 0 -0.3 0.5
Rotate 90 1 0 0
Scale 0.6 0.5 0.5
Sphere 1 -0.5 1.2 360
AttributeEnd
#Right spot
AttributeBegin
Color 1 1 1
Translate 0.9 0.35 -0.8
Rotate 90 0 0 -1
Disk 0.5 0.4 360
AttributeEnd
#Middle spot
AttributeBegin
Color 1 1 1
Translate 0.01 0.4 -0.8
Rotate 90 0 0 -1
Disk 0.5 0.42 360
AttributeEnd
#Left spot
AttributeBegin
Color 1 1 1
Translate -0.9 0.35 -0.8
Rotate 90 0 0 -1
Disk 0.5 0.4 360
AttributeEnd
#Left Black Eyes
AttributeBegin
Color 0 0 0
Translate -0.15 -0.4 -0.5
Scale 0.15 0.4 0.25
Sphere 0.25 -0.5 0.8 360
AttributeEnd
#Right Black Eyes
AttributeBegin
Color 0 0 0
Translate 0.15 -0.4 -0.5
Scale 0.15 0.4 0.25
Sphere 0.25 -0.5 0.8 360
AttributeEnd
#Left White pupil
AttributeBegin
Color 1 1 1
Translate -0.14 -0.35 -0.7
Scale 0.15 0.3 0.25
Sphere 0.15 -0.5 0.8 360
AttributeEnd
#Right White pupil
AttributeBegin
Color 1 1 1
Translate 0.14 -0.35 -0.7
Scale 0.15 0.3 0.25
Sphere 0.15 -0.5 0.8 360
AttributeEnd
WorldEnd

No comments:
Post a Comment