Advertisement
Guest User

Untitled

a guest
Mar 24th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "colors.inc"
  2. #include "stones.inc"
  3. // several different gold colors, finishes and textures
  4. #include "golds.inc"
  5.  
  6. // various metal colors, finishes and textures
  7. // brass, copper, chrome, silver
  8. #include "metals.inc"
  9. // various glass finishes, colors and interiors
  10. //
  11. #include "glass.inc"
  12. // some standard finishes
  13. #include "finish.inc"
  14. // The standard collection of textures
  15.  
  16. #include "textures.inc"
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. background { color Cyan }
  24. camera {
  25.     location <0, 7, 7>
  26.     look_at  <0, 1, 1>  
  27.    angle 35
  28.   }
  29. #declare DeltaSize=0.05;
  30. #declare Delta=0.5;
  31. #declare Ctr=-2.5;
  32. #declare Ctra=1.5;
  33. #declare Abc = seed(5464564);
  34. #while (Ctra>-3.5)
  35. #while (Ctr<2.5)
  36.    
  37. difference{
  38. box{    
  39.         #declare DeltaSize = 0.07*rand(Abc);
  40.         <Ctr+0,0,0+Ctra>,
  41.         <Ctr+Delta,0.2,Delta+Ctra>
  42.         pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0>   }
  43.        
  44.               material{   //-----------------------------------------------------------
  45.         texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.099> }
  46.                    
  47.                   finish { diffuse 0.1 reflection 0.2  
  48.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  49.                 } // end of texture -------------------------------------------
  50.         interior{ ior 1.5 caustics 0.5
  51.                 } // end of interior ------------------------------------------
  52.       } // end of material ----------------------------------------------------        
  53.  
  54.        
  55.        
  56.        
  57.        
  58.        
  59.        
  60.        
  61.        
  62.        
  63.        
  64.      }
  65.  
  66.  
  67. box{
  68.         <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
  69.         <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
  70.         pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0>   }
  71.         finish{
  72.                 ambient<.95,.95,.95>
  73.                 diffuse .5
  74.                 reflection{0.1, 0.8}
  75.                 }
  76.        
  77.        
  78.         interior{
  79.                 ior 1.5
  80.                 caustics 1
  81.                 }
  82.         }
  83.         }
  84. difference{
  85. box{
  86.         <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
  87.         <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
  88.         //pigment {color rgb <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc)>   }
  89.        
  90.        
  91.               material{   //-----------------------------------------------------------
  92.         texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
  93.                   normal { bumps 0.5 scale 0.05 }
  94.                   finish { diffuse 0.1 reflection 0.2  
  95.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  96.                 } // end of texture -------------------------------------------
  97.         interior{ ior 1.5 caustics 0.5
  98.                 } // end of interior ------------------------------------------
  99.       } // end of material ----------------------------------------------------
  100.  
  101.        
  102.        
  103.         }
  104. box{
  105.         <Ctr+0+DeltaSize,0.01,Ctra+0+DeltaSize>,
  106.         <Ctr+Delta-DeltaSize,0.19,Ctra+Delta-DeltaSize>
  107.         pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0.95>   }
  108.        
  109.        
  110.        
  111.        
  112.        
  113.        
  114.         }
  115.         }
  116.                
  117.        
  118. #declare Ctr=Ctr+Delta;
  119. #end
  120. #declare Ctr=-2.5;
  121. #declare Ctra=Ctra-Delta;
  122. #end
  123. light_source { <0, 15, 10> color White}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement