A significant feature of VFR flight are lines of power pylons stretching off into the haze.
In the absence of a MakeAF2Object directive in scenProc, I created a utility PYLONGEN to parse OSM files and generate a TSC file with entries
for each node along ways tagged with k="power" v="line".
PYLONGEN will use the bounds defined in the OSM file to calculate the coordinates
for the TSC and reject any pylon points out of bounds.
PYLONGEN expects the arguments
- path to OSM file
- [optional] relative path to PowerPylonModels folder in the deployed scenery folder structure. Assumes the same folder if arg not provided. This allows positioning the
PowerPylonModels folder to be shared by multiple tsc files in a folder hierarchy. I place the generated tsc (along with other cultivation files) in places subfolder
for each 0.1x0.1 cultivation tile. The PowerPylonModels folder at a higher level in the hierarchy can be shared by all tiles.
The utility will produce TSC and log files in the current directory.
Model selection precedence
If the power="line" way has a tag model="yourSiteSpecificModelName", the specific model will be used for that line. This allows customization for distinctive pylon styles.
If no model defined but the line has a cables tag defined for the way, a generic N-cables model name will be be selected based on number of cables. A number of generic pylon models have been provided. if you encounter cable arrangements not supported there will be "not found" errors in the tm.log for the missing tmb files. You have the choice of creating a model for that configuration or setting a specific model for the way .
As a last resort the defaultPylon model will be used.
Way and node ids are added to the TSC to track back to OSM file for any missing or spurious towers.
Model development
Example models were converted from SketchUp 3DWarehouse (I found ZoSoChiles 3d Model conversion post most helpful in getting the pylon models converted.)
The model base must be centered on the drawing origin.
No geo-position info should be defined in the model.
The model should be aligned for a east west cable run.
The piers should be extended well below grade to allow for slope placement. Steep slopes may require manual elevation tweaks in the TSC.
Limitations
You may need to set the time of day to align 3D generated shadows and ortho image shadows.
Ortho image of power cables are sometimes highly visible and may not be aligned with implicit line of sight from the camera position. I do not think anything can be done to fix that.
*****************************************************************************************
*****************************************************************************************
**** Note PylonGen has been superceded by generalized XML configuration driven osm2AFSobject
*****************************************************************************************
*****************************************************************************************
The PYLONGEN utility has been uploaded to flight-sim
/Stu