TP6 : Utilisation de POV-Ray, un ray-traceur open-source
#include "colors.inc" #include "golds.inc" #include "metals.inc" #include "woods.inc" #include "glass.inc" #include "stones.inc" #include "skies.inc" global_settings{ max_trace_level 10 } camera{ location <4,2,6> look_at <0,0,0> angle 40 } intersection{ plane{ y,-3 } cylinder{ <0,-10,0>,<0,10,0>,10 } texture{ T_Wood3 } } difference{ intersection{ box{-1,1} sphere{0,1.3} } union{ cylinder{<-2,0,0>,<2,0,0>,0.7} cylinder{<0,-2,0>,<0,2,0>,0.7} cylinder{<0,0,-2>,<0,0,2>,0.7} } texture{ T_Gold_1A } rotate <10,60,10> } light_source{ <3,4,5> color rgb <1,1,1> area_light x,z,10,10 } sky_sphere{S_Cloud2}
Dernière modification le 18/3/2010
Ce document a été traduit de LaTeX par HeVeA