Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
    Model Railroading / Railway Modelling with POV-Ray -
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  Model Railroading
  Railway Modelling
  with POV-Ray
    Index of Content

  - Rail Track System
    for POV-Ray
    Basic Track Elements
    - Straight & Curved
    - Switches
    - Wye + 3Ways
    - Level Junctions

    - Simplified Using by
      RT_System_00.inc
      - Rail Tracks Elements
        with RT_System_00.inc

    - Track Layout with
      Model Scaled Tracks
      - H0 Scale Tracks
      - N Scale Tracks
      - Z Scale Tracks

    - Track Layout with
      scaled Tracks
      - Track Placement
      - Tracks Up & Down

    - Track Layout Examples
     > Simple cyclic
      - Simple eight

    - Download of the
      Rail Track System


                                                     
Examples for Track Layouts with scaled Tracks
Example 1 : Simple cyclic with mountains by height_field
(N scale track system of geometry type A)

1. Arrangment of the tracks:
//-----------------------------------------------//
union{ //  western curve
 object{ T_R1_45 Rotate_Around_Trans(<0, 0*45,0>,<0,0,-R1>)}
 object{ T_R1_45 Rotate_Around_Trans(<0, 1*45,0>,<0,0,-R1>)}
 object{ T_R1_45 Rotate_Around_Trans(<0, 2*45,0>,<0,0,-R1>)}
 object{ T_R1_45 Rotate_Around_Trans(<0, 3*45,0>,<0,0,-R1>)}
 rotate<0,180,0>
} // end  western curve

union{ // simple  station // starting at western end:
 object{ SW_L( SD_1)  translate< 0*L111 ,0,0>}
 object{ T_R9_15  Rotate_Around_Trans(<0,-1*15,0>,<0,0, R9>)
                      translate< 0*L111 ,0,0>}
 object{ T_111        translate< 1*L111 ,0,0>}

 object{ T_111        translate<2*L111 ,0, 1*Track_Distance> }
 object{ T_111        translate<2*L111 ,0, 0> }

 object{ SW_R( SD_2)  translate<3*L111 ,0, 1*Track_Distance>}
 object{ T_111        translate<3*L111 ,0, 0> }

 object{ T_111        translate<4*L111 ,0, 1*Track_Distance> }
 object{ SW_R( SD_2)  rotate<0,180,0>
                      translate<5*L111 ,0, 0> }
} // ----- end station

union{ // eastern curve
 object{ T_L1_45 Rotate_Around_Trans(<0,-0*45,0>,<0,0, R1>) }
 object{ T_L1_45 Rotate_Around_Trans(<0,-1*45,0>,<0,0, R1>) }
 object{ T_L1_45 Rotate_Around_Trans(<0,-2*45,0>,<0,0, R1>) }
 object{ T_L1_45 Rotate_Around_Trans(<0,-3*45,0>,<0,0, R1>) }
 translate< 5*L111,0,0>
} // end  eastern curve

union{ // norther line
 object{ T_111  translate<0*L111 ,0,0> }
 object{ T_111  translate<1*L111 ,0,0> }
 object{ T_111  translate<2*L111 ,0,0> }
 object{ T_111  translate<3*L111 ,0,0> }
 object{ T_111  translate<4*L111 ,0,0> }
 translate<0,0,2*R1>
} // end  norther line
//-----------------------------------------------//
Simple cyclic
Simple cyclic tracks
2. Mountains by 'height_field':
Here we can use a black and white image with the same aspect ratio like the layout.
This image can be made with a program like i.e. Paint Shop Pro.
Here medium gray (R: 128, G: 128, B: 128) is used for the base level, black is deeper (valley) and white is higher (mountains).
Simple cyclic
The image 'layout_500x225_01.jpg' used for the 'height_field'
//--------------------------------------------------//
intersection{
   box{<0,-0.15,0.005>,<1.00,0.50,0.45>
          scale  160  pigment{color White*0.8} }
   height_field{ jpeg "layout_500x225_01.jpg"
                 smooth double_illuminate
                 scale<1.01, 0.22, 0.46>*160
                 translate<-0.005,-0.108,-0.005>*160
               } // end of height_field
   //+ evtl. some tunnels

} // end intersection
//--------------------------------------------------// 
Simple cyclic
Simple cyclic tracks with height_field moutains


top

© Friedrich A. Lohmueller, 2011
www.f-lohmueller.de