// POV-Ray 3.6 Scene File "povca1.pov"
// created by Friedrich A. Lohmueller, 2005
// homepage: www.f-lohmueller.de
//
#version 3.5;
#global_settings { assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }} 

#include "colors.inc"
#include "textures.inc"
#include "glass.inc"
// camera -----------------------------------------------------
#declare Camera_0 = camera {ultra_wide_angle angle 75       
                            location  <0.0 , 1.0, -12.0>
                            right x*image_width/image_height
                            look_at <0.0 , 5.0, 0.0>}
#declare Camera_1 = camera {ultra_wide_angle angle 75       
                            location   <-9, 15, -15>
                            right x*image_width/image_height
                            look_at   < -2, 5,-4.5>}
camera{Camera_1} 
// sun --------------------------------------------------------
light_source{<1500,2500,-2500> color White}
// sky ---------------------------------------------------------------------
sky_sphere { pigment { gradient <0,1,0>
                       color_map { [0.00 rgb <1.0,1.0,1.0>]
                                   [0.30 rgb <0.0,0.1,1.0>]
                                   [0.70 rgb <0.0,0.1,1.0>]
                                   [1.00 rgb <1.0,1.0,1.0>] 
                                 } 
                       scale 2         
                     } // end of pigment
           } //end of skysphere
// fog ---------------------------------------------------------------------
fog{fog_type   2
    distance   150
    color      White
    fog_offset 0.1
    fog_alt    3.0
    turbulence 0.8}
// ground ------------------------------------------------------------------
plane{ <0,1,0>, 0 
       texture{ pigment {color rgb <0.85,0.55,0.30>}
                normal  {bumps 0.75 scale 0.025  }
                finish  {ambient 0.1 diffuse 0.9 } 
              } // end of texture
     } // end of plane
//--------------------------------------------------------------------------
//---------------------------- objects in scene ----------------------------
//--------------------------------------------------------------------------
//----------------- textures -----------------------------------
#declare Walltex =  texture{ pigment{ color White}
                             finish { phong 1}}
#declare Rooftex =  texture{ pigment{ color  rgb<0.4,0.0,0.0>}
                             finish { phong 1}}
// -------------------------------------------------------------
//----------------------- Turm  -- Tower -----------------------
#declare TR =  2.0;   //TurmRadius  tower radius
#declare TH =  5.0;   //TurmHöhe    tower height
//------------------------------------------.-------------------
#declare Tower =  union{    
 cylinder {<0,0,0>,<0,TH,0>,TR    texture{Walltex}}
 cone{<0,0,0>,TR+0.5,<0,TR+0.5,0>,0
                    translate<0,TH,0> texture{Rooftex}}
 cone{<0,0,0>,TR -0.2,<0,2*TR+0.5,0>,0
                    translate<0,TH,0> texture{Rooftex}}
}// ------------ Ende Turm -- end of Tower -----------------
//------------------ Mauern -- walls -----------------------
#declare Wall = union{
  box {<-4,0,-0.3>,< 4,3.5,0.3> }
  box {<-4.5,-6,-0.3 >,<4.5,0,0.3> rotate<-5,0,0>}
  texture{Walltex}}
// --------------- Schloss - the castle ---------------------
object{ Tower translate<-6, 0,-6>}
object{ Tower translate< 6, 0,-6>}
object{ Tower translate< 6, 0, 6>}
object{ Tower translate<-6, 0, 6>}

difference{object{Wall} // Mauer mit Torloch ----------------
           box{<-1,0,-0.4>,<1,2,0.4>       texture{Walltex}}
           cylinder{<0,2,-0.5>,<0,2,0.5>,1 texture{Walltex}}
                             translate< 0,0,-6>}
object{Wall rotate<0,  0,0> translate< 0, 0, 6>}
object{Wall rotate<0, 90,0> translate<-6, 0, 0>}
object{Wall rotate<0,-90,0> translate< 6, 0, 0>}
// ------------------- Hof-Boden -- floor inside -------------
box {<-6,-4,-6>,< 6,0.01,6>
     texture{pigment{color Gray90}
             finish {ambient 0.1 diffuse 0.9 phong 1}}}
//--------------------------------------------------------end--
