Go Back
camera {
location <10*sin((3.14159265/180.0)*clock/4.0),
0,
-10*cos((3.14159265/180.0)*clock/4.0)>
look_at <0, 0, 0>
}
light_source {
<10, 10, -10>
color rgbf <2.0, 2.0, 2.0>
}
plane {
y, -1
pigment {
checker
color rgbf <0.0, 0.0, 0.5, 0.0>
color rgbf <0.5, 0.3, 0.0, 0.0>
}
scale 3
}
union {
// Head
sphere {
<0, 0, 0>, 0.7
pigment {
color rgbf <1.0, 0.75, 0.5, 0.0>
}
finish {
phong 0.5
reflection 0.0
}
translate <0.0,2.0,0.0>
}
// Eyes + Nose
union {
sphere {
<0,0,0>, 0.05
pigment {
color rgbf <0.0, 0.0, 1.0, 0.0>
}
finish {
phong 1.0
reflection 0.0
}
translate <-0.15, 2.0+0.15, -0.66708>
}
sphere {
<0,0,0>, 0.05
pigment {
color rgbf <0.0, 0.0, 1.0, 0.0>
}
finish {
phong 1.0
reflection 0.0
}
translate <0.15, 2.0+0.15, -0.66708>
}
sphere {
<0,0,0>, 0.3
pigment {
color rgbf <1.0, 0.75, 0.5, 0.0>
}
finish {
phong 0.7
reflection 0.0
}
scale <0.25, 0.25, 1.0>
translate <0, 1.9, -0.7>
}
}
// Body
sphere {
<0, 0, 0>, 2
pigment {
checker
color rgbf <0.6, 0.6, 0.8>
color rgbf <0.8, 0.6, 0.5>
}
finish {
phong 0.5
reflection 0.1
}
scale <0.2, 1.0, 0.2>
}
// Arms and bat
union {
// Arms
torus {
1, 0.125
pigment {
color rgbf <0.0, 0.0, 0.50, 0.0>
}
finish {
phong 1.0
reflection 0.5
}
rotate <-10.0, 0.0, 0.0>
}
// Bat
union {
cone {
<0,2.5,0>, 0.2
<0,0,0>, 0
pigment {
color rgbf <0.5, 0.4, 0.3>
}
}
sphere {
<0,0,0>, 0.1
pigment {
color rgbf <0.5, 0.4, 0.3>
}
translate <0.0, -0.5, 0.0>
}
translate <0.0, -0.02, 0.0>
rotate <0.0, 0.0, 92.25-1.025*abs(90-clock)>
translate <-1.0, 0.0, 0.0>
}
translate <-0.9375, 0.0, 0.0>
rotate <0.0, -1*clock, 0.0>
translate <0.0, abs(0.5-clock/180.0), 0.0>
}
}
// Ball
sphere {
<0.5+abs(3.0 - clock/30.0), 0.0, -3.5>, 0.25
pigment {
color rgbf <1.0,1.0,1.0,0.5>
}
finish {
phong 0.5
reflection 0.1
refraction 1.0
ior 1.5
}
}
// Legs
union {
// A leg
intersection {
torus { 2.5, 0.5 }
difference {
torus { 2.5, 0.125 }
union {
sphere {<5.0, 0.0, 0.0>, 5}
sphere {<0.0, 0.0, 5.0>, 5}
}
pigment {
color rgbf <1.0, 1.0, 1.0, 0.0>
}
finish {
phong 0.5
reflection 0.0
}
}
pigment {
color rgbf <1.0, 1.0, 1.0, 0.0>
}
finish {
phong 0.5
reflection 0.0
}
scale 0.5
rotate <90, 0, 0>
translate <-0.1, -2.5, 0>
}
// Another leg
intersection {
torus { 2.5, 0.5 }
difference {
torus { 2.5, 0.125 }
union {
sphere {<5.0, 0.0, 0.0>, 5}
sphere {<0.0, 0.0, 5.0>, 5}
}
pigment {
color rgbf <1.0, 1.0, 1.0, 0.0>
}
finish {
phong 0.5
reflection 0.0
}
}
pigment {
color rgbf <1.0, 1.0, 1.0, 0.0>
}
finish {
phong 0.5
reflection 0.0
}
scale 0.5
rotate <90, 180, 0>
translate <-0.1, -2.5, 0>
}
rotate <0, 30, 0>
}
// Home plate
union {
box {
<-1,-0.1,-1>, <1,0.1,1>
rotate <90,0,0>
translate<0,2.5,0>
}
box {
<-1,-0.1,-1>, <1,0.1,1>
rotate <90,0,45>
translate <0,2,0>
scale <0.707106798,0.707106798,1.0>
}
pigment {
color rgbf <1.0, 1.0, 1.0, 0.0>
}
scale <0.8, 0.5, 0.8>
rotate <0,0,90>
rotate <90,0,0>
translate <1.0,-2.5,-2.5>
}