home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / dodec2.pov < prev    next >
Text File  |  1992-07-21  |  4KB  |  170 lines

  1. // Persistence of Vision Raytracer
  2. // Image by Dan Farmer.  Wood textures used here have been moved to
  3. // textures.inc (wooden1 is same as DMFWood1, etc.)
  4. // File creates a pentagram made up of dodecahedrons.
  5.  
  6. #include "shapes.inc"
  7. #include "shapes2.inc"
  8. #include "colors.inc"
  9.  
  10. #declare AnObject = object {
  11.    intersection {Dodecahedron }
  12.    bounded_by {
  13.       sphere{ <0 0 0> 1.5 }
  14.    }
  15.    translate <0 1.8 0>
  16.    rotate <72 0 0>
  17. }
  18.  
  19. #declare VeryDarkWood1 = color red 0.30 green 0.15 blue 0.09
  20. #declare DarkWood1 =  color red 0.60 green 0.30 blue 0.18
  21.  
  22. #declare Wooden1 = texture {
  23.    wood
  24.    turbulence 0.04
  25.    octaves 3
  26.    scale <0.05 .05 1>
  27.    colour_map {
  28.       [0.00 0.10 color DarkWood1 color DarkWood1]
  29.       [0.10 0.90 color DarkWood1 color VeryDarkWood1]
  30.       [0.90 1.01  color VeryDarkWood1  color VeryDarkWood1 ]
  31.    }
  32.    ambient 0.2
  33.    diffuse 0.8
  34.    rotate <0 90 0>
  35. }
  36.  
  37. #declare DarkWood2 = color red 0.52 green 0.37 blue 0.26
  38. #declare VeryDarkWood2  = color red 0.42 green 0.26 blue 0.15
  39. #declare Wooden2 = texture {
  40.    wood
  41.    turbulence 0.03
  42.    octaves 4
  43.    scale <0.05 .05 1>
  44.    colour_map {
  45.       [0.00 0.10 color DarkWood2 color DarkWood2]
  46.       [0.10 0.90 color DarkWood2 color VeryDarkWood2]
  47.       [0.90 1.01  color VeryDarkWood2  color VeryDarkWood2 ]
  48.    }
  49.    ambient 0.2
  50.    diffuse 0.8
  51.    rotate <0 90 0>
  52. }
  53.  
  54.  
  55. #declare DarkWood3  = colour red 0.4 green 0.133 blue 0.066
  56. #declare VeryDarkWood3  = colour red 0.2 green 0.065 blue 0.033
  57. #declare Wooden3 = texture {
  58.    wood
  59.    turbulence 0.05
  60.    octaves 2
  61.    scale <0.05 .05 1>
  62.    colour_map {
  63.       [0.00 0.10 color DarkWood3 color DarkWood3]
  64.       [0.10 0.90 color DarkWood3 color VeryDarkWood3]
  65.       [0.90 1.01  color VeryDarkWood3  color VeryDarkWood3 ]
  66.    }
  67.    ambient 0.2
  68.    diffuse 0.8
  69.    rotate <0 90 0>
  70. }
  71.  
  72. #declare DarkWood4 = colour red 0.888 green 0.600 blue 0.3
  73. #declare VeryDarkWood4  = colour red 0.6 green 0.4 blue 0.2
  74. #declare Wooden4 = texture {
  75.    wood
  76.    turbulence 0.04
  77.    octaves 3
  78.    scale <0.05 .05 1>
  79.    colour_map {
  80.       [0.00 0.10 color DarkWood4 color DarkWood4]
  81.       [0.10 0.90 color DarkWood4 color VeryDarkWood4]
  82.       [0.90 1.01  color VeryDarkWood4  color VeryDarkWood4 ]
  83.    }
  84.    ambient 0.2
  85.    diffuse 0.8
  86.    rotate <0 90 0>
  87. }
  88.  
  89. #declare DarkWood5  = colour red 0.3 green 0.1 blue 0.05
  90. #declare VeryDarkWood5  = colour red 0.25 green 0.07 blue 0.038
  91. #declare Wooden5 = texture {
  92.    wood
  93.    turbulence 0.05
  94.    octaves 6
  95.    scale <0.075 .075 1>
  96.    colour_map {
  97.       [0.00 0.10 color DarkWood5 color DarkWood5]
  98.       [0.10 0.90 color DarkWood5 color VeryDarkWood5]
  99.       [0.90 1.01  color VeryDarkWood5  color VeryDarkWood5 ]
  100.    }
  101.    ambient 0.2
  102.    diffuse 0.8
  103.    rotate <0 89 0>
  104. }
  105.  
  106.  
  107.  
  108. camera {
  109.    location <0.0  0.0  -10>
  110.    direction <0.0 0.0  1.0>
  111.    up  <0.0  1.0  0.0>
  112.    right <1.33333 0.0 0.0>
  113.    look_at <0 0 0>
  114. }
  115.  
  116. // Light source
  117. object { light_source { <5 5 -30>  color White }}
  118. object { light_source { <0 -10 -10>  color LightGray } no_shadow }
  119.  
  120.  
  121. // Counter-clockwise, from top
  122.  
  123. object { AnObject
  124.    texture {
  125.       Wooden1
  126.       specular 0.75
  127.       roughness 0.008
  128.       reflection 0.15
  129.    }
  130. }
  131. object { AnObject
  132.    texture {
  133.       Wooden2
  134.       specular 0.75
  135.       roughness 0.008
  136.       reflection 0.15
  137.    }
  138.    rotate <0 0 72>
  139. }
  140.  
  141. object { AnObject
  142.    texture {
  143.       Wooden4
  144.       specular 0.75
  145.       roughness 0.008
  146.       reflection 0.15
  147.    }
  148.    rotate <0 0 144>
  149. }
  150. object { AnObject
  151.    texture {
  152.       Wooden3
  153.       specular 0.75
  154.       roughness 0.008
  155.       reflection 0.15
  156.    }
  157.    rotate <0 0 216>
  158. }
  159. object { AnObject
  160.    texture {
  161.       Wooden5
  162.       specular 0.75
  163.       roughness 0.008
  164.       reflection 0.15
  165.    }
  166.    rotate <0 0 288>
  167. }
  168.  
  169. // end of file
  170.