Guest User

Untitled

a guest
Jun 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.68 KB | None | 0 0
  1. # test.rib - Testing what I know
  2. Display "test2.tiff" "framebuffer" "rgb"
  3. Projection "perspective" "fov" [50]
  4. Format 1024 600 1.0
  5. PixelSamples 4 4
  6. Clipping 2 11
  7.  
  8. DepthOfField 0.1 0.01 5
  9. Exposure 1.0 1.0
  10. Shutter 0.0 1.0
  11.  
  12. Translate 2 0 5
  13.  
  14. ObjectBegin 1
  15.     Surface "plastic" "Ks" [0.1] "roughness" [0.001]
  16.     Color [1 1 1]
  17.     Sphere 1 -1 1 360
  18. ObjectEnd
  19.  
  20. WorldBegin
  21.     LightSource "ambientlight" 1
  22.         "intensity" [0.1]
  23.        
  24.     LightSource "pointlight" 2
  25.         "intensity" [7]
  26.         "from" [-2 2 0]
  27.    
  28.     Illuminate 1 1
  29.     Illuminate 2 1
  30.    
  31.     Surface "plastic" "Ks" [0.2]
  32.    
  33.     # Floor
  34.     Patch "bilinear"
  35.                  "P" [ -5 -1 -5
  36.                         5 -1 -5
  37.                        -5 -1  5
  38.                         5 -1  5 ]
  39.     # Left
  40.     Patch "bilinear"
  41.                  "P" [ -5 -1 -5
  42.                        -5 -1  5
  43.                        -5  9 -5
  44.                        -5  9  5 ]
  45.     # Right
  46.     Patch "bilinear"
  47.                  "P" [  5 -1 -5
  48.                         5 -1  5
  49.                         5  9 -5
  50.                         5  9  5 ]
  51.     # Back
  52.     Patch "bilinear"
  53.                  "P" [ -5 -1  5
  54.                         5 -1  5
  55.                        -5  9  5
  56.                         5  9  5 ]
  57.    
  58.     AttributeBegin
  59.         Scale 0.3 0.3 0.3
  60.         Translate -5 0 0
  61.         ObjectInstance 1
  62.         Translate -5 0 0
  63.         ObjectInstance 1
  64.         Translate -5 0 0
  65.         ObjectInstance 1
  66.     AttributeEnd
  67.    
  68.     MotionBegin [ 0 1 ]
  69.         Translate 0.5 0 0
  70.         Translate 0 0 0
  71.     MotionEnd
  72.     Rotate 15 0 1 0
  73.     Surface "second"
  74.     Sphere 1 -1 1 360
  75.    
  76. WorldEnd
Add Comment
Please, Sign In to add comment