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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Tom Price
  4.  
  5.  
  6. #include "shapes.dat"
  7. #include "colors.dat"
  8. #include "textures.dat"
  9.  
  10. view_point
  11.         location <0.0 35.0 -150.0>
  12.         up <0.0 1.0 0.0>
  13.         right <1.3333 0.0 0.0>
  14.         look_at <0.0 0.0 0.0>
  15. end_view_point
  16.  
  17. {The floor}
  18. object
  19.    plane <0.0 1.0 0.0> -60.0 end_plane
  20.    texture 
  21.         0.05 
  22.         checker colour Brown colour LightGray
  23.         scale <40.0 40.0 40.0>
  24.         ambient 0.1
  25.         diffuse 0.7
  26.         reflection 0.4
  27.         phong 1.0
  28.         phongsize 20.0
  29.    end_texture
  30.    colour red 0.4 blue 0.4 green 0.4
  31. end_object
  32.  
  33. {The Sky}
  34. object
  35.    sphere <0.0 -40000.0 0.0> 50000.0 end_sphere
  36.    texture 
  37.         0.05 
  38.         Bright_Blue_Sky
  39.         scale <8000.0 3000.0 3000.0>
  40.         ambient 0.7
  41.         diffuse 0.0
  42.    end_texture
  43.    colour CBlue
  44. end_object
  45.  
  46. composite
  47.   object
  48.      intersection
  49.         sphere <0.0 0.0 0.0> 40.0 end_sphere
  50.         quadric Cylinder_Z scale <20.0 20.0 1.0> inverse end_quadric
  51.      end_intersection
  52.      texture
  53.         0.05
  54.         colour red 0.6 green 0.6 blue 0.0 
  55.         ambient 0.1
  56.         diffuse 0.7
  57.         reflection 0.7
  58.         brilliance 6.0
  59.         specular 0.5
  60.      end_texture
  61.   end_object
  62.  
  63.   composite
  64.      object
  65.         triangle
  66.            <-1.0 0.0 -0.5773502>
  67.            < 1.0 0.0 -0.5773502>
  68.            < 0.0 0.0  1.1547005>
  69.         end_triangle
  70.         texture
  71.            0.05
  72.            colour Gold
  73.            ambient 0.1
  74.            diffuse 0.7
  75.            reflection 0.4
  76.            brilliance 6.0
  77.         end_texture
  78.      end_object
  79.  
  80.      object
  81.         triangle
  82.            <-1.0 0.0 -0.5773502>
  83.            < 0.0 0.0  1.1547005>
  84.            < 0.0 1.6329931  0.0>
  85.         end_triangle
  86.         texture
  87.            0.05
  88.            colour Gold
  89.            ambient 0.1
  90.            diffuse 0.7
  91.            reflection 0.4
  92.            brilliance 6.0
  93.         end_texture
  94.      end_object
  95.  
  96.      object
  97.         triangle
  98.            < 1.0 0.0 -0.5773502>
  99.            < 0.0 0.0  1.1547005>
  100.            < 0.0 1.6329931  0.0>
  101.         end_triangle
  102.         texture
  103.            0.05
  104.            colour Gold
  105.            ambient 0.1
  106.            diffuse 0.7
  107.            reflection 0.4
  108.            brilliance 6.0
  109.         end_texture
  110.      end_object
  111.  
  112.      object
  113.         triangle
  114.            <-1.0 0.0 -0.5773502>
  115.            < 1.0 0.0 -0.5773502>
  116.            < 0.0 1.6329931  0.0>
  117.         end_triangle
  118.         texture
  119.            0.05
  120.            colour red 0.5 green 0.4 blue 0.0
  121.            ambient 0.4
  122.            diffuse 0.6
  123.            reflection 0.2
  124.            brilliance 6.0
  125.         end_texture
  126.      end_object
  127.  
  128.      translate <0.0 -0.4082886 0.0>
  129.      scale <15.0 15.0 15.0>
  130.      rotate <-45.0 -50.0 10.0>
  131.   end_composite
  132.  
  133.   object
  134.      intersection
  135.         quadric Cylinder_Y scale <7.0 1.0 7.0> end_quadric
  136.         plane <0.0 1.0 0.0> -20.0 end_plane
  137.      end_intersection
  138.      texture
  139.         0.05
  140.         Pine_Wood
  141.         scale <10.0 100.0 10.0> 
  142.         ambient 0.1
  143.         diffuse 0.7
  144.         reflection 0.5
  145.         specular 0.5
  146.      end_texture
  147.   end_object
  148.   translate <10.0 20.0 60.0>
  149. end_composite
  150.  
  151. composite
  152.   object
  153.      sphere <0.0 0.0 0.0> 20.0 end_sphere
  154.      texture
  155.          Glass
  156.         0.05
  157.      end_texture
  158.   end_object    
  159.  
  160.   object
  161.      intersection
  162.         quadric Cylinder_Y scale <3.0 1.0 3.0> end_quadric
  163.         plane <0.0 1.0 0.0> 0.0 end_plane
  164.      end_intersection
  165.      texture
  166.         0.05
  167.         Pine_Wood
  168.         scale <10.0 50.0 10.0>  
  169.         ambient 0.1
  170.         diffuse 0.7
  171.         reflection 0.5
  172.         specular 0.5
  173.         end_texture
  174.   end_object
  175.   translate <-40.0 15.0 -10.0>
  176. end_composite
  177.  
  178. composite
  179.   object
  180.      sphere <0.0 0.0 0.0> 15.0 end_sphere
  181.      texture
  182.         0.05
  183.         colour red 0.0 green 0.6 blue 0.3 
  184.         ambient 0.1
  185.         diffuse 0.5
  186.         reflection 0.5
  187.         brilliance 3.0
  188.         specular 0.1
  189.      end_texture
  190.   end_object
  191.  
  192.   object
  193.      intersection
  194.         quadric Cylinder_Y scale <3.0 1.0 3.0> end_quadric
  195.         plane <0.0 1.0 0.0> 0.0 end_plane
  196.      end_intersection
  197.      texture
  198.         0.05
  199.         Pine_Wood
  200.         scale <10.0 100.0 10.0> 
  201.         ambient 0.1
  202.         diffuse 0.7
  203.         reflection 0.5
  204.         specular 0.5
  205.         end_texture
  206.   end_object
  207.   translate <50.0 10.0 -30>
  208. end_composite
  209.  
  210. object
  211.     sphere <0.0 0.0 0.0> 20.0 end_sphere
  212.     translate <-100.0 100.0 -200.0>
  213.     texture
  214.       colour White
  215.       ambient 1.0
  216.       diffuse 0.0
  217.     end_texture
  218.     light_source
  219.     colour White
  220. end_object
  221.                 
  222.