home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / bizz03 / bizz04.pov next >
Encoding:
Text File  |  1994-05-31  |  1.8 KB  |  79 lines

  1. //Pov aspirin bottle, "for 3-Dimensional headaches".
  2.  
  3. #include "colors.inc"
  4. #include "shapes.inc"
  5. #include "textures.inc"
  6. #include "env04.inc"
  7. #include "pill.inc"
  8. #include "cap.inc"
  9.  
  10. camera {
  11.    location  <0, 6.7, -15>
  12.    direction <0, 0, 1>
  13.    up        <0, 1, 0>
  14.    right     <4/3, 0, 0> 
  15.    look_at   <0, 5.75, 0> 
  16.    }
  17.    
  18. light_source { <80, 60, -20> color White }
  19.  
  20. light_source { <-80, 60, -50> color White }
  21.  
  22. box { <-10, -5, -4> <10, 0, 4>
  23.    texture { Dark_Wood finish { reflection 0.3 phong 1 phong_size 80 }}
  24.    }
  25.    
  26.    object {
  27.    union {
  28.    object {
  29.          Cap 
  30.          pigment { color White }
  31.            
  32.           } 
  33.    object {
  34.       cylinder { <0, 7, 0> <0, 8.75, 0> 1.5
  35.          pigment { color White }
  36.            }
  37.            }
  38.    object {
  39.       cylinder { <0, 8, 0> <0, 8.19, 0> 1.69 //Lip under bottle cap
  40.          pigment { color White }
  41.            }
  42.            }
  43.    object {
  44.       sphere { <0, 7.25, 0> 0.5 
  45.       scale <4, 1, 4>
  46.          pigment { color White }
  47.            }
  48.            }
  49.          object {
  50.             cylinder { <0, 5.75, 0> <0, 7.25, 0> 2
  51.             pigment { color White } 
  52.            }
  53.            }
  54.          //Label
  55.          object {
  56.             cylinder { <0, 2.5, 0> <0, 5.75, 0> 2
  57.                pigment { red 0.2 green 0.2 blue 0.8 } 
  58.                pigment {
  59.                   image_map { gif "label.gif" once map_type 2 interpolate 0 }
  60.                   scale <1, 3.3, 1> rotate <0, -85, 0>  translate <0.5, 2.5, 0>}
  61.                }
  62.                }
  63.           object {
  64.              cylinder { <0, 0.5, 0> <0, 2.5, 0> 2
  65.              pigment { color White }
  66.              }
  67.              }
  68.           object {
  69.             torus { 1.5, 0.5 }
  70.             pigment { color White }
  71.             }
  72.             }
  73.          }
  74.  
  75.  
  76.  
  77.  
  78.  
  79.