// Last edited on 2003-04-13 23:18:13 by stolfi
// Senhor dos TorĂ³ides
// 10/04/2003 Thiago Barroso Fonte Boa

#include "colors.inc"
#include "stones.inc"

#declare ctr = <  0, 0, 0 >;
#declare cam = <  0, 0, -2.8 >;

camera {
  location  ctr + 1.1*cam
  right     1.2*x 
  up        0.9*y
  look_at   ctr
} 

light_source {
  ctr + 0.5*(vrotate(cam, 20*y) + 0.2*y)
  color rgb 1.2*<1,1,1>
}

light_source {
  ctr + 0.7*(vrotate(cam, -50*y) + 0.4*y)
  color rgb 0.8*<1,1,1>
}


#declare logo=
text{
  ttf "arial.ttf"
  "Lord of Rings"
  0.15, 0
  texture{pigment {color rgb <1,0,0>} finish {phong 1}}   //BrightGold}}
}

#declare anel=
difference{
  torus{
    0.5,0.1
    rotate <90,0,0>
  }
  sphere{
    <0,0,0>,0.5
  }
  texture{pigment {color BrightGold}} finish {phong 1}
}

#if (clock < 0.7)
  #declare rotacao = (3*360)*(clock/0.7);
  #declare posicao = -5 + 5*(clock/0.7);
#else
  #declare rotacao = 0;
  #declare posicao = 0;
  #declare plogo = 2 - 2.2 * ((clock-0.7)/(0.3));
  object{logo translate<-2.7,plogo,-0.6> scale<0.5,0.5,0.5>}
#end

object{anel translate<0,0,0> rotate<0,rotacao,0>}
plane{y,-0.6 pigment{color rgb <0,0,1>}}