// Last edited on 2003-04-12 22:28:52 by stolfi
// MC930 - POV-Ray, Exercicio 6
// Fabio de Souza Azevedo - RA 952215
// Aula de 10/04/2003


#include "colors.inc"

background { color rgb < 0.07, 0.30, 0.30 > }

// Para ver meio em perspectiva
/*
camera {
  location  < -1.5, 0.8, -3.3 >
  look_at   < 0.0,-0.35, 0.00 >
  right <1.2, 0, 0>
  up <0, 0.4, 0>
}
*/  

// Para ver de frente
camera {
  location  < 0.0, 10.0, -60.0 > // z = -25.0
  look_at   < 0.0, 2.0, 0.0 >
  right <1.2, 0, 0>
  up <0, 0.4, 0>
}


light_source {
  5*< 20.00, 20.00, -15.00 > // x = 0, y =10
  color rgb 1.3*< 1.00, 1.00, 1.00 >
} 

#declare plano =
  plane { <0,1,0>, 0 pigment { rgb < 0.75, 0.75, 1.0 > } }

#declare anel1 =
  torus {
     10.0, 1.0
     pigment { Yellow }
  }

#declare anel2 =
  torus {
     20.0, 2.0
     pigment { Yellow }
  }

#declare texto1 =
  text {
    ttf "arial.ttf"
    "O"
    0.2, 0
    pigment { Red } // Estava faltando -- stolfi
  }

#declare texto2 =
  text {
    ttf "arial.ttf"
    "Sr."
    0.2, 0
    pigment { Red } // Estava faltando -- stolfi
  }

#declare texto3 =
  text {
    ttf "arial.ttf"
    "dos"
    0.2, 0
    pigment { Red } // Estava faltando -- stolfi
  }

#declare texto4 =
  text {
    ttf "arial.ttf"
    "Toroides"
    0.2, 0
    pigment { Red } // Estava faltando -- stolfi
  }

// Aqui está a cena, finalmente:

object { plano }

object { anel1
         translate <-50+30*clock, 0, +100-50*clock>
}
object { texto1
         scale <4, 4, 4>
         translate <-50+30*clock, 0, +100-50*clock>
}

object { anel1
         translate <+50-30*clock, 0, +100-50*clock>
}
object { texto3
         scale <4, 4, 4>
         translate <+50-30*clock, 0, +100-50*clock>
}

object { anel1
         translate <           0, 0, +100-50*clock>
}
object { texto3
         scale <4, 4, 4>
         translate <           0, 0, +100-50*clock>
}

object { anel2
         translate <           0, 0, -50+50*clock>
}
object { texto4
         scale <4, 4, 4>
         translate <          -20, 0, -50+50*clock>
}