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

Buildings orientation

Messages
219
Country
italy
WHy the buildings have the same orientation?

this is the line I used

Code:
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=flat-buildings.shp;FWIDTH>20|4eb68be7-2f1f-4cd2-920e-becfa2d8c888|MAXRATIO=2

But no matter how I set the parameters, the result is always the same in buildings size, distance, etc.

thanks
G
 

Attachments

  • no-direction-flatroofs.jpg
    no-direction-flatroofs.jpg
    138.3 KB · Views: 441
  • footprint.jpg
    footprint.jpg
    13.6 KB · Views: 413
Hi,

That's weird, they should be oriented according to the polygon. Can you show the entire configuration file?
 
Code:
IMPORTSHP|E:\Buildings-footprint\flat-white-buildings\flat-buildings.shp|*|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|*|1.0;0.0;0.0;0.0
#
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=flat-buildings.shp;FWIDTH>20|4eb68be7-2f1f-4cd2-920e-becfa2d8c888|MAXRATIO=2
#
WRITEAGNFILES|FSX|E:\Buildings-footprint\flat-white-buildings\compile\texture
 
Hi,

That looks fine.

I just checked here in my version, but I get the buildings correctly oriented. So it doesn't seem to be a bug in the tool.

On the other hand your input data also looks fine on the screenshot. Just to be sure, could you email me your configuration file and the SHP file? Than I can give it a try.
 
Ok, I'll have a look.
 
I almost did :)
 
Hi,

I had a look at your data now. This happens because of the shapefile you use. The building polygons in the shapefile only have horizontal or vertical edges (I guess it has been a raster image that has been vectorized).

The algorithm I use to find the best fitting bounding box around a polygon only uses the directions of existing edges. So in your case that can be only horizontal or vertical. Therefore the bounding box that results is always a square.
 
yes it was from a raster image. So I used the SIMPLIFY VERTEX in global map to reduce the points and so the lines get straighten out.

Thanks a lot Arno!
 
Glad to hear you got it working!
 
Back
Top