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

tutorials overview overview Rocket 1

Pawn

Construction of a Pawn Shape.
Sample for the using of the "union"-statement.

Objects:  sphere, cone
Methods: declare, union
frontview (View in +z direction)
//==========================================================
union{                                                                 
       sphere{<0,1,0>,0.35}
       cone  {<0,0,0>,0.5,<0,1,0>,0.0}
       texture{ pigment{color  rgb<1,0.65,0>}
                finish {ambient 0.15 diffuse 0.85 phong 0.5}
                 }// end of texture
      }// end of union
//==========================================================
This makes the following image:

If we change the text as follows:
//==========================================================
#declare Pawn = 
union{                                                                 
       sphere{<0,1,0>,0.35}
       cone  {<0,0,0>,0.5,<0,1,0>,0.0}
       texture{ pigment{color  rgb<1,0.65,0>}
                finish {ambient 0.15 diffuse 0.85 phong 0.5}
                 }// end of texture
      }// end of union
//----------------------------------------------------------
union{
       object{ Pawn translate < 0.0, 0.0, 0.0>}
       object{ Pawn translate < 0.0, 0.0, 1.2>}
       object{ Pawn translate < 0.0, 0.0, 2.4>}
       rotate<0,0,0> translate<0,0.7,0>
      }// end of union
//====================================================== end
we get the following image:
Click here for the complete scene description
for POV-Ray: ".txt" file or ".pov" file


tutorials overview overview Rocket 1

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