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

Stick buildings

Messages
93
Country
canada
Hey all,

I tried to build a scenery today that uses the same code logic that I successfully used a week ago on another scenery. There, I hide nice buildings including houses, industrial buildings, and warehouses. My new scenery uses the same logic using a GIS OSM file that I have modified by removing some of the already existing polygons and adding my own polygons with building types as shown below. However, the resulting building AGN gives me stick buildings with a large roof (see pic below). Any ideas what is going on? (I have included the shape file)

Thanks

IMPORTOGR|D:\SBX\SBX315\Tools\Work\scenproc\CYXE\shp\extra2.shp|-107;-106;52;53|*|NOREPROJ|DONTPROCESHOLES

SPLITGRID|AGN|-107;-106;52;53|buildings="*"

SETAGNBUILDINGHEIGHT|*|1;0;0;0
CREATEAGNGENBUILD|FTYPE=POLYGON;type=house|{56c05be8-a693-4208-94e0-ec26aaaa0559}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|1;0;0;0
CREATEAGNGENBUILD|FTYPE=POLYGON;type=whse|{e6d8abb4-739a-4788-a7de-9756452afbcf}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0,9;0,1;0;0
CREATEAGNGENBUILD|FTYPE=POLYGON;type=retail|{b4f8bcf2-c590-4a29-bbcb-01bcba6545ba}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0,5;0,5;0;0
CREATEAGNGENBUILD|FTYPE=POLYGON;type=office|{87438be6-acb1-4f40-985a-e0c124fd61b7}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0;1;0;0
CREATEAGNGENBUILD|FTYPE=POLYGON;type=hotel|{fc1ec387-76d2-4d16-8a6c-4e86cc5c76ce}|MAXRATIO=2

EXPORTAGN|FSX|D:\P3DV4\photoscenery\CYXE\texture


1564441665300.png
 

Attachments

Last edited:
you have too many argument for ImportOGR, it requires only 4!
and your script syntax could use updating so scenProc wont assume for you,

splitgrid step doesn't need the same bounds again or the filter at the end,
i believe you can place it in your first import filter,
 
Last edited:
Hey Chris,

ok, I made some changes to update the syntax, but I still get stick buildings

IMPORTOGR|D:\SBX\SBX315\Tools\Work\scenproc\CYXE\shp\extra2.shp|-107;-106;52;53|*|NOREPROJ


SPLITGRID|AGN|*|FROMFILE="extra2.shp"

SETAGNBUILDINGHEIGHT|*|1;0;0;0
CREATEAGNGENBUILD|FTYPE="POLYGON" And type="house"|{a9b0e686-0758-4294-a760-9bb4fd341621}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|1;0;0;0
CREATEAGNGENBUILD|FTYPE="POLYGON" And type="whse"|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0,9;0,1;0;0
CREATEAGNGENBUILD|FTYPE="POLYGON" And type="retail"|{b4f8bcf2-c590-4a29-bbcb-01bcba6545ba}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0,5;0,5;0;0
CREATEAGNGENBUILD|FTYPE="POLYGON" And type="office"|{87438be6-acb1-4f40-985a-e0c124fd61b7}|MAXRATIO=2

SETAGNBUILDINGHEIGHT|*|0;1;0;0
CREATEAGNGENBUILD|FTYPE="POLYGON" And type="hotel"|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2

EXPORTAGN|FSX|D:\P3DV4\photoscenery\CYXE\texture
 
Last edited:
Thanks for the reply toprob. It's quite common in Europe to use commas as decimals. It's part of the IS system. Imperial system uses decimals. I remember having this convo with Arno and he included both decimals and commas as float options. I have changed the code though to decimal and still get stick buildings. It's almost as if the code treats these polygons as points. I have checked the shp file in GIS and it says it is a polygon layer
 
You don't need the set height step multiple times, since it is a setting per tile. So only the last is used.

I guess you must have some small polygons although I thought scenproc has an automatic filter for very small ones (you can see that in the log).

Having the filter in the SplitGrid looks OK, that's to provent buildings from being sliced.
 
you have too many argument for ImportOGR, it requires only 4!

Nonsense, this script is perfectly valid.

splitgrid step doesn't need the same bounds again or the filter at the end, I believe you can place it in your first import filter,

The filter at the end is needed to prevent buildings from by sliced in two. So keep it. It's very different from an import filter. The bounding box is probably not needed, although it won't hurt either.
 
