Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
    POV-Ray Examples - How To Make Objects for POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial
  - POV-Ray Examples
   Index of Content
  - Geometry
  - Architecture
    - House
    - Roof
    - Tower
    - Castle
      - 1. Tower
      - 2. Door
      - 3. Moat
      - 4. Windows
      - 5. Extended
    - Window + Door
    - Stairs
    - Pyramid
    - Columns
    - Arch
    - Fences
    - Furnitur
    - Household
  - Engineering
                                       
 
castle

Castle - 2. Towers and Door

How To buildt a castle with towers, door, windows, moat and drawbridge
Objects: "cylinder", "cone", "box".
Methods: "#declare", "union", "difference".
Castle front
Schloss in Vorderansicht.
The Construction in Details:
About the construction of an arch for the door see there!
First the body of the tower (a little more decorated!) is moved to the 4 angles of the castle. Between them 4 boxes are placed to form the walls. From one part of the walls there is subtracted by the "difference" statement a cylinder and a box to form the rounded hole for the door.
tower
Click here for the scene description
for POV-Ray: ".txt" file or ".pov" file

//-----------------------------------------------------
#declare Walltex =
 texture{pigment{color <1,1,1>}
         finish {diffuse 0.9 phong 1}}
#declare Rooftex =
  texture{pigment{color rgb<0.4,0,0>}
          finish {ambient 0.1 diffuse 0.9 phong 1}}
#declare TR =  2.0;   //TowerRadius
#declare TH =  5.0;   //TowerHeight
//-----------------------  Tower  ----------------------
#declare Tower = union{     // definies object "Tower"
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}}
}// ------------------ End Tower Definition -----------
// draw the "Tower" at 4 corners:
object{ Tower translate<-6, 0,-6>}
object{ Tower translate< 6, 0,-6>}
object{ Tower translate< 6, 0, 6>}
object{ Tower translate<-6, 0, 6>}
//-----------------------------------------------------
//------------------------ Mauer ----------------------
#declare Wall =
box {<-4,0,-0.3>,< 4,3.5,0.3>      texture{Walltex}}
// ---------------- draw 4 walls ------------------
difference{
   object{Wall} // Wall with hole  ----------------
   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>}
// ------------------- ground inside ------------------
box {<-6,-4,-6>,< 6,0.01,6>
     texture{pigment{color Gray90}
             finish {diffuse 0.9 phong 1}}}
//------------------------------------------------end--
back to part 1
continued at part 3
top

© Friedrich A. Lohmüller, 2006
www.f-lohmueller.de