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

Using USBuildingFootprints P3D V5

Hi,

The SHP file looks OK to me, it has the right projection.
 
So if you use the same GUID from the OSM script (I see in your other script there is another GUID), do they then show?
 
Yes, I see that you use two GUIDs with the OSM data. And looking in your screenshot you get buildings with that script.

But in the script you used with the USBuildingFootprint data I see you have a different GUID. Did you try the same GUID there as with the OSM data?
 
In my first post I used the script below and the shape file with the GUID shown below and I do NOT get any autogen.

I also used the same GUID below in the OSM script and I DO get autogen.

ImportOGR|C:\Users\Zap\Desktop\ut\UtaShp.shp|-112.0;-111.0;40.0;41.0|*|NOREPROJ

SplitGrid|AGN|*|building="*"

CreateAGNGenBuild|*|{d4ee02a2-ed47-4f10-b98c-502516983383}|MAXRATIO=2

ExportAGN|FSX|C:\Users\Peter\Desktop\NewFolder
 
I don't think this is a P3D V5 issue. I can repeat the same results perfectly with P3D V4....... that is, shape file - no autogen, OSM file -I get autogen.

Can you test with P3D V4 if you don't have V5 ?
 
Hi,

Since I don't have your photoreal scenery it would be hard to test it here.

The log files you have showed indicate that with the SHP file still thousands of AGN files with many buildings are created. So I don't know why these would not show up in the simulator.

If you load your photoreal BGL in Annotator, do the buildings show there?
 
First there are 734 BGL files for this area, so which one should I load ?

Also, where do I get he Annotator application from ?
 
Annotator is part of the SDK. Just one of the file should be sufficient to test if you can see the buildings in there.
 
Yes there is autogen I found on two files at random.. This is with the shapefile autogen in the texture folder

Annotation 2020-05-07 010123.jpg


Annotation 2020-05-07 004913.jpg
 
So that indicates that the AGN files are OK. So the question remains why they do not show in the simulator. I guess it must be something with the GUID in that case.
 
I also loaded the scenery in P3D V4 and it shows no autogen but that GUID definitely exists in V4 because it shows that GUID in the list.
 
Can you post the GUID you are using again? So that I can check it.
 
Hi,

I don't know where you took that GUID from, but if I check it here on my computer it is a custom roof from an addon (so it is not a default GUID). That would explain why it does not show. Why not try to use the default gabled roofs first?

{5ae04eb6-934c-4f63-bb48-5e7dee601212}
 
You are a genius... Autogen to the horizon - see image below !! Only problem is all the buildings have that roof !

So the problem was the GUID.

So, a couple of questions:

How can I modify the OSM code below to use the shape file to cater for polygons with differing building areas and a different number of vertices ?

Which are the default GUIDS I could use for large commercial/industrial type buildings ?

Where can I find a list of the default building roof GUIDS and is there a tool where I could view them ?

I have ORBX scenery installed, can I use those GUIDS ?



Code:
SETAGNBUILDINGHEIGHT|*|1.0;0.5;0.0;0.0

# Add attribute to indicate the type of building
# 1 = ALMOST RECTANGLE (BASED ON AREA RATIO)
# 3 = REGULAR SHAPED (MANY PARALLEL EDGES)
# 4 = CONVEX POLYGONS
# 5 = CONCAVE POLYGONS
AddAttribute|FTYPE="POLYGON" And building="*"|Integer;BUILDTYPE|5
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FAREARAT>0.80|Integer;BUILDTYPE|1
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FNUMVERT<10 And FNUMPERPANG>3 And FNUMNOTPAR<2|Integer;BUILDTYPE|3
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FCONVEX=1|Integer;BUILDTYPE|4
# Classify industrial/commercial buildings
AddAttributeIfInside|FTYPE="POLYGON" And building="*"|LUCODE=16|String;BUILDCAT|INDUSTRIAL
AddAttributeIfInside|FTYPE="POLYGON" And building="*"|LUCODE=15|String;BUILDCAT|COMMERCIAL
# Add attribute for roof type
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>5|String;ROOFTYPE|PEAKED_ALL
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>5 And FLENGTH<12|String;ROOFTYPE|PEAKED_SIMPLE
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>20|String;ROOFTYPE|PEAKED_LOW_PITCH
AddAttribute|BUILDCAT="INDUSTRIAL"|String;ROOFTYPE|PEAKED_LOW_PITCH
AddAttribute|BUILDCAT="COMMERCIAL"|String;ROOFTYPE|PEAKED_LOW_PITCH
# Remove complex buildings
ReplacePolygonByBuildingRectangles|BUILDTYPE=3|0.8;4;4|0.25;2.0;0.5|Integer;BUILDTYPE|2
# Create buildings autogen
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_ALL"|{c05c5106-d562-4c23-89b8-a4be7495b57c}|MAXRATIO=2
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_SIMPLE"|{d4ee02a2-ed47-4f10-b98c-502516983383}
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_LOW_PITCH"|{a9b0e686-0758-4294-a760-9bb4fd341621}
#
CreateAGNGenBuild|building="*" And FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CreateAGNGenBuild|building="*" And FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}





2020-5-7_15-11-26-565.jpg
 
Last edited:
OK, with the simple script below I was able to get the result in the image below.

I have used one Orbx Industrial roof type GUID for FWIDTH >20.

How can I pick a random roof from, for example, the ORBX Industrial roof types shown below for FWIDTH > 20 say ?


Annotation 2020-05-07 163646.jpg


Code:
ImportOGR|C:\Users\Peter\Desktop\ut\UtaShp.shp|-112.0;-111.0;40.0;41.0|*|AUTODETECT

SplitGrid|AGN|*|*

SETAGNBUILDINGHEIGHT|*|1.0;0.5;0.0;0.0

#
CreateAGNGenBuild|FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CreateAGNGenBuild|FWIDTH>20|{b2c5ff64-0dda-41fc-a3af-f54f32255fe9}

ExportAGN|FSX|E:\P3D V5\Addon Scenery\Utah\texture


2020-5-7_16-33-45-34.jpg
 
Hi,

If you intend to share your autogen with others I would not use definitions from other developers, you can better use the default FS definitions or create your own.

If you provide multiple GUIDs, seperated by a ; scenProc will select one randomly from the list for each building.

Another option is that you select a GUID that is a group of multiple roofs already. For examples the GUID {5ae04eb6-934c-4f63-bb48-5e7dee601212} I posted before is a grouping of all gabled roofs.

scenProc has various special attributes, like FWIDTH, FLENGTH, FAREA that can help you to select long or big buildings. You can then assign a different GUID to different categories of buildings. How you design these filters is up to you, it depends on the kind of effects you want to realize. Section 5.4 of the manual shows an empty script for this.
 
Hi Arno, thanks. Yes I would prefer to use the default definitions.

How do I find out, for example, the default GUID for a group of Industrial or commercial buildings ?

How can I see what they look like before I use them ?
 
Last edited:
Back
Top