Billede:Pyramid of 35 spheres animation original.gif

Fra Wikipedia, den frie encyklopædi

Pyramid_of_35_spheres_animation_original.gif (2020KB, MIME type: image/gif)


Denne fil er fra Wikimedia Commons, en samling af åbent indhold som Wikimedia Foundation er vært for.
Beskrivelsen fra siden med beskrivelse af billedet er vist nedenfor.



GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

العربية | Deutsch | English | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Slovenčina | Svenska | עברית +/-


[edit] POV-Ray source

 // Pyramid of 35 spheres POV-Ray source by Blotwell
 // Uploaded to Wikimedia Commons
 // and released under GPL
 //
 // Render frames 0 through 23 (24 is identical to 0)
 
 #max_trace_level 15
 #declare sq = 1/sqrt(2);
 #declare vx = <2,0,0>;
 #declare vy = <1,0,sqrt(3)>;
 #declare vz = <1,sqrt(8/3),sqrt(1/3)>;
 
 #declare my_sphere_1 =
 sphere { <0,1,0>,1 pigment { color rgbf <.9,1,.9,.9> }
       finish { refraction 1 ior 1.2 } };
 #declare my_sphere_2 =
 sphere { <0,1,0>+vz,1 pigment { color rgbf <.9,.9,1,.9> }
       finish { refraction 1 ior 1.2 } };
 #declare my_sphere_3 =
 sphere { <0,1,0>+vz+vz,1 pigment { color rgbf <1,1,.8,.9> }
       finish { refraction 1 ior 1.2 } };
 #declare my_sphere_4 =
 sphere { <0,1,0>+vz+vz+vz,1 pigment { color rgbf <1,.9,.9,.9> }
       finish { refraction 1 ior 1.2 } };
 #declare my_sphere_5 =
 sphere { <0,1,0>+vz+vz+vz+vz,1 pigment { color rgbf <.9,.9,.9,.9> }
       finish { refraction 1 ior 1.2 } };
 
 camera {
   location <-15,11,-12>
   right <2/3,0,0>
   up <0,1/2,0>
   look_at 4*vz-<0,3,0>
 }
 
 light_source {vx*10+<0,10,0> color rgb <1,1,1>}
 light_source {vy*10+<0,10,0> color rgb <1,1,1>}
 
 plane { <0,1,0>, 0
        finish {ambient 0.2}
        pigment { marble turbulence 1
                color_map { [0.0 rgb 1] [0.9 rgb 0.9] [1.0 rgb <0.6,0.5,0.5>] }
                scale 6 } }
 
 plane { <0,-1,0>, -12
        finish {ambient 1}
        pigment { color rgb <.6,.6,.8> } }
 
 union {
 object { my_sphere_1 translate 0 }
 object { my_sphere_1 translate vx }
 object { my_sphere_1 translate vy }
 object { my_sphere_1 translate vx+vx }
 object { my_sphere_1 translate vx+vy }
 object { my_sphere_1 translate vy+vy }
 object { my_sphere_1 translate vx+vx+vx }
 object { my_sphere_1 translate vx+vx+vy }
 object { my_sphere_1 translate vx+vy+vy }
 object { my_sphere_1 translate vy+vy+vy }
 object { my_sphere_1 translate vx+vx+vx+vx }
 object { my_sphere_1 translate vx+vx+vx+vy }
 object { my_sphere_1 translate vx+vx+vy+vy }
 object { my_sphere_1 translate vx+vy+vy+vy }
 object { my_sphere_1 translate vy+vy+vy+vy }
 
 object { my_sphere_2 translate 0 }
 object { my_sphere_2 translate vx }
 object { my_sphere_2 translate vy }
 object { my_sphere_2 translate vx+vx }
 object { my_sphere_2 translate vx+vy }
 object { my_sphere_2 translate vy+vy }
 object { my_sphere_2 translate vx+vx+vx }
 object { my_sphere_2 translate vx+vx+vy }
 object { my_sphere_2 translate vx+vy+vy }
 object { my_sphere_2 translate vy+vy+vy }
 
 object { my_sphere_3 translate 0 }
 object { my_sphere_3 translate vx }
 object { my_sphere_3 translate vy }
 object { my_sphere_3 translate vx+vx }
 object { my_sphere_3 translate vx+vy }
 object { my_sphere_3 translate vy+vy }
 
 object { my_sphere_4 translate 0 }
 object { my_sphere_4 translate vx }
 object { my_sphere_4 translate vy }
 
 object { my_sphere_5 translate 0 }
 translate -4*vz
 rotate <0,clock*5,0>
 translate 4*vz
 }
GNU head This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

De følgende sider henviser til dette billede: