• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Trees on roads

Messages
489
Country
us-ohio
HI,
I have seen a few of the posts regarding this issue, and using the subtract from feature in scenproc, it wasn't working -
I think i may have it slightly wrong in the script, any advise on what i have and what i may need to fix it.
Thanks!
scenproc subtract.jpg


from the manual..


and this...

scenproc subtract scrip.jpg


what i've tried so far. trying to take the buildings and roads out of the veg poly at the same time/run. Please advise, Thank you!
 
Hi,

You are subtracting the buildings from the roads, not the other way around. And using the minimum area polygon for the roads will give very weird results.

You can try two approaches:

  1. Use the LineToPolygon step to turn the roads into polygons with a certain width. Then you can test if buildings are inside this polygon.
  2. Use the FilterFeatures step to remove all buildings that are within a certain distance of roads.
The second option probably works best.
 
Hey Arno,
I am actually not SO worried about the buildings, they are doing ok, staying mostly in their footprints, its getting the trees off the roads, is the main concern.
would i still use the filterfeatures step for trees? is there a certain place that i should insert that step into the script?
Thanks, hope you had a good camping trip!
 
Hi,

For trees on roads it would be the same. If you use polygonal vegetation you can best subtract a road polygon from your vegetation polygon. If you place individual trees as point features the filter step is probably easiest.

You would place these steps somewhere before making your agn.
 
Sorry, for all the questions, but i would still turn the roads into polygons first, correct? and all this can be done in the one script?
could you possibly give me an idea of how the script would go? thanks!!
EDIT:
I use a shapefile for the roads, and certain roads selected to be used in that .shp would i have to specify each type of road to be turned into a poly or would it read all or any of the roads inthe .shp?
I trying to get this!
 
Last edited:
Hi,

I'll try to make a sample file and add that to the manual as well.

But with the filter in the different steps you can select which features they will process.
 
Have you tried setting "IMAGE_PIXELS_FOR_AUTOGEN_POLYGONS=1024" in the [terrain] section of your P3D/FSX.cfg?
 
@astaticmusic
you should consider buffering your polygon first followed by subtract,
for example buffer roads by extra 4 meters and subtract that from your tree polygon (you may end up with 2 split poly's),
make sure to add in your terrain cfg "autogenexclude=yes" on the road class to make sure no stray trees mix up,
 
thanks Roby. I ended up getting the thing to work, but i will check the terrain cfg also.
i didnt want to have to edit any cfg's if it were working another way. thanks.
 
Back
Top