• 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.

Stumbling on the building step...

Messages
78
Country
canada
Hi Arno and All,

First, happy new year to All and thanks Arno for this great Sceneproc tool. I'm in the learning curve and have passed several hours testing it, reading the manual, watching the Youtube lessons, learning QGIS, produced good vegetation AGN but I'm still stubbling on the building step (and I'm a bit discouraged).

For the buildings, I tested a first simple line (copied for the Youtube lesson) in hope of a success and added 2 others of my interest. I'm expecting that my shape files are OK since the shapefile contains 50 lines of buildings (as seen on QGIS) and Sceneproc seams to recognise them. Finaly, note that the attribute Website here is an empty column I modifyed to introduce the heading of the churchs.

Any idea of what could be the issue? Thanks very much in advance!!

Progr:
IMPORTOGR|C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Tewkesburry2.shp|*|natural|NOREPROJ
#
IMPORTOGR|C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Tewkesburry2_building.shp|*|building;website|NOREPROJ
#
SPLITGRID|AGN|building=*
#
CREATEAGNPOLYVEG|FTYPE=POLYGON;natural=wood|{367cdf30-54f0-4093-a2f7-7f473417704f}
#
CREATEAGNGENBUILD|filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=yes;FAREARAT>0.70|{96c7b19c-0ff7-455e-8703-c140891a6136}
#
CREATEAGNGENBUILD|filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=house;FAREARAT>0.70|{b011b1f5-a247-42f3-9a95-08450cf8426f}
#
CREATEAGNLIBOBJ|filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=church|{83EB97F9-C408-4C26-B944-2B9064BA0F83}|website|0|65;20
#
EXPORTAGN|FSX|C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Texture


Event log:
11:41 IMPORTOGR Information Reading file C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Tewkesburry2.shp
11:41 IMPORTOGR Information Read 445 features from file
11:41 IMPORTOGR Information Reading file C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Tewkesburry2_building.shp
11:41 IMPORTOGR Information Read 50 features from file
11:41 SPLITGRID Information Splitting features in 0,0146484375 x 0,010986328125 grid...
11:41 SPLITGRID Information Features divided in 667 cells
11:41 CREATEAGNPOLYVEG Information Creating autogen polygon vegetation with filter FTYPE=POLYGON;natural=wood...
11:41 CREATEAGNPOLYVEG Information Created 579 autogen objects
11:41 CREATEAGNGENBUILD Information Creating autogen generic buildings with filter filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=yes;FAREARAT>0.70...
11:41 CREATEAGNGENBUILD Information Created 0 autogen objects
11:41 CREATEAGNGENBUILD Information Creating autogen generic buildings with filter filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=house;FAREARAT>0.70...
11:41 CREATEAGNGENBUILD Information Created 0 autogen objects
11:41 CREATEAGNLIBOBJ Information Creating autogen library objects with filter filter=POLYGON;FROMFILE=Tewkesburry2_building.shp;building=church...
11:41 CREATEAGNLIBOBJ Information Created 0 autogen objects
11:41 EXPORTAGN Information Writing AGN files to folder C:\Users\Guillaume\Documents\FS\Mes scènes\Bras du nord\Texture
11:41 EXPORTAGN Information Created 581 polygonal vegetation objects
11:41 EXPORTAGN Information Written 213 autogen files
11:41 SceneryProcessor Information scenProc finished processing
11:41 SceneryProcessor Information 0,96 seconds for IMPORTOGR
11:41 SceneryProcessor Information 0,81 seconds for SPLITGRID
11:41 SceneryProcessor Information 0,01 seconds for CREATEAGNPOLYVEG
11:41 SceneryProcessor Information 0,03 seconds for CREATEAGNGENBUILD
11:41 SceneryProcessor Information 0,01 seconds for CREATEAGNLIBOBJ
11:41 SceneryProcessor Information 0,07 seconds for EXPORTAGN
11:41 SceneryProcessor Information 1,88 seconds total


Attached are my shapefiles in case...
 

Attachments

Hi,

It seems no features match the filter. I'll check your shapefile later why that is.
 
Hi,

Actually the problem is not in the shapefile, at the begining of your building filter you write filter=POLYGON. But there is no filter attribute in the data, so no features are returned. You probably meant FTYPE=POLYGON (but you can also exlcude that one, as it's automatically added by scenProc to make sure only polygons are selected).
 
Hi,

Actually the problem is not in the shapefile, at the begining of your building filter you write filter=POLYGON. But there is no filter attribute in the data, so no features are returned. You probably meant FTYPE=POLYGON (but you can also exlcude that one, as it's automatically added by scenProc to make sure only polygons are selected).


Thanks very much Arno! It works well!

Quick question by the way: During my AGN generation, I'm asking Sceneproc to generate the AGN files in one Texture folder per project which are not activated in FSX. Then, I'm copying manually the AGN to a "My scenery"/texture folder activated in FSX. Now, I'm suspecting Scenproc to use same name of AGN in different projects because when I'm copying new AGN from a new project in my FSX activated folder, I'm asked to overwrite some AGN files.
Should I direct all AGN files from several projects in a same folder to avoid this? Could Sceneproc avoid then to reuse same file name?

Thanks again!

Guillaume
 
Hi,

The names are pre-defined, as they define the location on earth. So there is no choice in which name to use.

If you have different projects that cover the same autogen LOD file, you would have to merge their content in one AGN file. And each project would need to contain that merged copy.

scenProc has a merge tool in it, check the manual for details.

Or you could use a single script to make all AGN files at once, since they all go in the same texture folder in the end.
 
Hi Arno,
Thanks, this is great, I will look at the merge fonction in the manual.

May I ask you to direct me in a direction (!) to produce houses in residential area where there are no polygones for each house available?
Here in Québec this is very frequent, not to say always the case, and is probably the case for most of North America apart from very big cities.
As you probably know, these residential areas in Openstreetmap are lines for streets, along with line for address between points.
I thought of using the light poles strategy to fill these area with houses: so using regular distribution (+-18 M) of Autogen houses, located at a certain distance of the street (+- 18M).
That could look like this:
PLACEPOINTSALONGLINE|FTYPE=LINE;highway=residential|CONTINUOUS|18;18|18;18|0|type|house|0
#
CREATEXMLLIBOBJ|type=house|GUID of the house|0|0|0|0

I don't need any heading to specify since I want the house to be oriented facing the street, if possible. But Scenproc gives me the error: 0 is not a valid XML object.

First question: is this a good direction to produce houses along a residential street?(as you can see in the images bellow)
Second question: how can I pass over the heading issue, without being obliged to specify heading for each house?

Thanks again!

Capture d’écran 2016-01-07 à 14.56.42.png
Capture d’écran 2016-01-07 à 14.59.53.png
 
Hi,

I have never tried this approach to place houses, but it might work. You probably need some extra checks to make sure you don't get houses on junctions.

The PlacePointsAlongLine step does store the heading for you, so you need to specify an attribute name where you want the heading to be stored. And then you can use that attribute in the step to make the library objects. It's probably better to use autogen library objects (CreateAGNLibObj) instead of the XML ones (performance wise).

Another approach, if you have some imagery, is trying to detect the houses in the imagery. That's an approach I'm experimenting with in a current project.
 
Thanks Arno,

I haven't had a change yet to make a few try but as soon as it is done I'll report back.
Cheers,
G
 
Hi Arno and All,

I pursued on the technique to generate houses where streets are lines without buildings created in openstreetmap. Most of the cities aure like this in North America. I produced houses along a line (residential streets) with Createobjlib to test it but would like to find the right formula with autogen houses. This is the lines that don't works:
#
PLACEPOINTSALONGLINE|FTYPE=LINE;highway=residential|CONTINUOUS|18;18|18;18|0|object|house|hdg
CREATEAGNGENBUILD|FTYPE=POINT;type=light|{89a023a1-c5e2-4c8c-954e-c1597dab6ea5}|MAXRATIO=0.7

And the good results with library objects:
Houses1.jpg
Houses2.jpg
 
Last edited:
Hi,

You can't create autogen buildings from point features, they need polygon features as input. So you could try to use the PointToPolygon step create polygons from your points first.
 
Thanks Arno! I could produce what I think could work:

PLACEPOINTSALONGLINE|FTYPE=LINE;highway=residential|CONTINUOUS|18;18|18;18|0|object|HOUSE|hdg
PointToPolygon|OBJECT="HOUSE"|10;7|hdg|String;type|housepoly
CreateAGNGenBuild|type="housepoly"|{89a023a1-c5e2-4c8c-954e-c1597dab6ea5}|MAXRATIO=0.7

However, I couldn't find the command, so I installed the V1.1 but it seams that it is still not recognised. What do I miss?

Placetopointcommand.jpg
 
Let me check, I thought it was in the 2.0 build.
 
Got it ! The syntaxes have changed! I gona run a few tests to see the results. So far, I can't produce polygons from placing point along a line... My PlacePointalongaline syntax needs a bit of work. I'll report back. Thanks again Arno :)
 
It works great with this formula! Thanks again!
#
PLACEPOINTSALONGLINE|FTYPE=LINE;highway=residential|SINGLE|18;18|18;18|9|String;OBJECT|HOUSE|hdg
PointToPolygon|OBJECT="HOUSE"|10;7|hdg|String;type|housepoly
CreateAGNGenBuild|type="housepoly"|{89a023a1-c5e2-4c8c-954e-c1597dab6ea5};{b268805f-6d9e-45c3-9eda-26ef65740969};{0230e7fd-701b-472b-8fa6-b7a2884e38a6}
 
Back
Top