home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / ADVANCED / DIFFRACT.POV < prev    next >
Text File  |  1999-10-30  |  3KB  |  178 lines

  1. #include "colors.inc"
  2. #include "woods.inc"
  3.  
  4. #declare IOR = 1.45;
  5. #declare Fade_Distance = 2;
  6. #declare Fade_Power = 3;
  7.  
  8. #declare Texture01 = texture {
  9.    pigment {
  10.      color rgbf <1, 1, 1, 1>
  11.    }
  12.    finish {
  13.       diffuse 0.000001
  14.       metallic on
  15.       ambient 0
  16.       reflection 0.05
  17.       specular 1
  18.       roughness 0.001
  19.       irid {
  20.          0.65             // contribution to overall color
  21.          thickness 0.8    // affects frequency, or "busy-ness"
  22.          turbulence 0.1   // Variance in film thickness
  23.       }
  24.    }
  25. }
  26.  
  27. #declare Interior01 =
  28.    interior {
  29.       fade_distance Fade_Distance
  30.       fade_power Fade_Power
  31.       ior IOR
  32.       caustics 1.0
  33.    }      
  34.  
  35.  
  36. #declare Texture02a = texture {
  37.     T_Wood1
  38.     scale 2
  39.     rotate x*90
  40.     translate x*5
  41.     finish {
  42.         ambient 0.4
  43.     }
  44. }
  45. #declare Texture02 = texture {
  46.    pigment {
  47.      color rgb<0.800, 0.800, 0.800>
  48.    }
  49.    finish {
  50.      brilliance 0.5
  51.      metallic on
  52.      diffuse 0.200
  53.      ambient 0.000
  54.      specular 0.300
  55.      roughness 0.02
  56.    }
  57.  
  58. }
  59.  
  60. #declare Texture03 = texture { Texture01 }
  61.  
  62. camera {  //  Camera StdCam
  63.   angle 90
  64.   location  <3.50, -15.00, 3.00>
  65.   direction <0.0,     0.0,  1.6542>
  66.   sky       <0.0,     0.0,  1.0>  // Use right handed-system!
  67.   up        <0.0,     0.0,  1.0>  // Where Z is up
  68.   right     <1.3333,  0.0,  0.0>
  69.   look_at   <0.000, 0.000, -2.7500>
  70. }
  71.  
  72. #declare Intensity = 20;
  73. #declare L_Fade_Distance = 20;
  74. #declare L_Fade_Power = 2;
  75. #declare ALL = 8;
  76. #declare ALW = 8;
  77. #declare ALR = 6;
  78.  
  79. #declare Area_Light=off;
  80.  
  81. light_source {   // Light1
  82.   <-0.2, 100, 65>
  83.   color Cyan * Intensity
  84. #if(Area_Light)
  85.   area_light x*ALL, z*ALW, ALR, ALR
  86.   adaptive 1
  87.   jitter
  88. #end
  89.   fade_distance L_Fade_Distance
  90.   fade_power L_Fade_Power
  91. }
  92.  
  93. light_source {   // Light1
  94.   <0,  95, 65>
  95.   color Yellow * Intensity
  96. #if(Area_Light)
  97.   area_light x*ALL, z*ALW, ALR, ALR
  98.   adaptive 1
  99.   jitter
  100. #end
  101.   fade_distance L_Fade_Distance
  102.   fade_power L_Fade_Power
  103. }
  104.  
  105. light_source {   // Light1
  106.   <0.2,  90, 65>
  107.   color Magenta * Intensity
  108. #if(Area_Light)
  109.   area_light x*ALL, z*ALW, ALR, ALR
  110.   adaptive 1
  111. #end
  112.   jitter
  113.   fade_distance L_Fade_Distance
  114.   fade_power L_Fade_Power
  115. }
  116.  
  117. sky_sphere {
  118.     pigment {
  119.         gradient y
  120.         color_map {
  121.            [0.0 color Gray10]
  122.            [1.0 color Gray30]
  123.         }
  124.     }
  125. }
  126.  
  127. union {
  128.   cylinder {   <-3,0,0>, <3,0,0>, 0.3 }
  129.   torus { 1.0, 0.25
  130.     rotate z*90
  131.     }
  132.   texture {Texture01}
  133.   interior {Interior01}
  134.   translate  <0.0, -4.0, -0.5>
  135. }
  136.  
  137. box { <-1, -1, -1>, <1, 1, 1>
  138.   texture {Texture01}
  139.   interior {Interior01}
  140.  
  141.   scale <3.0, 0.5, 0.5>
  142.   translate  -1.75*z
  143.   rotate x*45
  144.   translate  -1.5*y
  145. }
  146.  
  147. sphere { <0,0,0>,1
  148.   texture {Texture03}
  149.   interior {Interior01}
  150.   translate <3, 3, -1>
  151. }
  152. sphere { <0,0,0>,1
  153.   texture {Texture03}
  154.   interior {Interior01}
  155.  
  156.   translate  <0,3.0, -0.5>
  157. }
  158. sphere { <0,0,0>,1
  159.   texture {Texture03}
  160.   interior {Interior01}
  161.   translate  <-3.0, 3.0, -1>
  162. }
  163. cone { 0, 1, -2*z, 0
  164.   texture {Texture03}
  165.   interior {Interior01}
  166.   translate  <-4.0, 0.3, 0>
  167. }
  168. cone { 0, 1, -2*z, 0
  169.   texture {Texture03}
  170.   interior {Interior01}
  171.   translate  <4.0, 0.3, 0>
  172. }
  173.  
  174. plane { z, -2
  175.     hollow on
  176.     pigment { Gray60 }
  177. }
  178.