home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / RenderMan / SimpleMug.rib < prev   
Encoding:
Text File  |  1995-02-07  |  946 b   |  44 lines

  1. ##RenderMan RIB-Structure 1.0
  2. Format 300 400 1
  3. Projection "perspective" "fov" 40
  4. #CameraOrientation 1.169 2.022 1.72  0.696 1.239 1.31  -124.879646
  5. ##CameraOrientation 1.169 2.022 1.72  0.696 1.239 1.31  -0.199809 -0.357082 0.912452
  6. # The above CameraOrientation produces this camera transform:
  7. Transform [ 0.858745 -0.199809 -0.471841 0
  8.            -0.512253 -0.357082 -0.781082 0
  9.            -0.012419  0.912452 -0.408996 0
  10.             0.053264 -0.61382   2.834402 1 ]
  11. WorldBegin
  12. TransformBegin 
  13. # coffee
  14. Color 0.541176 0.380392 0.231372
  15. Disk .9 .36 360
  16. # mug
  17. Color 1 1 1
  18. Cylinder .4 0 1 360
  19. Cylinder .36 0 1 360
  20.  
  21. Disk 0 .4 360
  22.  
  23. Translate 0 0 1
  24. Torus .36 .04 0 180  360
  25. TransformEnd
  26.  
  27.  # mug handle
  28. TransformBegin
  29. Translate .3 0 .5
  30. Rotate 90 0 1 0
  31. Rotate 90 1 0 0
  32. Torus .3 .05 0 360 180
  33. TransformEnd
  34.  
  35. # donut
  36. TransformBegin
  37.   Color 0.909803 0.639215 0.392156
  38.   Translate -.4 0 .85
  39.   Rotate 90 1 0 0
  40.   Torus .3 .15 0 360 270
  41. TransformEnd
  42.  
  43. WorldEnd
  44.