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
                                       
 
Tower with windows

Castle - 4. Tower + Windows

How To buildt a castle with towers, door, windows, moat and drawbridge
Objects: "cylinder", "cone", "box".
Methods: "#declare", "union", "difference".
tower plan
Tower with windows.
The Construction in Details:
About the construction of windows see here.
First the body of the tower is caved out by subtracting cylinders. Then the holes for the windows were subtracted and finally the predefined windows were put in on the same positions.
tower
Click here for the scene description for POV-Ray:
".txt" file or ".pov" file

// ---------------------- Tower --------------------------
union{
 difference{
  union{
   cone{<0,-8,0>,3.0,<0,0,0>,2.0      texture{Walltex}}
   cylinder {<0,0,0>,<0,5,0>,2.0      texture{Walltex}}
   cylinder {<0,0.0,0>,<0,0.1,0>,2.05 texture{Walltex}}
   cylinder {<0,2.5,0>,<0,2.6,0>,2.05 texture{Walltex}}
   } // union
   cylinder {<0,-0.1,0>,<0,2.45,0>,1.7 texture{Walltex}}
   cylinder {<0,2.50,0>,<0,5.10,0>,1.7 texture{Walltex}}
   object{WindowHole rotate<0,  45,0> translate<0,  0,0>}
   object{WindowHole rotate<0, 135,0> translate<0,  0,0>}
   object{WindowHole rotate<0, 225,0> translate<0,  0,0>}
   object{WindowHole rotate<0, 315,0> translate<0,  0,0>}
   object{WindowHole rotate<0,  45,0> translate<0,2.5,0>}
   object{WindowHole rotate<0, 135,0> translate<0,2.5,0>}
   object{WindowHole rotate<0, 225,0> translate<0,2.5,0>}
   object{WindowHole rotate<0, 315,0> translate<0,2.5,0>}
   }//diff
 object{Window rotate<0, 135,0> translate<0,  0,0>}
 object{Window rotate<0, 225,0> translate<0,  0,0>}
 object{Window rotate<0, 315,0> translate<0,  0,0>}
 object{Window rotate<0,  45,0> translate<0,2.5,0>}
 object{Window rotate<0, 135,0> translate<0,2.5,0>}
 object{Window rotate<0, 225,0> translate<0,2.5,0>}
 object{Window rotate<0, 315,0> translate<0,2.5,0>}
 cone{<0,0,0>,2.5,<0,2.5,0>,0  translate<0,5,0>
                                    texture{Rooftex}}
 cone{<0,0,0>,2.0,<0,5.5,0>,0  translate<0,5,0>
                                    texture{Rooftex}}
}  // End of Tower --------------------------------------
 
back to part 3
continued at part 5
top

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