Adding Traffic - utility
Posted: Tue Sep 11, 2012 11:48 am
FSX only has traffic on motorways/freeways as default. I think that adding traffic to the scenery gives a greater feeling of realism when flying VFR or coming into an airfield. To that end I have been gradually creating traffic lines on "A" routes in Scotland. There may be an easier way to do this - please tell me if I'm over complicating things, but I have written a BASIC program to assist in this.
The first thing I do is to use SBX to digitise the centre-line of the route in question. This is made in a series of discrete lines (they have to be sequential). I then save this to an .sbx file.
This file is then fed through my program. The program takes the lines, joins them up then constructs two lines which are offset either side of the centre-line (the offset distance can be varied according to the width of the road). These are then output as two separate freeway lines (in the direction of traffic flow) to a new .sbx file which can be imported back to SBX and edited for junctions, roundabouts, etc. before compiling the .bgl file.
If anyone would like a copy of the BASIC program I file post it here (warts and all).
PS it is written in the freeby version of Liberty BASIC.
The first thing I do is to use SBX to digitise the centre-line of the route in question. This is made in a series of discrete lines (they have to be sequential). I then save this to an .sbx file.
This file is then fed through my program. The program takes the lines, joins them up then constructs two lines which are offset either side of the centre-line (the offset distance can be varied according to the width of the road). These are then output as two separate freeway lines (in the direction of traffic flow) to a new .sbx file which can be imported back to SBX and edited for junctions, roundabouts, etc. before compiling the .bgl file.
If anyone would like a copy of the BASIC program I file post it here (warts and all).
PS it is written in the freeby version of Liberty BASIC.