// Last edited on 2003-11-26 05:43:06 by stolfi global_settings { assumed_gamma 1.0 } #include "colors.inc" #include "textures.inc" // camera ------------------------------------------------------------------ #declare camdir = <0.0 , 1.5 ,-3.75>; #declare ctr = <0.0 , 1.5 , 0.0>; #declare Camera_0 = camera { location ctr + 1.25*camdir // right x*image_width/image_height up 1.00*y look_at ctr } camera{Camera_0} // sun --------------------------------------------------------------------- light_source{<1500,2500,-2500> color White} // sky --------------------------------------------------------------------- plane{<0,0.9,0>,1 hollow texture{ pigment{ bozo turbulence 0.76 color_map { [0.5 rgb <0.20, 0.20, 1.0>] [0.6 rgb <1,1,1>] [1.0 rgb <0.5,0.5,0.5>]} } finish {ambient 1 diffuse 0} } scale 10000} // fog --------------------------------------------------------------------- fog{fog_type 2 distance 50 color White fog_offset 0.1 fog_alt 2.0 turbulence 0.8} // ground ------------------------------------------------------------------ #declare Wheel_Radius = 1.00; plane { <0,1,0>, 0 texture{ pigment{color rgb<0.35,0.65,0.0>} normal {bumps 0.75 scale 0.015} finish {ambient 0.1 diffuse 0.8} } // end of texture } // end of plane //-------------------------------------------------------------------------- //---------------------------- objects in scene ---------------------------- //-------------------------------------------------------------------------- #declare Rad_Tex = texture{pigment{color Black} finish {ambient 0.15 diffuse 0.85 phong 1}} #declare Speichen_Tex = texture{pigment{color Black } finish {ambient 0.15 diffuse 0.85 phong 1}} #declare Rad = union { // radius = 1.00 difference{ cylinder {<0,0,-0.05>,<0,0,0.35>,Wheel_Radius} cylinder {<0,0,-0.06>,<0,0,0.36>,Wheel_Radius - 0.10} texture{Rad_Tex}} cylinder { <0, 0,-0.06> <0, 0, 0.06>,1.0 texture{Rad_Tex}} cone { <0, 0,-0.12>,0.08, <0, 0, 0.00>,0.15 texture{Speichen_Tex}} cone { <0, 0, 0.00>,0.15, <0, 0, 0.12>,0.08 texture{Speichen_Tex}} cylinder { <0, 0,-0.14> <0, 0, 0.14>,0.2 texture{Rad_Tex}} cylinder { <-0.75, 0, 0>, <0.75, 0, 0>,0.1 scale Wheel_Radius rotate 0*z texture {Silver_Metal} } cylinder { <-0.75, 0, 0>, <0.75, 0, 0>,0.1 scale Wheel_Radius rotate 45*z texture {Silver_Metal} } cylinder { <-0.75, 0, 0>, <0.75, 0, 0>,0.1 scale Wheel_Radius rotate 90*z texture {Silver_Metal} } cylinder { <-0.75, 0, 0>, <0.75, 0, 0>,0.1 scale Wheel_Radius rotate 135*z texture {Silver_Metal} } } #declare fome = text { ttf "arial.ttf" "FomE" 0.35 , 0 texture{ pigment{ checker color rgb <0,1,0>, color rgb <0.8.8,0> } finish { ambient 0.1 diffuse 0.9 specular 0.2 roughness 0.1 } scale 0.13 } scale <1,1,1> * 1 translate <-1.30 ,2.7, 0.0 > rotate<0,-360*(clock+0.00),0> } #declare zero = text { ttf "arial.ttf" "ZerO" 0.35 , 0 texture{ pigment{ checker color rgb <0,0,0>, color rgb <1,1,1> } finish { ambient 0.1 diffuse 0.9 specular 0.2 roughness 0.1 } scale 0.13 } scale <1,1,1> * 1 translate <-1.30 ,1.5, 0 > rotate<0,360*(clock+0.00),0> } //--------------------------------------------------- object{ Rad rotate <0,0,-45*clock> rotate <0,30,0> translate <-0.4,0.9,1> scale <0.6, 0.6, 0.6 > } fome zero //---------------------------------------------------------- end -----------