|
|
Sample Programs from NeXSTEP 3.3
##RenderMan RIB-Structure 1.0
Format 300 400 1
Projection "perspective" "fov" 40
#CameraOrientation 1.169 2.022 1.72 0.696 1.239 1.31 -124.879646
##CameraOrientation 1.169 2.022 1.72 0.696 1.239 1.31 -0.199809 -0.357082 0.912452
# The above CameraOrientation produces this camera transform:
Transform [ 0.858745 -0.199809 -0.471841 0
-0.512253 -0.357082 -0.781082 0
-0.012419 0.912452 -0.408996 0
0.053264 -0.61382 2.834402 1 ]
WorldBegin
TransformBegin
# coffee
Color 0.541176 0.380392 0.231372
Disk .9 .36 360
# mug
Color 1 1 1
Cylinder .4 0 1 360
Cylinder .36 0 1 360
Disk 0 .4 360
Translate 0 0 1
Torus .36 .04 0 180 360
TransformEnd
# mug handle
TransformBegin
Translate .3 0 .5
Rotate 90 0 1 0
Rotate 90 1 0 0
Torus .3 .05 0 360 180
TransformEnd
# donut
TransformBegin
Color 0.909803 0.639215 0.392156
Translate -.4 0 .85
Rotate 90 1 0 0
Torus .3 .15 0 360 270
TransformEnd
WorldEnd
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.