Configurable utility to postion AFS2 objects based on OSM files 0.7.1

License Agreement
Flight-Sim.org - Lizenz

Generalized re-implementation of PylonGen

The initial response to PylonGen was quite positive but it became very clear that it was a point solution within a much wider scenery generation need.


So rather than hard code new object types in PylonGen the concept was re implemented based on an XML configuration file to specify selection criteria for OSM features and determine what model object should be displayed.




ObjectGen can support a wide range of scenarios as long as there is sufficient OSM data to select the relevant OSM feature and choose what model object to display.


See the readMe and UserGuide for details.


Ongoing discussion of the topic in the AFS2 forum thread


/Stu

  • Version 0.7.1

    Allow output file name as optional command line argument


    Add support for negation of sparse tags eg ($highway == 'primary') #AND# ($tunnel #NEQ# 'yes')

  • Version 0.7.0

    Add XREF library support

  • Version 0.6.1

    Update stale objects library

  • Version 0.6.0

    added virtualObjects capability

  • Version 0.5.2

    Fix underlying bounding box check problem introduced with large OSM file support.

    Caused missing nodes near box boundary which caused release 0.5 exception throw.

  • Version 0.5.1

    Patch for out of bounds node exception:(

  • Version 0.5.0

    Major change is a new SelectionExpression capability to allow compound selection conditions to to specified instead of simple AndCriteria

    Added general expression evaluation engine to evaluate the result of the expression.


    See readme and UserGuide for details

  • Version 0.4.1

    Fix bug in wayLength calculation

    updated test case #0.3.1.3 and mismatched labels

  • Version 0.4.0

    rebranded as ObjectGen


    added support for override bounding box for large OSM files.


    Animation attribute variability to avoid "lock-step"

  • Version 0.3.0

    Added derivedTag feature to allow additional OSM data to be extracted in a form that is useful for object model selection purposes.

    See readMe.txt and User Guide for details

  • Very nice tool - can you publish the Powerline polygons for Switzerland?

    • What do you mean by "Powerline polygons" ??

    • The powerlines and masts in CH ;-)

    • My intent is to produce a tool that allows users to create their own cultivation.

      I distributed example objects only as an aid in understanding the tool. The models are crude conversions of Sketchup files and not optimized for AFS2


      I do not intend to distribute scenery packages.


      The tool allows users to create their own scenery (and distribute it if they choose)

  • Thanks for this useful OSM objects tool, lenidcamper. The example.xml config file refers to multiple windmill sizes and model files under the "Objects\Windmills" folder however only the 90M windmill 3D model is included within your tool. Can you include the other sized windmill models as well in your tool similar to how you've included multiple sized models under the PowerPylons and StorageTanks folders, please?

    • The other windmill models were "re-purposed" from the Orbx Netherlands DLC, so they can not be redistributed by me.


      There are other windmill models in the Sketchup 3dWarehouse which can be converted into internal AFS object models. There are various threads on the AFS forum describing the conversion process. I found this one useful.


      Hopefully some of the talented 3d modellers out there will share additional models on this site.


      /Stu


      PS

      pick up the latest 0.2 version