home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / mappr2.pov < prev    next >
Text File  |  1993-09-27  |  1KB  |  63 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // PovRay sample image mapper data file 
  4. // by Alexander Enzmann
  5. // NOTE: Requires "test.gif"
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9.  
  10. #declare Bi = 2.0
  11.  
  12. #declare Texture2 = /* Cylindrical image map */
  13. texture {pigment{image_map {gif "test.gif" map_type 2 once interpolate Bi } } }
  14.  
  15. #declare Texture5 = /* Torus image map */
  16. texture {pigment{image_map {gif "test.gif" map_type 5 interpolate Bi } } }
  17.  
  18. cylinder { <0,0,0>, y, 1
  19.    open
  20.    texture { Texture2 }
  21.    translate <0, -0.5, 0>
  22.    scale <7, 14, 7> 
  23.    rotate <40, -60, 0>
  24.    translate <-12, 15, 20>
  25. }
  26.  
  27. object { Hyperboloid_Y
  28.    translate 1*y scale <1, 0.5, 1>
  29.    texture { Texture2 }
  30.    scale <1, 2, 1> translate <0, -1, 0>
  31.    clipped_by {box{<-2,-1,-2>,<2,1,2>} } bounded_by{clipped_by}
  32.    scale <5, 7, 5> 
  33.    rotate <-40, -90, 0>
  34.    translate <-12, -15, 20>
  35. }
  36.  
  37. /* Torus having major radius = 6.4, minor radius = 3.5 */
  38.  
  39. torus { 6.4, 3.5
  40.    texture { Texture5 }
  41.    rotate -90*y
  42.    rotate -20*x
  43.    translate <12, 15, 20>
  44. }
  45.  
  46. object { Paraboloid_Y
  47.    texture { Texture2 }
  48.    clipped_by{box{<-2,0,-2>,<2,1,2>} } bounded_by{clipped_by}
  49.    translate <0, -0.5, 0>
  50.    scale <8, 16, 8>
  51.    rotate <-40, 0, 0>
  52.    translate <12, -15, 20>
  53. }
  54.  
  55. camera {
  56.    location  <0, 0, -90>
  57.    direction <0, 0,   1>
  58.    up        <0, 0.5, 0>
  59.    right     <0.6666, 0,  0>
  60. }
  61.  
  62. light_source {<0, 300, -200> colour White}
  63.