home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / tictacto.pov < prev    next >
Encoding:
Text File  |  1993-05-23  |  7.9 KB  |  282 lines

  1. //Tic Tac Toe created by Catherine Dougherty--uploaded by Vic
  2. //This picture was created by another beginner! 
  3. //Boy, these days beginners seem to be getting more and more advanced quicker!
  4. //Special thanks to Moray.
  5.  
  6. #include "colors.inc"
  7. #include "textures.inc"
  8. #include "shapes.inc"
  9.  
  10.  
  11.  
  12. camera {  //  Camera look
  13.   location  <-0.845 60.692 -0.106>
  14.   direction <0.0  0.0  2.4880>
  15.   sky       <0.0  0.0  1.0>  // Use right handed-system!
  16.   up        <0.0  0.0  1.0>  // Where Z is up
  17.   right     <1.3333  0.0  0.0>
  18.   look_at   <0.000 0.000 0.000>
  19. }
  20.  
  21. // *******  L I G H T S *******
  22. object {   // Light source light1
  23.   light_source {
  24.     <10.502 -4.926 -3.253>
  25.     color  red 1.000 green 1.000 blue 1.000
  26.   }
  27. }
  28.  
  29. object {   // Light source light2
  30.   light_source {
  31.     <-2.416 10.781 3.903>
  32.     color  red 1.000 green 1.000 blue 1.000
  33.   }
  34. }
  35.  
  36.  
  37. // *******  T E X T U R E S  *******
  38. // ********  O B J E C T S *******
  39. #declare board = intersection {
  40.   box { UnitBox 
  41.     texture {
  42.    marble
  43.    turbulence 1.0
  44.    dents .5
  45.    wrinkles .3
  46.    colour_map {
  47.       [0.0 0.8  colour red 0.9 green 0.9 blue 0.9
  48.       colour red 0.5 green 0.5 blue 0.5]
  49.       [0.8 1 colour red 0.5 green 0.5 blue 0.5
  50.       colour red 0.2 green 0.2 blue 0.2]
  51.    }
  52. }
  53.   scale <11.501854 0.371757 11.408916>
  54.   rotate <0.593734 -0.000000 125.283516>
  55. }}
  56.  
  57. #declare pipe1 = intersection {
  58.   quadric { Cylinder_Z texture { Sapphire_Agate } }
  59.   plane { <0 0 -1> 0 texture { Sapphire_Agate } }
  60.   plane { <0 0 +1> 1 texture { Sapphire_Agate } }
  61.   scale <0.349442 0.557631 15.591072>
  62.   rotate <-0.000000 -0.000000 39.526413>
  63.   translate <-2.230483 4.460967 -7.342007>
  64. }
  65.  
  66. #declare pipe2 = intersection {
  67.   quadric { Cylinder_Z texture { Sapphire_Agate } }
  68.   plane { <0 0 -1> 0 texture { Sapphire_Agate } }
  69.   plane { <0 0 +1> 1 texture { Sapphire_Agate } }
  70.   scale <0.349442 0.557631 15.591072>
  71.   rotate <449.818420 1.388118 36.075455>
  72.   translate <-3.807478 6.826458 3.975247>
  73. }
  74.  
  75. #declare pipe3 = intersection {
  76.   quadric { Cylinder_Z texture { Sapphire_Agate } }
  77.   plane { <0 0 -1> 0 texture { Sapphire_Agate } }
  78.   plane { <0 0 +1> 1 texture { Sapphire_Agate } }
  79.   scale <0.349442 0.557631 15.591072>
  80.   rotate <-90.074425 -0.000000 35.292404>
  81.   translate <5.347228 -5.854846 -3.066914>
  82. }
  83.  
  84. #declare pipe4 = intersection {
  85.   quadric { Cylinder_Z texture { Sapphire_Agate } }
  86.   plane { <0 0 -1> 0 texture { Sapphire_Agate } }
  87.   plane { <0 0 +1> 1 texture { Sapphire_Agate } }
  88.   scale <0.349442 0.557631 15.591072>
  89.   rotate <-0.000000 -0.000000 39.526413>
  90.   translate <2.695167 -2.509294 -7.342007>
  91. }
  92.  
  93. #declare middleo = intersection {
  94.   quartic {
  95.            // Torus MinRadius=   0.500   MajRadius=   1.500 
  96.            < 1.000   0.000   0.000   0.000   2.000
  97.              0.000   0.000   2.000   0.000   -5.000
  98.              0.000   0.000   0.000   0.000   0.000
  99.              0.000   0.000   0.000   0.000   0.000
  100.              1.000   0.000   0.000   2.000   0.000
  101.              -5.000    0.000   0.000   0.000   0.000
  102.              1.000   0.000   4.000  0.000   4.000 >
  103.     texture { Gold_Texture }
  104.   }
  105.   rotate <-90.571899 -0.000000 -53.235806>
  106.   translate <0.836431 0.836431 0.464684>
  107. }
  108.  
  109. #declare middleo1 = intersection {
  110.   quartic {
  111.            // Torus MinRadius=   0.500   MajRadius=   1.500 
  112.            < 1.000   0.000   0.000   0.000   2.000
  113.              0.000   0.000   2.000   0.000   -5.000
  114.              0.000   0.000   0.000   0.000   0.000
  115.              0.000   0.000   0.000   0.000   0.000
  116.              1.000   0.000   0.000   2.000   0.000
  117.              -5.000    0.000   0.000   0.000   0.000
  118.              1.000   0.000   4.000  0.000   4.000 >
  119.     texture { Gold_Texture }
  120.   }
  121.   rotate <-90.571899 -0.000000 -53.235806>
  122.   translate <4.460967 -5.204461 7.156134>
  123. }
  124.  
  125. #declare middleo2 = intersection {
  126.   quartic {
  127.            // Torus MinRadius=   0.500   MajRadius=   1.500 
  128.            < 1.000   0.000   0.000   0.000   2.000
  129.              0.000   0.000   2.000   0.000   -5.000
  130.              0.000   0.000   0.000   0.000   0.000
  131.              0.000   0.000   0.000   0.000   0.000
  132.              1.000   0.000   0.000   2.000   0.000
  133.              -5.000    0.000   0.000   0.000   0.000
  134.              1.000   0.000   4.000  0.000   4.000 >
  135.     texture { Gold_Texture }
  136.   }
  137.   rotate <-90.571899 -0.000000 -53.235806>
  138.   translate <-3.717472 7.063197 -6.040892>
  139. }
  140.  
  141. #declare slash = intersection {
  142.   box { UnitBox 
  143.     texture { Bronze_Texture }
  144.   }
  145.   scale <0.233128 0.000010 12.376055>
  146.   rotate <19.125753 46.497490 -28.845638>
  147.   translate <1.153347 1.301115 0.465719>
  148. }
  149.  
  150. #declare x1a = intersection {
  151.   box { UnitBox 
  152.     texture { Silver_Texture }
  153.   }
  154.   scale <0.278820 0.464695 2.301115>
  155.   rotate <49.182423 -0.000000 -142.043961>
  156.   translate <5.390335 -4.646840 0.371747>
  157. }
  158.  
  159. #declare x1a1 = intersection {
  160.   box { UnitBox 
  161.     texture { Silver_Texture }
  162.   }
  163.   scale <0.278820 0.464695 2.301115>
  164.   rotate <132.232147 -0.000000 -142.043961>
  165.   translate <4.925651 -5.204461 0.278810>
  166. }
  167.  
  168. #declare x1a2 = intersection {
  169.   box { UnitBox 
  170.     texture { Silver_Texture }
  171.   }
  172.   scale <0.278820 0.464695 2.301115>
  173.   rotate <49.182423 -0.000000 -142.043961>
  174.   translate <-4.089219 7.249071 0.371747>
  175. }
  176.  
  177. #declare x1a3 = intersection {
  178.   box { UnitBox 
  179.     texture { Silver_Texture }
  180.   }
  181.   scale <0.278820 0.464695 2.301115>
  182.   rotate <132.232147 -0.000000 -142.043961>
  183.   translate <0.557621 0.743494 -6.133829>
  184. }
  185.  
  186. #declare x1a4 = intersection {
  187.   box { UnitBox 
  188.     texture { Silver_Texture }
  189.   }
  190.   scale <0.278820 0.464695 2.301115>
  191.   rotate <132.232147 -0.000000 -142.043961>
  192.   translate <-3.996283 7.063197 6.877323>
  193. }
  194.  
  195. #declare x1a5 = intersection {
  196.   box { UnitBox 
  197.     texture { Silver_Texture }
  198.   }
  199.   scale <0.278820 0.464695 2.301115>
  200.   rotate <49.182423 -0.000000 -142.043961>
  201.   translate <-4.089219 7.249071 6.877323>
  202. }
  203.  
  204. #declare x1a6 = intersection {
  205.   box { UnitBox 
  206.     texture { Silver_Texture }
  207.   }
  208.   scale <0.278820 0.464695 2.301115>
  209.   rotate <49.182423 -0.000000 -142.043961>
  210.   translate <0.743494 0.836431 -6.133829>
  211. }
  212.  
  213. #declare x1a7 = intersection {
  214.   box { UnitBox 
  215.     texture { Silver_Texture }
  216.   }
  217.   scale <0.278820 0.464695 2.301115>
  218.   rotate <132.232147 -0.000000 -142.043961>
  219.   translate <-3.996283 7.156134 0.278810>
  220. }
  221.  
  222. #declare middleo3 = intersection {
  223.   quartic {
  224.            // Torus MinRadius=   0.500   MajRadius=   1.500 
  225.            < 1.000   0.000   0.000   0.000   2.000
  226.              0.000   0.000   2.000   0.000   -5.000
  227.              0.000   0.000   0.000   0.000   0.000
  228.              0.000   0.000   0.000   0.000   0.000
  229.              1.000   0.000   0.000   2.000   0.000
  230.              -5.000    0.000   0.000   0.000   0.000
  231.              1.000   0.000   4.000  0.000   4.000 >
  232.     texture { Gold_Texture }
  233.   }
  234.   rotate <-90.571899 -0.000000 -53.235806>
  235.   translate <0.836431 0.836431 6.970260>
  236. }
  237.  
  238. #declare x1a8 = intersection {
  239.   box { UnitBox 
  240.     texture { Silver_Texture }
  241.   }
  242.   scale <0.278820 0.464695 2.301115>
  243.   rotate <132.232147 -0.000000 -142.043961>
  244.   translate <4.925651 -5.390335 -5.947955>
  245. }
  246.  
  247. #declare x1a9 = intersection {
  248.   box { UnitBox 
  249.     texture { Silver_Texture }
  250.   }
  251.   scale <0.278820 0.464695 2.301115>
  252.   rotate <49.182423 -0.000000 -142.043961>
  253.   translate <4.925651 -5.297398 -5.947955>
  254. }
  255.  
  256. object {
  257.   union {
  258.     intersection { board }
  259.     intersection { pipe1 }
  260.     intersection { pipe2 }
  261.     intersection { pipe3 }
  262.     intersection { pipe4 }
  263.     intersection { middleo }
  264.     intersection { middleo1 }
  265.     intersection { middleo2 }
  266.     intersection { slash }
  267.     intersection { x1a }
  268.     intersection { x1a1 }
  269.     intersection { x1a2 }
  270.     intersection { x1a3 }
  271.     intersection { x1a4 }
  272.     intersection { x1a5 }
  273.     intersection { x1a6 }
  274.     intersection { x1a7 }
  275.     intersection { middleo3 }
  276.     intersection { x1a8 }
  277.     intersection { x1a9 }
  278.   }
  279.   rotate <-0.000000 -0.000000 54.669041>
  280. }
  281.  
  282.