Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc"
- #include "stones.inc"
- // several different gold colors, finishes and textures
- #include "golds.inc"
- // various metal colors, finishes and textures
- // brass, copper, chrome, silver
- #include "metals.inc"
- // various glass finishes, colors and interiors
- //
- #include "glass.inc"
- // some standard finishes
- #include "finish.inc"
- // The standard collection of textures
- #include "textures.inc"
- background { color White }
- camera {
- location <0, 7, 7>
- look_at <0, 1, 1>
- angle 35
- }
- #declare DS=0;
- #declare Delta=0.5;
- #declare DeltaSize=Delta/60;
- #declare Ctr=-2.5;
- #declare Ctra=1.5;
- #declare Abc = seed(5464564);
- #while (Ctra>-3.5)
- #while (Ctr<2.5)
- ///sor Surface of Revolution
- sor{
- 10,
- <0.000, 0.000>
- <0.289, 0.000>
- <0.274, 0.026>
- <0.072, 0.100>
- <0.070, 0.123>
- <0.070, 0.436>
- <0.175, 0.536>
- <0.240, 0.672>
- <0.327, 1.000>
- <0.290, 1.000>
- open
- // sturm // optional!
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98, 0.92, 0.80, 0.7> }
- finish { diffuse 0.1 reflection{ 0.25 metallic 0.20}
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- scale 1.0 rotate<90,30,0> translate<0,0.65,0>
- } // end of sor ---------------------------------
- difference{
- box{
- //#declare DeltaSize = 0.07*rand(Abc);
- <Ctr+0,0,0+Ctra>,
- <Ctr+Delta,0.2,Delta+Ctra>
- //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98, 0.98, 0.98, 0.6> }
- finish { diffuse 0.1 reflection 0.52
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.95 caustics .5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- box{
- <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
- <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
- //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98, 0.98, 0.98, 0.6> }
- finish { diffuse 0.1 reflection 0.2
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- }
- difference{
- box{
- <Ctr+0+DeltaSize,0.01,Ctra+0+DeltaSize>,
- <Ctr+Delta-DeltaSize,0.19,Ctra+Delta-DeltaSize>
- //pigment {color rgb <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc)> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
- normal { bumps 0.1 scale 0.07 }
- finish { diffuse 0.1 reflection 0.2
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- box{
- <Ctr+0+DeltaSize-DS,0.02,Ctra+0+DeltaSize-DS>,
- <Ctr+Delta-DeltaSize+DS,0.18,Ctra+Delta-DeltaSize+DS>
- //pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0.95> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
- normal { bumps 0.5 scale 0.05 }
- finish { diffuse 0.1 reflection 0.2
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- }
- #declare Ctr=Ctr+Delta;
- #end
- #declare Ctr=-2.5;
- #declare Ctra=Ctra-Delta;
- #end
- light_source { <0, 1, 0> color White}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement