home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / Anwendun / Pov / POVTOOLS / ATSIS / DEPTH6.POV < prev    next >
Encoding:
Text File  |  1995-10-28  |  1.9 KB  |  86 lines

  1. // SIRDS z-depth data with POV-Ray #6
  2. // )C( 8/1994 Christian Perle
  3.  
  4. #include "colors.inc"
  5.  
  6. #declare Frontview = camera {
  7.   location  <0, 0, -6>
  8.   direction <0, 0, 2.5>
  9.   up        <0, 1, 0>
  10.   right     <640/470, 0, 0>
  11.   look_at   <0, 0, 2>
  12. }
  13.  
  14. #declare Sideview = camera {
  15.   location  <6, 0, 1>
  16.   direction <0, 0, 1.5>
  17.   up        <0, 1, 0>
  18.   right     <640/470, 0, 0>
  19.   look_at   <0, 0, 1>
  20. }
  21.  
  22. camera { Frontview }
  23.  
  24. #declare Walls = difference {
  25.   box { <-1, -2, -1>, <1, 2, 1> }
  26.   box { <-.8, -.8, -2>, <.8, .8, .8> }
  27.   scale <1.9, 1.2, .99>
  28. }
  29.  
  30. #declare Table = union {
  31.   cylinder { <0, .8, 0>, <0, .9, 0>, 1 }
  32.   box { <.4, 0, .4>, <.5, .8, .5> }
  33.   box { <.4, 0, .4>, <.5, .8, .5> rotate 90*y }
  34.   box { <.4, 0, .4>, <.5, .8, .5> rotate 180*y }
  35.   box { <.4, 0, .4>, <.5, .8, .5> rotate 270*y }
  36.   scale .6
  37. }
  38.  
  39. #declare Lamp = union {
  40.   cylinder { <0, 0, 0>, <0, .06, 0>, .4 }
  41.   cylinder { <0, .06, 0>, <0, 1.7, 0>, .05 }
  42.   difference {
  43.     cone { <0, 1.5, 0>, .7, <0, 2, 0>, .35 }
  44.     cone { <0, 1.48, 0>, .6, <0, 2.02, 0>, .25 }
  45.   }
  46.   scale .6
  47. }
  48.  
  49. #declare Window = difference {
  50.   box { <-1, -1, -1>, <1, 1, 1> }
  51.   box { <-.9, -.9, -1.1>, <.9, .9, 1.1> }
  52.   scale <.5, .3, .1>
  53. }
  54.  
  55. #declare Ball = sphere { <0, 0, 0>, .2 }
  56.  
  57. #declare Room = intersection {
  58.   union {
  59.     object { Walls }
  60.     object { Table rotate 30*y translate <-.5, -1, 0> }
  61.     object { Lamp translate <.6, -.96, -.1> }
  62.     object { Ball translate <.3, -.8, .4> }
  63.     object { Window translate <-.75, .18, .8> }
  64.     object { Window translate <.75, .18, .8> }
  65.     rotate <-12, 0, 0>
  66.   }
  67.   box { <-1, -1, -1>, <1, 1, 1> scale <10, 10, .99> }
  68. }
  69.  
  70. object {
  71.   Room
  72.   translate 1*z
  73.   pigment {
  74.     gradient z
  75.     translate -10*z
  76.     color_map {
  77.       [0 color White]
  78.       [1 color Black]
  79.     }
  80.     scale 2
  81.   }
  82.   finish { ambient 1 diffuse 0 }
  83.   /*pigment { White }*/
  84. }
  85. /*light_source { <.8, .8, -6> color White }*/
  86.