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