
Pour faire une boule, il suffit de frotter deux corps en rotation. (?)
Quelques bricolages sans prétention et des exemples très simples de programmation. Souvent les exemples de programmation sont (trop) compliqués... J'ai essayé, ici, de les réduire à l'essentiel. C'est parfois trop simple pour être 'comme il faut', mais cela devrait quand même être fonctionnel.
#include "textures.inc"
#include "colors.inc"
global_settings {
assumed_gamma 1.5
noise_generator 2
}
light_source {
<-10, 100, -10>, rgb <1, 1, 1>
}
light_source {
<30, 20, -80>, rgb <1, 1, 1>
}
background { color rgb <0.4, 0.4, 0.6> }
camera {
location <8, 4, -4>
look_at <0, 0, 0>
rotate <0, 0, 15>
rotate <0, -15+clock*90, 0>
}
sphere {
<32, 16, -16>, 1
pigment { color Red}
rotate <0, 0, 15>
rotate <0, -15+clock*90, 0>
}
#declare D = 0.00001; // just a little bit !
difference {
box {
// big cube
<0, 0, 0>, <3, 3, -3>
texture{Polished_Chrome
finish {reflection 0.9}}
}
box {
// creux
<2, 2, -2>, <3+D, 3+D, -3-D>
texture{Polished_Chrome
finish {reflection 0.9}}
}
}
plane{ <0,1,0>, 0
texture{
pigment {color rgb <0.85,0.6,0.4>}
} // end of texture
translate <0, -2, 0>
} // end of plane
; Persistence Of Vision raytracer version 3.5 CubeCorner.ini file.
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3
Input_File_Name=CubeCorner.pov
Initial_Frame=1
Final_Frame=30
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
povray -H200 -W200 CubeCorner.ini
convert -delay 50 -loop 0 -dispose Previous CubeCorner*.png CubeCornerMirror.gif