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
      - 1. Chassis
      - 2. Car Body
      - 3. Tractor
      - 4. with Tailer
    - Propeller
    - Airplanes
    - Canoe
    - Guitar Body
    - 7-Segment Display
    - Ribbon Cable
    - Cable Harness
                                       
 
body

Truck - 4. Tractor with Tailer

Objects: "Round_Box", "cylinder".
Methods: "difference", "intersection", "union", "#declare" "#macro".
An include file to use this object as a read-made object
you can find at my POV-Ray Objects page.

Construction of the Trailer: We buildt the tailer by a "Round_Box" and the double axes like we used with the tractor.

The Complete Tuck: Tractor + Trailer.


The assembly was made with "macro" objects, to keep in free choice the front wheel angle, the angle of the trailer as well as the texture of the car body.
//------------------------------------
#declare Trailer_Angle    =0;//~+/-110
#declare Front_Wheel_Angle=0;//~ +/-60
#declare Truck_Texture =
   texture{ pigment{ color rgb<1,1,1>}
            finish{ diffuse .9 phong 1}
          } // end of texture
//------------------------------------
object{ Truck0( Front_Wheel_Angle,
                Trailer_Angle,
                Truck_Texture
              ) //--------------------
rotate<0,0,0>
translate<4.20,0,0>
} //----------------------------------

 
 
 
Scene file for POV-Ray:
"truck0_1.txt" or "truck0_1.pov"

Now it's up to you to add all the missing little details: Lights, radiator grille, bumpers, exhausts, steering wheel and seats, rear-view mirrors, backlights, etc., etc. to rise it up to something real like this:

 
Ready-made POV-Ray objects as
include files and example files you'll find
at the POV-Ray Objects Page
top

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