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

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