mardi 9 juin 2009

Boule


Pour faire une boule, il suffit de frotter deux corps en rotation. (?)

Catadioptre


Une pile de cubes chromés formant un 'catadioptre'...

dimanche 7 juin 2009

Coin de cube avec POV-Ray


La boule rouge est placée derrière la caméra, le ciel est bleu, le sol est sable; on tourne autour d'un cube chromé dont on a retiré un 'coin de cube'... On remarquera que la boule (caméra) restent bien au centre quand elle se trouve dans le coin de cube.

#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