One Hundred Hellos - Blog

Moire 3D - Dome - POV Ray - 14 November 2005

Using Dome to generate Geodesic domes for POV-Ray





./dome_4_80/dome -f15 -sb dome15.pov
mv dome.inc dome15.inc
dome15.inc:#declare DomePoints15=
dome15.inc:#declare DomeEdges15=


./dome_4_80/dome -f18 -sb dome18.pov
mv dome.inc dome18.inc
dome18.inc:#declare DomePoints18=
dome18.inc:#declare DomeEdges18=

combine dome15.pov and dome18.pov
into dome-both.pov (add missing semi-colons)
#include"dome15.inc"
#include"dome18.inc"
...
#declare Dome15=
union{
object {DomeEdges15 no_shadow texture{EdgeTexture}}
object {DomePoints15 no_shadow texture{PointTexture}}
}

#declare Dome18=
union{
object {DomeEdges18 no_shadow texture{EdgeTexture}}
object {DomePoints18 no_shadow texture{PointTexture18}}
}

object{Dome15 rotate <22,> scale <1.1,1.1,1.1> }
object{Dome18 rotate <0,> }

72 degrees should do it for bucky balls

Animation options

Kn.n = set frame clock to n.n
KFIn = set initial frame number to n
KFFn = set final frame number to n
KIn.n = set initial clock value to n.n
KFn.n = set final clock value to n.n
SFn|0.n = start subset at frame n | start at n percent in sequence
EFn|0.n = end subset at frame n | end at n percent in sequence
KC = calculate clock value for cyclic animation

./povray-3.6/povray +Lpovray-3.6/include/ +Idome-both.pov +Odome-both.png +FN +W400 +H300 +V -D +X +KFI0 +KFF72 +KI0.0 +KF72.0 +KC


-------------------
Moire Version

cat dome15.inc| sed -e "s/0.015}$/0.025}/g" | sed -e "s/0.01 }$/0.02 }/g" > moire15.inc
cat dome18.inc| sed -e "s/0.015}$/0.025}/g" | sed -e "s/0.01 }$/0.02 }/g" > moire18.inc
./povray-3.6/povray +Lpovray-3.6/include/ +Imoire.pov +Omoire.png +FN +W800 +H600 +V +D +X
display moire.png


again with 30-36
./dome_4_80/dome -f30 -sb caca.pov
./dome_4_80/dome -f36 -sb caca.pov

./povray-3.6/povray +Lpovray-3.6/include/ +Idome3036.pov +Odome3036f.png +FN +W400 +H300 +V +D +X +KFI1 +KFF72 +KI0.0 +KF72.0 +KC

again with 24-27
./dome_4_80/dome -f24 -sb caca.pov
./dome_4_80/dome -f27 -sb caca.pov

./povray-3.6/povray +Lpovray-3.6/include/ +Idome2427.pov +Odome2427f.png +FN +W400 +H300 +V +D +X +KFI1 +KFF72 +KI0.0 +KF72.0 +KC

and 24-30
./povray-3.6/povray +Lpovray-3.6/include/ +Idome2430.pov +Odome2430f.png +FN +W400 +H300 +V +D +X +KFI1 +KFF144 +KI0.0 +KF72.0 +KC

and 27-36
./povray-3.6/povray +Lpovray-3.6/include/ +Idome2736.pov +Odome2736f.png +FN +W400 +H300 +V +D +X +KFI1 +KFF144 +KI0.0 +KF72.0 +KC