Descriptions and Samples for the POV-Ray raytracer by Friedrich A. Lohmüller
    deutsche Version

Airplane - part IV overview Airplane - part VI

How to Make an Airplane

Adding Windows (2)

   

part V

To get the glass into these window holes we 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 {   // the glass layer 
    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 
airplane with windows

        The body of the airplane with windowss.

Airplane - part IV overview Airplane - part VI

© Friedrich A. Lohmüller, 2002     email email: (legacy email redacted)