Modifié le 15 Novembre 2009 à 19 h 59

PtDodecEtVerre.pov
//options de compilation: +W640 +H640 +A +P +FN
# include "shapes.inc"
#include "colors.inc"
#include "glass.inc"
#include "stones.inc"
#include "metals.inc"

global_settings { charset utf8
                  ambient_light rgb 1.5
                  max_trace_level 12
}
background{color rgb<0.82745098039215,0.82745098039215,0.82745098039215>}
camera{ orthographic
        location 18547.2369909914*<-0.74874093978825,0.39754404616699,0.53042033939336>
        sky <0.46848074541594,-0.24873987942565,0.84773478373712>
        up 13*y
        right 13*x
        look_at <0,0,0>
        translate <-1.17120186353986,0.62184969856414,-2.11933695934281>}
light_source { 18547.2369909914*<-0.65466413325203,-0.01681622434518,0.75573281471174> color rgb<1,1,1>}
#declare labelbase = 0.65;
#declare fonte = "timrom.ttf";
#declare objet1 =
mesh2{ vertex_vectors{ 32,
<-2.10292444847653,2.89442719099992,1.78885438199983>,
<0,1.3665631459995,1.78885438199983>,
<-1.29967878493163,0.42229123600033,1.78885438199983>,
<2.10292444847653,2.89442719099992,1.78885438199983>,
<1.29967878493163,0.42229123600033,1.78885438199983>,
<3.40260323340816,-1.10557280900008,1.78885438199983>,
<0.80324566354491,-1.10557280900008,1.78885438199983>,
<0,-3.57770876399966,1.78885438199983>,
<-0.8032456635449,-1.10557280900008,1.78885438199983>,
<-3.40260323340816,-1.10557280900008,1.78885438199983>,
<0,0,4>,
<2.10292444847653,0.68328157299974,0.42229123600033>,
<3.40260323340816,1.10557280900008,-1.78885438199983>,
<2.10292444847653,-0.68328157299974,-0.42229123600033>,
<2.10292444847653,-2.89442719099992,-1.78885438199983>,
<1.29967878493163,-1.78885438199983,0.42229123600033>,
<-1.29967878493163,-1.78885438199983,0.42229123600033>,
<-2.10292444847653,-2.89442719099992,-1.78885438199983>,
<-2.10292444847653,-0.68328157299974,-0.42229123600033>,
<-3.40260323340816,1.10557280900008,-1.78885438199983>,
<-2.10292444847654,0.68328157299974,0.42229123600033>,
<0,-1.3665631459995,-1.78885438199983>,
<-1.29967878493163,-0.42229123600033,-1.78885438199983>,
<1.29967878493163,-0.42229123600033,-1.78885438199983>,
<0.80324566354491,1.10557280900008,-1.78885438199983>,
<0,3.57770876399966,-1.78885438199983>,
<-0.8032456635449,1.10557280900008,-1.78885438199983>,
<-1.29967878493163,1.78885438199983,-0.42229123600033>,
<0,0,-4>,
<1.29967878493163,1.78885438199983,-0.42229123600033>,
<0,2.21114561800017,0.42229123600033>,
<0,-2.21114561800017,-0.42229123600033>
                       }
        face_indices{ 96,
<0,1,2>, <1,3,4>, <4,5,6>, <6,7,8>, <8,9,2>, <2,1,4>, 
<2,4,6>, <2,6,8>, <10,4,6>, <4,3,11>, <11,12,13>, <13,14,15>, <15,7,6>, 
<6,4,11>, <6,11,13>, <6,13,15>, <10,8,2>, <8,7,16>, <16,17,18>, <18,19,20>, 
<20,0,2>, <2,8,16>, <2,16,18>, <2,18,20>, <17,21,22>, <21,14,23>, <23,12,24>, 
<24,25,26>, <26,19,22>, <22,21,23>, <22,23,24>, <22,24,26>, <0,20,27>, <20,9,18>, 
<18,17,22>, <22,28,26>, <26,25,27>, <27,20,18>, <27,18,22>, <27,22,26>, <3,29,11>, 
<29,25,24>, <24,28,23>, <23,14,13>, <13,5,11>, <11,29,24>, <11,24,23>, <11,23,13>, 
<0,27,30>, <27,19,26>, <26,28,24>, <24,12,29>, <29,3,30>, <30,27,26>, <30,26,24>, 
<30,24,29>, <10,1,4>, <1,0,30>, <30,25,29>, <29,12,11>, <11,5,4>, <4,1,30>, 
<4,30,29>, <4,29,11>, <10,2,1>, <2,9,20>, <20,19,27>, <27,25,30>, <30,3,1>, 
<1,2,20>, <1,20,27>, <1,27,30>, <5,13,15>, <13,12,23>, <23,28,21>, <21,17,31>, 
<31,7,15>, <15,13,23>, <15,23,21>, <15,21,31>, <7,31,16>, <31,14,21>, <21,28,22>, 
<22,19,18>, <18,9,16>, <16,31,21>, <16,21,22>, <16,22,18>, <10,6,8>, <6,5,15>, 
<15,14,31>, <31,17,16>, <16,9,8>, <8,6,15>, <8,15,31>, <8,31,16>
                       }
}
#declare objet2 =
cylinder { <0,0,-4>
   <0,0,-6> 1
     }
#declare objet3 =
mesh2{ vertex_vectors{ 8,
<3,-3,-8>,
<3,3,-8>,
<-3,3,-8>,
<-3,-3,-8>,
<3,-3,-6>,
<-3,-3,-6>,
<-3,3,-6>,
<3,3,-6>
                       }
        face_indices{ 12,
<0,1,2>, <0,2,3>, <4,5,6>, <4,6,7>, <0,3,5>, <0,5,4>, 
<7,6,2>, <7,2,1>, <0,4,7>, <0,7,1>, <5,3,2>, <5,2,6>
                       }
}
#declare labelsize =0.8695652173913;
#declare objet4 =
  text{ ttf fonte
"Petit Dodecaedre Etoile"
0.1 0 scale labelbase*labelsize
translate<-Text_Space(fonte,"Petit Dodecaedre Etoile",labelbase, 0)/2,
-Text_Space(fonte,"x",labelbase, 0)/2,
0>
matrix<0,1,0,
0,0,1,
-1,0,0,
-3,0.35,-7>
}
// rendu des objets
object{ objet1 texture{ //verre
    pigment{ color rgbf <0.9,0.97,0.9,1>}
    finish{
    ambient 0.1
    diffuse 0.1
    reflection {0.25, 1}
    specular 0.6
    roughness 0.0001
    phong 1
    phong_size 400
    }
        }
    interior{ior 1.5 fade_distance 1 fade_power 2}
 }
object{ objet2 texture{T_Copper_2E} }//métal
object{ objet3 texture{T_Stone8} } //pierre
object{ objet4
        pigment{ color rgb<0,0,0>}
        finish{ ambient 0.35  diffuse 0.8 phong 0.5}
         no_shadow     }