Advertisement
Guest User

Untitled

a guest
Mar 24th, 2016
91
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 White }
  24. camera {
  25.     location <0, 7, 7>
  26.     look_at  <0, 1, 1>  
  27.    angle 35
  28.   }
  29. #declare DS=0;
  30. #declare Delta=0.5;
  31. #declare DeltaSize=Delta/60;
  32.  
  33. #declare Ctr=-2.5;
  34. #declare Ctra=1.5;
  35. #declare Abc = seed(5464564);
  36. #while (Ctra>-3.5)
  37. #while (Ctr<2.5)
  38.  
  39.  
  40. ///sor Surface of Revolution
  41. sor{
  42.   10,
  43.   <0.000, 0.000>
  44.   <0.289, 0.000>
  45.   <0.274, 0.026>
  46.   <0.072, 0.100>
  47.   <0.070, 0.123>
  48.   <0.070, 0.436>
  49.   <0.175, 0.536>
  50.   <0.240, 0.672>
  51.   <0.327, 1.000>
  52.   <0.290, 1.000>
  53.   open
  54.     //  sturm  // optional!
  55.     material{   //-----------------------------------------------------------
  56.         texture { pigment{ rgbf <0.98, 0.92, 0.80, 0.7> }
  57.                   finish { diffuse 0.1 reflection{ 0.25 metallic 0.20}  
  58.                            specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  59.                 } // end of texture -------------------------------------------
  60.         interior{ ior 1.5 caustics 0.5
  61.                 } // end of interior ------------------------------------------
  62.       } // end of material ----------------------------------------------------
  63.    scale 1.0  rotate<90,30,0> translate<0,0.65,0>
  64.  } // end of sor ---------------------------------
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.    
  75. difference{
  76. box{    
  77.         //#declare DeltaSize = 0.07*rand(Abc);
  78.         <Ctr+0,0,0+Ctra>,
  79.         <Ctr+Delta,0.2,Delta+Ctra>
  80.         //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0>   }
  81.        
  82.               material{   //-----------------------------------------------------------
  83.         texture { pigment{ rgbf <0.98, 0.98, 0.98, 0.6> }
  84.                    
  85.                   finish { diffuse 0.1 reflection 0.52  
  86.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  87.                 } // end of texture -------------------------------------------
  88.         interior{ ior 1.95 caustics .5
  89.                 } // end of interior ------------------------------------------
  90.       } // end of material ----------------------------------------------------        
  91.  
  92.        
  93.        
  94.        
  95.        
  96.        
  97.        
  98.        
  99.        
  100.        
  101.        
  102.      }
  103.  
  104.  
  105. box{
  106.         <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
  107.         <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
  108.         //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0>   }
  109.         material{   //-----------------------------------------------------------
  110.         texture { pigment{ rgbf <0.98, 0.98, 0.98, 0.6> }
  111.                    
  112.                   finish { diffuse 0.1 reflection 0.2  
  113.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  114.                 } // end of texture -------------------------------------------
  115.         interior{ ior 1.5 caustics 0.5
  116.                 } // end of interior ------------------------------------------
  117.       } // end of material ----------------------------------------------------
  118.         }
  119.         }
  120. difference{
  121. box{
  122.         <Ctr+0+DeltaSize,0.01,Ctra+0+DeltaSize>,
  123.         <Ctr+Delta-DeltaSize,0.19,Ctra+Delta-DeltaSize>
  124.         //pigment {color rgb <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc)>   }
  125.        
  126.        
  127.               material{   //-----------------------------------------------------------
  128.         texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
  129.                   normal { bumps 0.1 scale 0.07 }
  130.                   finish { diffuse 0.1 reflection 0.2  
  131.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  132.                 } // end of texture -------------------------------------------
  133.         interior{ ior 1.5 caustics 0.5
  134.                 } // end of interior ------------------------------------------
  135.       } // end of material ----------------------------------------------------
  136.  
  137.        
  138.        
  139.         }
  140. box{
  141.         <Ctr+0+DeltaSize-DS,0.02,Ctra+0+DeltaSize-DS>,
  142.         <Ctr+Delta-DeltaSize+DS,0.18,Ctra+Delta-DeltaSize+DS>
  143.         //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0.95>   }
  144.        
  145.         material{   //-----------------------------------------------------------
  146.         texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
  147.                   normal { bumps 0.5 scale 0.05 }
  148.                   finish { diffuse 0.1 reflection 0.2  
  149.                           specular 0.8 roughness 0.0003 phong 1 phong_size 400}
  150.                 } // end of texture -------------------------------------------
  151.         interior{ ior 1.5 caustics 0.5
  152.                 } // end of interior ------------------------------------------
  153.       } // end of material ----------------------------------------------------
  154.        
  155.        
  156.        
  157.        
  158.        
  159.         }
  160.         }
  161.                
  162.        
  163. #declare Ctr=Ctr+Delta;
  164. #end
  165. #declare Ctr=-2.5;
  166. #declare Ctra=Ctra-Delta;
  167. #end
  168. light_source { <0, 1, 0> color White}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement