#include "colors.inc"
#include "textures.inc"
//#include "fonts.inc"
#include "stones.inc"
#include "skies.inc" 


//background { SkyBlue }

/*light_source {
  < 10.00, 15.00, 10.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 
*/

background { color rgb<1.0, 1.0, 1.0>}

light_source {
  < 10.00, -7.00, 10.00 >
  color rgb < 1.00, 1.00, 1.00 >
}

plane { y, 500
  texture {
  pigment { SkyBlue }
    finish { ambient 1 diffuse 0}
  }
  texture {
    pigment {
      bozo
      turbulence .5
      color_map {
        [0 White]
        [1 White filter 1]
       }
     }
     finish { ambient 1 diffuse 0 }
     scale <1000, 250, 250>
     rotate <5, 45, 0>
  }
}



camera {
  location  < 0.00, -5.00, 5.00 >
  right     < -1.00, 0.00, 0.00 >
  up        <  0.00, 0.00, 0.90 >
  sky       <  0.00, 0.00, 1.00 >
  look_at   <  0.00, 0.00, 3.00 >
} 

plane { z,0
           texture{
             pigment { color rgb < 0.5, 0.5, 0.5 > } 
             normal { granite 0.3 }
          }
}

/*sky_sphere {
    pigment {
      gradient y
      color_map {
        [0.000 0.002 color Blue
                     color Blue]
        [0.002 0.200 color rgb <0.0, 0.1, 0.8>
                     color rgb <0.3, 0.2, 0.2>]
      }
      scale 2
      translate -1
    }
    pigment {
      bozo
      turbulence 0.65
      octaves 6
      omega 0.7
      lambda 2
      color_map {
          [0.0 0.1 color rgb <0.85, 0.85, 0.85>
                   color rgb <0.75, 0.75, 0.75>]
          [0.1 0.5 color rgb <0.75, 0.75, 0.75>
                   color rgbt <1, 1, 1, 1>]
          [0.5 1.0 color rgbt <1, 1, 1, 1>
                   color rgbt <1, 1, 1, 1>]
      }
      scale <0.2, 0.5, 0.2>
    }
    rotate -135*x
}
*/
 
#declare chao = 
union{
   
   box {  <-80, -3.5, -0.01>, <80, -3, 0.5 >  
          texture{ 
             pigment { color rgb < 0.9, 0.9, 0.9 > } 
             normal { granite 0.3 }
          }
       }   
   box {  <-80, -3, -0.01>, <80, 3, 0 > 
            
          texture{  
             pigment { color rgb < 0, 1, 0 > }  
             normal { dents .075 scale .075 }
          }
       }  
   box {  <-80, 3, -0.01>, <80, 3.5, 0.5 >  
          texture{ 
             pigment { color rgb < 0.9, 0.9, 0.9 > } 
             normal { granite 0.3 }
          }
       } 
}

#declare pilar =
union{
   box { <-0.6, -3, 0>, <0.6, 3, 0.01>
              pigment { color rgb < 0.9, 0.9, 0.9> }
       }
   box { <-1.2, -1.2, 0>, <1.2, 1.2, 0.01>
              pigment { color rgb < 0.9, 0.9, 0.9> }
       }
   box { <-0.5, -0.3, 0.01 >, <0.5, 0.3, 5.2 >
              pigment { color rgb < 0.8, 0.8, 1 > }
       } 
   box { <-0.5, 0.3, 1 >, <0.5, 0.301, 1.3 >
              pigment { color rgb < 1, 1, 1 > }
       }  
   box { <-0.3, 0.30, 2 >, <0.3, 0.32, 2.6 >
              pigment { color rgb < 0.5, 0.5, 0.5 > }
       }  
   box { <-0.3, 0.30, 3 >, <0.3, 0.32, 3.6 >
              pigment { color rgb < 0.5, 0.5, 0.5 > }
       }    
   text { ttf "timrom.ttf" "\"O OBJETIVO DA EDUCACAO ESTA" 0.01, 0
              pigment { color rgb < 1, 1, 1 >  }  
          scale <0.15, 0.15, 0.15>
          rotate x*90  
          rotate y*90 
          translate <0.3, -0.2995, 5>
   } 
   text { ttf "timrom.ttf" "EM INVENTAR E REINVENTAR" 0.01, 0
              pigment { color rgb < 1, 1, 1 >  }  
          scale <0.15, 0.15, 0.15>
          rotate x*90  
          rotate y*90 
          translate <0.1, -0.2995, 5>
   }
   text { ttf "timrom.ttf" "A CIVILIZACAO SEM BARBARIE\"" 0.01, 0
              pigment { color rgb < 1, 1, 1 >  }  
          scale <0.15, 0.15, 0.15>
          rotate x*90  
          rotate y*90
          translate <-0.1, -0.2995, 5>
   }
   text { ttf "brushsci.ttf" "- Florestan Fernandes" 0.01, 0
              pigment { color rgb < 1, 1, 1 >  }
          scale <0.1, 0.1, 0.1>
          rotate x*90
          rotate y*90
          translate <-0.3, -0.2995, 3.5>
   }
   text { ttf "ariblk.ttf" "CAMPINAS" 0.01, 0
              pigment { color rgb < 0, 0, 1 >  }
          scale <0.15, 0.15, 0.15>
          rotate x*90
          rotate z*180
          translate <0.43, 0.3, 1.15>
   }
   text { ttf "timrom.ttf" "Cidade Saudavel" 0.01, 0
              pigment { color rgb < 0, 0, 1 >  }
          scale <0.1, 0.1, 0.1>
          rotate x*90
          rotate z*180
          translate <0.35, 0.301, 1.05>
   }
   prism {
    linear_sweep
    linear_spline
    -0.3, // sweep the following shape from here ...
    0.3, // ... up through here
    3, // the number of points making up the shape ...
    <-0.5, 5.2>, < 0.5, 5.2>, <-0.5, 6.2>
    pigment { color rgb < 0.8, 0.8, 1 > }
    }
    
} 

#declare livro = 
union {
    cylinder {
       <3.5, -1.2, 3.3>,     // Center of one end
       <3.5, -1.2, 5>,     // Center of other end
       1.6            // Radius
       pigment { color rgb < 0.8, 0.8, 1 > }
       
    }
    cylinder {
       <3.5, 1.2, 3.3>,     // Center of one end
       <3.5, 1.2, 5>,     // Center of other end
       1.6            // Radius
       pigment { color rgb < 0.8, 0.8, 1 > }
       
    }
    box { <4.0, -0.15, 3.299>, <4.3, 0.15, 5.01>
              pigment { color rgb < 0.8, 0.8, 1 > }
       }

}


text { ttf "brushsci.ttf" "\"O objetivo da educacao" 0.01, 0
              pigment { color rgb < 1, 1, 1 >  }
              scale <0.5, 0.5, 0.5>
             // rotate z*90
             // rotate y*90
             // translate <4.5, -1.2, 4.5>
    }

#declare buraco =
union {
   cylinder {
       <3.5, 1.2, 3.299>,     // Center of one end
       <3.5, 1.2, 5.01>,     // Center of other end
       1.3               // Radius
       pigment { color rgb < 0.8, 0.8, 1 > }
     
       }
   cylinder {
       <3.5, -1.2, 3.299>,     // Center of one end
       <3.5, -1.2, 5.01>,     // Center of other end
       1.3               // Radius
       pigment { color rgb < 0.8, 0.8, 1 > }
      
       }     
       
   box { <-2.0, -6, -2.5>, <3.5, 6, 5.5>
              pigment { color rgb < 0.9, 0.9, 0.9> }
       }    
   box { <-2.0, -6, -2.5>, <6.5, -1.5, 5.5>
              pigment { color rgb < 0.9, 0.9, 0.9> }
       } 
   box { <-2.0, 1.5, -2.5>, <6.5, 6.0, 5.5>
              pigment { color rgb < 0.9, 0.9, 0.9> }
       }                    
          
          
/*   prism {
    linear_sweep
    linear_spline
    0.3, // sweep the following shape from here ...
    2.6, // ... up through here
    3, // the number of points making up the shape ...
    <-1, 4>, < 1, 5>, <-1, 6>
    pigment { color rgb < 0.8, 0.8, 1 > }
    } */
}   


object { chao }   
object { pilar }

difference {
object { livro  
           rotate y*(-45) 
       }
object { buraco 
           rotate y*(-45)
       }
}