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
  - Engineering
    - Ladder
    - Pylons
    - Railing
    - Bridge
    - Tubes
    - Tube Fork
    - Tube Stopcock
    - Chain
    - Coil of Wire
    - Torpedo
    - Cruise Missile
    - Rocket
    - Wheel
    - Truck
    - Propeller
    - Airplane
      - 1. Body (1)
      - 2. Body (2)
      - 3. Windows (1)
      - 4. Windows (2)
      - 5. Wings
      - 6. Propellers
    - Canoe
    - Guitar Body
    - 7-Segment Display
    - Ribbon Cable
    - Cable Harness
                                       


Airplane
Adding Windows (2)

How to Add Window Glass to the Window Holes:

To get the glass into these window holes we have to add a thin layer of glass in the middle of the skin of the body of the airplane.
Now let's choose some textures and put this all together:

//----------------------------------------------------------- textures
#declare A_Tex = texture { pigment{color Silver}
                           finish {ambient 0.1 diffuse 0.8 phong 1}
                         }                   // airplane body texture

#declare A_Glass =  texture{NBbeerbottle}    // airplane window glass

//-------------------------------------------------------------------
union{           // ----- the body of the airplane with windows

  difference {   //  body caved out and with holes for the windows
    object { Body(R1, R2, R3, R4, R5) }
    object { Body(R1-Skin, R2-Skin, R3-Skin, R4-Skin,R5-Skin)}
    object { Windows_Cut_Cockpit }
    object { Windows_Cut_Passenger
             rotate<0,0,3>  translate< -1-0.00, 0.25*R1, 0>}
    texture{A_Tex}
  }// end of difference

  difference {   // Die Glas-Schicht
    object { Body(R1-G, R2-G, R3-G, R4-G, R5-G)}
    object { Body(R1-2*G, R2-2*G, R3-2*G, R4-2*G,  R5-2*G)}
    texture{A_Glass}
  }// end of difference

rotate<0,0,0>
translate<0,0,0>
}// end of union
//----------------------------------------------------------------end 
airplane body
Continue with part 5
 
top

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