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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Tom Price
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.     location <0.0 0.0 -100.0>
  11.     up <0.0 1.0 0.0>
  12.     right <1.3333 0.0 0.0>
  13.     look_at <0.0 11.547005 0.0>
  14. end_view_point
  15.  
  16. {The Kaleidoscope Tube}
  17. composite
  18. composite
  19.   object
  20.     union
  21.       triangle <0.0  1.1547005 -100.0>
  22.            <0.0  1.1547005  0.0>
  23.            <-1.0 -0.5773502 0.0>
  24.       inverse end_triangle
  25.  
  26.       triangle <0.0  1.1547005 -100.0>
  27.            <-1.0 -0.5773502 -100.0>
  28.            <-1.0 -0.5773502 0.0>
  29.           inverse end_triangle
  30.     end_union
  31.     texture 0.05
  32.            ambient 0.1
  33.        diffuse 0.7
  34.        colour White
  35.        reflection 1.0
  36.       end_texture
  37.   end_object
  38.  
  39.   object
  40.     union
  41.       triangle <-0.001  1.1547005 -100.0>
  42.            <-0.001  1.1547005  0.0>
  43.            <1.0 -0.5773502  0.0>
  44.       inverse end_triangle
  45.  
  46.  
  47.       triangle <-0.001  1.1547005 -100.0>
  48.            <1.0 -0.5773502 -100.0>
  49.            <1.0 -0.5773502 0.0>
  50.       inverse end_triangle
  51.     end_union
  52.     texture 0.05
  53.        ambient 0.1
  54.        diffuse 0.7
  55.        colour White
  56.        reflection 1.0
  57.         end_texture
  58.   end_object
  59.  
  60.   object
  61.     union
  62.       triangle
  63.           <-1.0 -0.5773502 -100.0>
  64.           <1.0  -0.5773502 -100.0>
  65.           <-1.0 -0.5773502 0.0>
  66.       end_triangle
  67.  
  68.       triangle
  69.           <1.0  -0.5773502 -100.0>
  70.           <-1.0 -0.5773502 0.0>
  71.           <1.0 -0.5773502 0.0>
  72.     end_triangle
  73.     end_union
  74.     texture
  75.        0.05
  76.        Bright_Blue_Sky
  77.        ambient 0.5
  78.        diffuse 0.5
  79.     end_texture
  80.     colour Cyan
  81.   end_object
  82.  
  83.   object
  84.     triangle <-1.0 -0.5773502 0.0>
  85.          <1.0 -0.5773502 0.0>
  86.              <0.0  1.1547005  0.0>
  87.     end_triangle
  88.         colour red 0.5 green 0.5 blue 0.5 alpha 0.3
  89.         texture
  90.            0.1
  91.        ambient 0.3
  92.        diffuse 0.7
  93.        colour red 0.5 green 0.5 blue 0.5 alpha 0.3
  94.     end_texture
  95.   end_object
  96.  
  97.   scale <10.0 10.0 1.0>
  98. end_composite
  99.  
  100.   object
  101.     sphere <-3.5 -3.0 -45.0> 3.0 end_sphere
  102.     texture
  103.        0.05
  104.        ambient 0.1
  105.        diffuse 0.7
  106.        colour CRed alpha 0.8
  107.        reflection 0.2 
  108.        refraction 1.0
  109.        ior 1.2
  110.        brilliance 3.0
  111.         end_texture
  112.   end_object
  113.  
  114.   object
  115.     sphere <4.0 -3.0 -40.0> 2.5 end_sphere
  116.     texture
  117.            0.05
  118.        ambient 0.1
  119.        diffuse 0.7
  120.        colour CGreen alpha 0.8
  121.        reflection 0.2 
  122.        refraction 1.0
  123.        ior 1.2
  124.        brilliance 3.0
  125.         end_texture
  126.   end_object
  127.  
  128.   object
  129.     sphere <0.0 4.0 -30.0> 2.0 end_sphere
  130.     texture
  131.            0.05
  132.        ambient 0.1
  133.        diffuse 0.7
  134.        colour Magenta alpha 0.8
  135.        reflection 0.2 
  136.        refraction 1.0
  137.        ior 1.2
  138.        brilliance 3.0
  139.         end_texture
  140.   end_object
  141.  
  142.   object
  143.     sphere <0.0 -2.0 -20.0> 2.0 end_sphere
  144.     texture
  145.        0.05
  146.        ambient 0.1
  147.        diffuse 0.7
  148.        colour Yellow alpha 0.8
  149.        reflection 0.2 
  150.        refraction 1.0
  151.        ior 1.2
  152.        brilliance 3.0
  153.         end_texture
  154.   end_object
  155.  
  156.   object
  157.     sphere <2.0 -4.0 -70.0> 2.0 end_sphere
  158.     texture 0.05
  159.        ambient 0.1
  160.        diffuse 0.7
  161.        colour Cyan alpha 0.8
  162.        reflection 0.2 
  163.        refraction 1.0
  164.        ior 1.2
  165.         brilliance 3.0
  166.         end_texture
  167.   end_object
  168.  
  169.   object
  170.     triangle
  171.         <-1.0 -8.0 -50.0>
  172.         < 0.0  1.0 -50.0>
  173.         < 2.0 -3.0 -50.0>
  174.     end_triangle
  175.  
  176.     texture
  177.            0.05
  178.        ambient 0.3
  179.        diffuse 0.7
  180.        colour red 0.8 green 0.5 blue 0.3 alpha 0.9
  181.         end_texture
  182.   end_object
  183.         
  184.   object
  185.     triangle
  186.         <1.0 7.0 -5.0>
  187.         < -4.0  -1.0 -5.0>
  188.         < 3.0 1.0 -5.0>
  189.     end_triangle
  190.  
  191.         texture
  192.        0.05
  193.        ambient 0.3
  194.        diffuse 0.7
  195.        colour red 0.2 green 0.9 blue 0.5 alpha 0.9
  196.         end_texture
  197.   end_object
  198.         
  199.   object
  200.     triangle
  201.         <-8.0 -5.0 -80.0>
  202.         < -4.0  -1.0 -80.0>
  203.         < 0.0 -4.0 -80.0>
  204.     end_triangle
  205.     texture
  206.            0.05
  207.        ambient 0.3
  208.        diffuse 0.7
  209.        colour red 0.7 green 0.7 blue 0.3 alpha 1.0
  210.        refraction 0.9
  211.        ior 1.0
  212.         end_texture
  213.   end_object
  214.  
  215.   object
  216.     union
  217.        triangle
  218.         <0.0 0.0 0.0>
  219.         <0.0 1.0 0.0>
  220.         <1.0 0.0 0.0>
  221.        end_triangle
  222.  
  223.        triangle
  224.         <1.0 0.0 0.0>
  225.         <0.0 1.0 0.0>
  226.         <1.0 1.0 0.0>
  227.        end_triangle
  228.     end_union
  229.        rotate <20.0 45.0 -10.0>
  230.        translate <-0.6 -0.5 -65.0>
  231.        scale <10.0 10.0 1.0>
  232.        texture
  233.            ambient 0.5
  234.            diffuse 0.3  
  235. // Subsitute your own image here instead of sunset.ham
  236. //    imagemap <1.0 -1.0 0.0> iff "sunset.ham" once 
  237. //    interpolate 2.0
  238. //    end_map
  239.         rotate <20.0 45.0 -10.0>
  240.         translate <-0.6 -0.5 -65.0>
  241.         scale <9.0 9.0 1.0>
  242.         refraction 0.25
  243.         ior 1.0
  244.        end_texture
  245.    end_object
  246.  
  247. end_composite
  248.  
  249. object
  250.     sphere <0.0 0.0 0.0> 20.0 end_sphere
  251.     translate <0.0 0.0 20.0>
  252.     texture
  253.        ambient 1.0
  254.        diffuse 0.0
  255.        colour White
  256.     end_texture
  257.     colour White
  258.     light_source
  259. end_object
  260.