Hey Arno,

Thanks for the reply. I have attached two images of the GIS project. There are two Shapefile layers highlighted. Extra2 (in yellow-green), which is my own rendition and gis_osm_buildings_a_free_1 (in brown) which comes from Geofabrik. As you see, my polygons are covering fairly large areas of warehouses comparable to those in the geofabrik product, and there are only a few small house polygons. I am at a loss as to why this project produces stick buildings when the script worked for another airport just a few hundred miles away. I know my raster image works for vegetation as i tried it earlier, just this problem remains. I am going to try a few different things tonight when i get home
 

Attachments

  • CYXE.png
    CYXE.png
    1.7 MB · Views: 452
  • CYXE_layer_info.png
    CYXE_layer_info.png
    820 KB · Views: 371
Master has spoken <3
i clearly haven't dabbled in rendering buildings for a while now,

i think this should work, if it doesn't it has to be something in the data itself,
especially if you already used the same script to generate buildings in the same project,

IMPORTOGR|D:\SBX\SBX315\Tools\Work\scenproc\CYXE\shp\extra2.shp|-107;-106;52;53|*|NOREPROJ|DONTPROCESHOLES
#
SPLITGRID|AGN|*|buildings="*"
#
SETAGNBUILDINGHEIGHT|*|1;0;0;0
#
CREATEAGNGENBUILD|FTYPE="POLYGON" AND type="house"|{56c05be8-a693-4208-94e0-ec26aaaa0559}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE="POLYGON" AND type="whse"|{e6d8abb4-739a-4788-a7de-9756452afbcf}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE="POLYGON" AND type="retail"|{b4f8bcf2-c590-4a29-bbcb-01bcba6545ba}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE="POLYGON" AND type="office"|{87438be6-acb1-4f40-985a-e0c124fd61b7}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE="POLYGON" AND type="hotel"|{fc1ec387-76d2-4d16-8a6c-4e86cc5c76ce}|MAXRATIO=2
#
EXPORTAGN|FSX|D:\P3DV4\photoscenery\CYXE\texture
 
Thanks for the help Chris, unfortunately, it still doesn't work. I have tried everything in the last few hours from remaking the shapefiles from scratch, moving scenery layers, turning off the ORBX global airports in case of a conflict (although there shouldn't be), using latest version of scenproc, I even reproduced my previous scenery where I had success with buildings and had no problem. Apparently Saskatoon, Canada is the home of stick buildings!

So, yes, I think it must be the data and not scenproc. I just don't understand where and why.

Not all is lost, I am going to try and produce a raster image of these buildings and convert the shapes to polygons and try it that way. I've had some success with that before
 
Ok, this is driving me nuts. I'm beginning to wonder if it's my version of P3Dv4. Is there any chance someone could try and process these shape files? Just to see what you guys get?

I can provide the photoscenery as well, it's just quite large though. Thanks
 

Attachments

I have inspected the created autogen in the annotator and the output from scenproc seems to have worked. Some buildings have been split into smaller footprints, but I don't see that being a problem. However, I would say about 90% of my autogen does not show up in P3D and when it does, half of it are sticks. So why isn't showing up? Is it worth taking this to another forum room?

What does P3dv4 use (autogen.bgl?) to make autogen to show up in the sim?

I Still would appreciate someone processing those shp files I posted above. Thanks

1564598593540.png
 
Last edited:
What does P3dv4 use (autogen.bgl?)
that was in regards to the above,

standard annotated agn works with landclass but not over PR,
in your case i think you need a bgl output not agn,

still doesn't explain why you are getting that odd output,
i run the script here, but i dont have PR,
and the default agn there is dense; without excluding etc. i cant tell much,
while i couldn't tell... i didn't see any sticks,
 
Ok thanks for looking. I have a basic PR bgl of the scenery. Ill post it up here later today. You might be able to see a bit better with that.

So what autogen should I be using? I’ve used default values before on PR and it works fine.


Sent from my iPhone using Tapatalk
 
we have agn for landclass, agn instructions for PR, and than there's another form of agn/xml,
if your project is PR based than the middle option is prob what you want,
 
ok, after to some effort and a few changes, I managed to finish the project. I used ADE for all industrial shapes and some how managed to get house autogen to show up using the PointToPolygon command. Thanks for the help

1565229088392.png


1565229164496.png


1565229218379.png
 
Back
Top