|
|
(explenation in general)
Init file for animation :
http://www.raf256.com/pov/iso_bound.ini.txt
mirror of this file :
http://www.raf256.com/pov/iso_bound.pov.txt
(if files will move, they will be somwhere on raf256.com/pov)
btw. am I posting messages here correctly, or should they be as .txt attachments ?
/*
Isosurface problem (bounding)
2:4 ratio
27.10.2002, last ver 0.01 27.10.2002 for 3.5win
1 unit = 1 m (39.37 inch)
*/
global_settings { assumed_gamma 2.0 max_trace_level 200 adc_bailout 1/64 }
camera {
location <0,11,-10>*1.5 look_at <0,1,1> angle 70
up y right x*2
}
light_source { <7,12,-10>*100 rgb 1 area_light x*10,y*10,5,5 orient circular adaptive
1 }
background { color rgb <.8,.8,1.0>*.3 }
plane { y,-20 pigment { checker rgb .8 rgb .9 scale 10 } }
// cointeiner size :
#local Clock = clock;
#local s = 2.0 + 4.0 * Clock;
#declare isos =
isosurface {
function { x*x + y*y - 1 }
contained_by { box { -s, +s } }
accuracy 0.001
max_gradient 4
pigment { rgb <1,.2,.2> }
finish { specular 1 roughness 0.03 reflection .5 }
}
object { isos translate -x*7 }
object { isos translate +x*7 }
// show cointainer :
union {
#local a=s+0.001;
#local r=0.08;
box { -a, +a
pigment { color rgbf <0.9,1.0,1.0, 0.8> }
finish { specular 1 roughness 0.02 }
}
cylinder { <-a,-a,-a> <+a,-a,-a> r } cylinder { <-a,-a,+a> <+a,-a,+a> r }
cylinder { <-a,-a,-a> <-a,-a,+a> r } cylinder { <+a,-a,-a> <+a,-a,+a> r }
cylinder { <-a,+a,-a> <+a,+a,-a> r } cylinder { <-a,+a,+a> <+a,+a,+a> r }
cylinder { <-a,+a,-a> <-a,+a,+a> r } cylinder { <+a,+a,-a> <+a,+a,+a> r }
cylinder { <-a,-a,-a> <-a,+a,-a> r } cylinder { <-a,-a,+a> <-a,+a,+a> r }
cylinder { <+a,-a,-a> <+a,+a,-a> r } cylinder { <+a,-a,+a> <+a,+a,+a> r }
sphere { <-a,-a,-a> r } sphere { <-a,-a,+a> r } sphere { <+a,-a,-a> r } sphere {
<+a,-a,+a> r }
sphere { <-a,+a,-a> r } sphere { <-a,+a,+a> r } sphere { <+a,+a,-a> r } sphere {
<+a,+a,+a> r }
pigment { color rgb <1,1,.2> }
finish { specular 1 roughness 0.02 }
translate +x*7
}
//The counter :
text {
ttf "timrom.ttf" concat("size=",str(s,3,3)) .1,0
translate -x*2
scale 5
translate <0,1,7>
pigment { rgb <.5,1.0,.5> }
finish { ambient .3 }
no_shadow
}
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
|