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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Anon.
  4.  
  5. #include "colors.dat"
  6. #include "shapes.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.    location <0.0 10.0 -90.0>
  11.    direction <0.0 0.0  1.0>
  12.    up  <0.0 1.0 0.0>
  13.    right <1.0 0.0 0.0>
  14. end_view_point
  15.  
  16. {Top part of bowl}
  17. object
  18.     intersection
  19.        sphere <0.0 0.0 0.0> 20.0 end_sphere
  20.        sphere <0.0 0.0 0.0> 19.99 inverse end_sphere
  21.        plane <0.0 1.0 0.0> 15.0 rotate <-10.0 0.0 0.0> end_plane
  22.        plane <0.0 1.0 0.0> 10.0 rotate <-10.0 0.0 0.0> inverse end_plane
  23.     end_intersection
  24.     translate <-8.0 0.0 0.0>
  25.     texture
  26.        color LightGray alpha 0.7
  27.        ambient 0.3
  28.        diffuse 0.7
  29.        refraction 1.0
  30.        ior 1.5
  31.     end_texture
  32. end_object
  33.  
  34. {Bottom part of bowl}
  35. object
  36.    intersection
  37.        sphere <0.0 0.0 0.0> 20.0 end_sphere
  38.        sphere <0.0 0.0 0.0> 19.99 inverse end_sphere
  39.        plane <0.0 1.0 0.0> 10.0 rotate <-10.0 0.0 0.0> end_plane
  40.     end_intersection
  41.     translate <-8.0 0.0 0.0>
  42.     texture
  43.        ambient 0.3
  44.        diffuse 0.7
  45.        refraction 0.5
  46.     end_texture
  47. end_object
  48.  
  49. object
  50.     plane <0.0 1.0 0.0> -19.0 end_plane
  51.     texture
  52.        checker colour DarkSlateGrey colour IndianRed
  53.        scale <10.0 10.0 10.0>
  54.     end_texture
  55. end_object
  56.  
  57. object
  58.     plane <0.0 0.0 1.0> 30.0 end_plane
  59.     texture
  60.        colour red 0.329804 blue 0.204314 green 0.204314
  61.     end_texture
  62. end_object
  63.  
  64. object
  65.    sphere <0.0 0.0 0.0> 1.5 end_sphere
  66.    translate <-100.0  100.0  -130.0>
  67.    texture
  68.       colour red 1.0 green 1.0 blue 1.0
  69.       ambient 1.0
  70.       diffuse 0.0
  71.    end_texture
  72.    colour red 1.0 green 1.0 blue 1.0
  73.    light_source
  74. end_object
  75.  
  76.  
  77. {Picture}
  78. composite
  79.   object
  80.    intersection
  81.     plane <1.0 0.0 0.0> 1.0 end_plane
  82.     plane <1.0 0.0 0.0> -1.0 inverse end_plane
  83.     plane <0.0 1.0 0.0> 1.0 end_plane
  84.     plane <0.0 1.0 0.0> -1.0 inverse end_plane
  85.     plane <0.0 0.0 1.0> 1.0 end_plane
  86.     plane <0.0 0.0 1.0> -1.0 inverse end_plane
  87.    end_intersection
  88.     translate <1.0 1.0 1.0>
  89.     scale <20.0 15.0 1.0>
  90.     texture
  91.        color White
  92.        ambient 0.05
  93.        diffuse 0.9
  94.     end_texture
  95.   end_object
  96.  
  97. { The picture frame }
  98.   object
  99.    union
  100.     intersection
  101.     union
  102.       quadric Cylinder_Y scale <1.0 1.0 1.0> translate <41.0 0.0 0.0> end_quadric
  103.       quadric Cylinder_Y scale <1.0 1.0 1.0> translate <-1.0 0.0 0.0> end_quadric
  104.     end_union
  105.       plane <0.0 1.0 0.0> 31.0 end_plane
  106.           plane <0.0 1.0 0.0> -1.0 inverse end_plane
  107.     end_intersection
  108.     intersection
  109.     union
  110.         quadric Cylinder_X scale <1.0 1.0 1.0> translate <0.0 31.0 0.0> end_quadric
  111.       quadric Cylinder_X scale <1.0 1.0 1.0> translate <0.0 -1.0 0.0> end_quadric
  112.     end_union
  113.       plane <1.0 0.0 0.0> 41.0 end_plane
  114.       plane <1.0 0.0 0.0> -1.0 inverse end_plane
  115.     end_intersection
  116.       sphere <-1.0 -1.0 0.0> 1.0 end_sphere
  117.       sphere <-1.0 31.0 0.0> 1.0 end_sphere
  118.       sphere <41.0 -1.0 0.0> 1.0 end_sphere
  119.       sphere <41.0 31.0 0.0> 1.0 end_sphere
  120.    end_union
  121.    texture
  122.         Pine_Wood
  123.     ambient 0.3
  124.     diffuse 0.7
  125.    end_texture
  126.   end_object
  127.  
  128.     scale <1.5 1.5 1.5>
  129.     translate <20.0 20.0 29.0>
  130. end_composite
  131.