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

Overview overview    

How to Make a Torpedo

Objects: "sphere", "cylinder", "cone".
Methods: "#declare", "union", "difference",
                    "matrix".

This sample shows how to construct a torpedo.

The Construction in details:

Step 1: The Body


We buildt the body by two ellipsoids (red)
and a cylinder (yellow) all with the same radius:
sphere { <0,0,0>, 0.5
         scale<1.5,1,1>
       }  // end of sphere ------

cylinder{ <-4,0,0>,<0,0,0>,0.5
       } // end of cylinder -----

sphere { <0,0,0>, 0.5
         scale<  5,1,1>
         translate<-4,0,0>
       }  // end of sphere ------
torpedo
torpedo

Step 2: The Wings


2.0: We call this a "Wing":

#declare Wing = 
2.1: We take a cone,

cone { <0,0,0>,0.75,<0,1.00,0>,0.35  

2.2: we shrink it in z direction by

       scale <1,1,0.1>   

2.3: we sheer it in x direction by

       matrix<  1  , 0, 0,   
              -0.25, 1, 0,
                0  , 0, 1,
                0  , 0, 0>            

2.4: and we close the cone:

      } // end of cone ----- 

2.5: Now we bundle 4 wings
rotating them around the x axis:

union{ 
  object{ Wing rotate<0*90,0,0>}
  object{ Wing rotate<1*90,0,0>}
  object{ Wing rotate<2*90,0,0>}
  object{ Wing rotate<3*90,0,0>}

2.6: and move them at their position at the end of the tail:

  translate<-5.55,0,0>
  } // end of union
torpedo

torpedo

torpedo

torpedo

Step 3: All together now:

torpedo
torpedo

Scene description for a chain with POV-Ray:
".txt" file or ".pov" file

Overview overview    

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