home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / MAPPER.DAT < prev    next >
Encoding:
Text File  |  1991-09-06  |  3.5 KB  |  141 lines

  1. // Persistence of Vision Raytracer
  2. // PvRay sample image mapper data file 
  3. // by Alexander Enzmann 
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. #declare Clear = colour red 1.0 green 1.0 blue 1.0 alpha 1.0
  10. #declare Bi = 2.0
  11. #declare Texture0 = { Planar image map }
  12. texture imagemap 0 gif "rough.gif" once interpolate Bi end_map end_texture
  13. #declare Texture1 = { Spherical image map }
  14. texture imagemap 1 gif "rough.gif" interpolate Bi end_map end_texture
  15. //#declare Texture2 = { Cylindrical image map }
  16. //texture imagemap 2 gif "rough.gif" once interpolate Bi end_map end_texture
  17. //#declare Texture5 = { Torus image map }
  18. //texture imagemap 5 <6.325 1 0> gif "rough.gif" interpolate Bi end_map end_texture
  19.  
  20. {object
  21.    intersection
  22.       quadric Cylinder_Y
  23.          texture Texture2 end_texture
  24.       end_quadric
  25.       plane <0 1 0> 1
  26.          texture color Clear end_texture
  27.       end_plane
  28.       plane <0 -1 0> 0
  29.          texture color Clear end_texture
  30.       end_plane
  31.    end_intersection
  32.    translate <0 -0.5 0>
  33.    scale <1 2 1>
  34.    scale <7 7 7> 
  35.    rotate <40 -60 0>
  36.    translate <-25 15 20>
  37.    color CRed
  38. end_object}
  39.  
  40. object
  41.    quadric QSphere end_quadric
  42.    texture Texture1 end_texture
  43.    scale <10 10 10> 
  44.    rotate <0 -90 0>
  45.    translate <0 15 20>
  46.    color CRed
  47. end_object
  48.  
  49. object
  50.    plane <0 0 1> 0 end_plane
  51.    clipped_by
  52.       quadric Cylinder_Y translate <1 0 0> scale <0.5 1 0.5> end_quadric
  53.       quadric Cylinder_X translate <0 1 0> scale <1 0.5 0.5> end_quadric
  54.    end_clip
  55.    texture Texture0 end_texture
  56.    translate <-0.5 -0.5 0>
  57.    scale <2 2 2>
  58.    scale <10 10 10>
  59.    rotate <20 30 0>
  60.    translate <25 15 20>
  61.    color CRed
  62. end_object
  63.  
  64. {object
  65.    intersection
  66.       quadric Hyperboloid_Y
  67.          translate <0 1 0> scale <1 0.5 1>
  68.          texture Texture2 end_texture
  69.          scale <1 2 1> translate <0 -1 0>
  70.       end_quadric
  71.       plane <0 1 0> 1
  72.          texture color Clear end_texture
  73.       end_plane
  74.       plane <0 -1 0> 1
  75.          texture color Clear end_texture
  76.       end_plane
  77.    end_intersection
  78.    scale <5 7 5> 
  79.    rotate <-40 -90 0>
  80.    translate <-25 -15 20>
  81.    color CRed
  82. end_object
  83. }
  84. { Torus having major radius sqrt(40) = 6.3246, minor radius sqrt(12) = 3.4641 }
  85. {
  86. object
  87.    quartic
  88.    < 1.0   0.0   0.0    0.0     2.0   0.0   0.0   2.0   0.0 -104.0
  89.      0.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  90.      1.0   0.0   0.0    2.0     0.0  56.0   0.0   0.0   0.0    0.0
  91.      1.0   0.0 -104.0   0.0   784.0 >
  92.    end_quartic
  93.    bounded_by
  94.    sphere <0 0 0> 10 end_sphere
  95.    end_bound
  96.    texture Texture5 end_texture
  97.    rotate <0 -90 0>
  98.    rotate <-20 0 0>
  99.    translate <0 -15 20>
  100.    color CRed
  101. end_object
  102.  
  103. object
  104.    intersection
  105.       quadric Paraboloid_Y
  106.          texture Texture2 end_texture
  107.       end_quadric
  108.       plane <0 1 0> 1
  109.          texture color Clear end_texture
  110.       end_plane
  111.       plane <0 -1 0> 0
  112.          texture color Clear end_texture
  113.       end_plane
  114.    end_intersection
  115.    translate <0 -0.5 0>
  116.    scale <1 2 1>
  117.    scale <8 8 8> 
  118.    rotate <-40 0 0>
  119.    translate <25 -15 20>
  120.    color CRed
  121. end_object
  122. }
  123. view_point
  124.    location  <0.0  0.0 -90.0>
  125.    direction <0.0  0.0  1.0>
  126.    up        <0.0  0.5  0.0>
  127.    right     <0.6666 0.0  0.0>
  128. end_view_point
  129.  
  130. object
  131.    sphere <0.0 0.0 0.0> 1 end_sphere
  132.    translate <0 300 -200>
  133.    texture
  134.      colour White
  135.      ambient 1.0
  136.      diffuse 0.0
  137.    end_texture
  138.    light_source
  139.    colour White
  140. end_object
  141.