home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / atsirds / cartile.pov < prev    next >
Text File  |  1994-08-10  |  2KB  |  89 lines

  1. // Car tile picture for SIS
  2. // render size: 96x72
  3.  
  4. #include "colors.inc"
  5.  
  6. camera {
  7.   location  <0, 0, -9>
  8.   direction <0, 0, 3.8>
  9.   up        <0, 1, 0>
  10.   right     <4/3, 0, 0>
  11.   look_at   <0, 0, 2.5>
  12. }
  13.  
  14. #declare Tyre = difference {
  15.   cylinder { <0, 0, 0>, <1, 0, 0>, 1.4 }
  16.   cone {
  17.     <.5, 0, 0>, 1
  18.     <1.1, 0, 0>, 1.3
  19.   }
  20. }
  21.  
  22. #declare Car = union {
  23.   difference {  // Car body
  24.     box { <-1, 0, -2>, <1, 1, 2> }
  25.     cylinder { <-1.1, 5.2, -1.5>, <1.1, 5.2, -1.5>, 5 }
  26.     pigment {
  27.       bozo
  28.       scale <.25, .25, .5>
  29.       color_map {
  30.         [0 color Green]
  31.         [1 color red .7 green .5 blue .3]
  32.       }
  33.       quick_color Green
  34.     }
  35.   }
  36.   union {  // Tyres
  37.     object { Tyre scale .4 translate <1, 0, -.9> }
  38.     object { Tyre scale .4 translate <1, 0, .9> }
  39.     object { Tyre scale .4 rotate 180*y translate <-1, 0, -.9> }
  40.     object { Tyre scale .4 rotate 180*y translate <-1, 0, .9> }
  41.     pigment { Gray30 }
  42.     finish { phong 1 phong_size 10 }
  43.   }
  44.   sphere {  // Windshield
  45.     <0, 0, 0>, 1
  46.     scale <.8, .2, 1.2>
  47.     rotate -20*x
  48.     translate 0.5*y
  49.     pigment { color blue .1 }
  50.     finish { phong 1 reflection .2 }
  51.   }
  52.   union {  // Lights
  53.     box { <-.95, .05, -2.05>, <-.65, .15, -2> }
  54.     box { <.65, .05, -2.05>, <.95, .15, -2> }
  55.     pigment { Yellow }
  56.     finish { ambient .5 }
  57.   }
  58.   union {
  59.     box { <-.95, .2, 2>, <-.8, .8, 2.05> }
  60.     box { <.8, .2, 2>, <.95, .8, 2.05> }
  61.     pigment { Red }
  62.     finish { ambient .5 }
  63.   }
  64.   bounded_by { box { <-1.42, -.58, -2.07>, <1.42, 1.02, 2.07> } }
  65. }
  66.  
  67. light_source { <.5, 8, 4> color White }
  68. light_source { <4, 3, -8> color White }
  69.  
  70. object {
  71.   Car
  72.   scale .5
  73.   rotate <-20, 47, 0>
  74.   translate <0, -.2, 1.08>
  75. }
  76.  
  77. plane {
  78.   z, 10
  79.   pigment {
  80.     bozo
  81.     scale .2
  82.     color_map {
  83.       [0 color Yellow]
  84.       [1 color Red]
  85.     }
  86.   }
  87.   finish { ambient 1 diffuse 0 }
  88. }
  89.