File:  [NeXTSTEP 3.3 examples] / Examples / RenderMan / SimpleMug.rib
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:03 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.