home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / mappr2.pov < prev    next >
Text File  |  1992-07-21  |  2KB  |  95 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // POV-Ray sample image mapper scene file 
  4. // by Alexander Enzmann
  5. // NOTE: Requires "test.gif"
  6.  
  7.  
  8. #include "shapes.inc"
  9. #include "colors.inc"
  10. #include "textures.inc"
  11.  
  12. #declare Bi = 2.0
  13.  
  14. #declare Texture2 = /* Cylindrical image map */
  15. texture { image_map { 2 gif "test.gif" once interpolate Bi } }
  16.  
  17. #declare Texture5 = /* Torus image map */
  18. texture { image_map { 5 <6.325 1 0> gif "test.gif" interpolate Bi } }
  19.  
  20. camera {
  21.    location  <0.0  0.0 -90.0>
  22.    direction <0.0  0.0  1.0>
  23.    up        <0.0  0.5  0.0>
  24.    right     <0.6666 0.0  0.0>
  25. }
  26.  
  27. object {
  28.    light_source { <0 30 -200>
  29.       colour White
  30.    }
  31. }
  32.  
  33.  
  34. object {
  35.    quadric { Cylinder_Y }
  36.    clipped_by { box {<-2 0 -2> <2 1 2> } }
  37.    texture {
  38.       Texture2
  39.    }
  40.    translate <0 -0.5 0>
  41.    scale <1 2 1>
  42.    scale <7 7 7>
  43.    rotate <40 -60 0>
  44.    translate <-15 15 20>
  45.    color Red
  46. }
  47.  
  48.  
  49. object {
  50.    quadric { Hyperboloid_Y
  51.       translate <0 1 0> scale <1 0.5 1>
  52.       texture { Texture2 }
  53.       scale <1 2 1> translate <0 -1 0>
  54.    }
  55.    clipped_by { box {<-2 0 -2> <2 1 2> } }
  56.    scale <5 7 5>
  57.    rotate <-40 -90 0>
  58.    translate <-15 -15 20>
  59.    color Red
  60. }
  61.  
  62.  
  63. /* Torus having major radius sqrt(40) = 6.3246, minor radius sqrt(12) = 3.4641 */
  64. object {
  65.    quartic {
  66.       < 1.0   0.0   0.0    0.0     2.0   0.0   0.0   2.0   0.0 -104.0
  67.       0.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  68.       1.0   0.0   0.0    2.0     0.0  56.0   0.0   0.0   0.0    0.0
  69.       1.0   0.0 -104.0   0.0   784.0 >
  70.    }
  71.    bounded_by {
  72.       sphere { <0 0 0> 10 }
  73.    }
  74.    texture { Glossy color White }
  75.    texture { Texture5 }
  76.    rotate <0 -90 0>
  77.    rotate <-20 0 0>
  78.    translate <15 15 20>
  79.    color Red
  80. }
  81.  
  82. object {
  83.    quadric { Paraboloid_Y }
  84.    texture {
  85.       Texture2
  86.    }
  87.    clipped_by { box {<-2 0 -2> <2 1 2> } }
  88.    translate <0 -0.5 0>
  89.    scale <1 2 1>
  90.    scale <8 8 8>
  91.    rotate <-40 0 0>
  92.    translate <15 -15 20>
  93.    color Red
  94. }
  95.