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

P3D v5 Vegetation Autogen from Point Shapefile?

Messages
542
Country
australia
Hi,

I have had success so far creating autogen vegetation and buildings from two shapefiles in each area, with buildings and landuse in their names. There is another shapefile which has "natural" in the name, and it appears to made up of singular points, each representing trees, peaks, cave entrances and springs, from what I have found so far. There are a lot of specifically placed trees, so I was wondering if I can use those points to place trees? I've tried a few different commands, but the only one that worked was the CreateAGNRectVeg command. That did create a lot of objects and over 200 autogen files, but I have just checked an none of the autogen actually appeared. The script I used, just to experiment with these points was:

#
ImportOGR|C:\Program Files\scenProc_3.0_x64\gdal-data\cantabria-latest-free\gis_osm_natural_free_1.shp|*|*|NOREPROJ
#
SplitGrid|AGN|*|building="*"
#
# creation of the vegetation
CreateAGNRectVeg|FTYPE="POINT" and fclass="tree"|{6518f46e-debc-4f66-990e-9ec05421b6de};{929531c5-813c-43f6-8684-8470f9ecd303};{7477a821-8ce9-4687-87b9-2b130a30fa80}
#
ExportAGN|FSX|F:\Photoreal\Spain_PR\Cantabria\Texture


And the log result for that was:

1:19 AM ImportOGR Information Reading file C:\Program Files\scenProc_3.0_x64\gdal-data\cantabria-latest-free\gis_osm_natural_free_1.shp
1:19 AM ImportOGR Information Read 49406 features from file
1:19 AM SplitGrid Information Splitting features in 0.0146484375 x 0.010986328125 grid...
1:19 AM SplitGrid Information Features divided in 8073 cells
1:19 AM CreateAGNRectVeg Information Creating autogen rectangular vegetation with filter FTYPE="POINT" and fclass="tree"...
1:19 AM CreateAGNRectVeg Information Created 46935 autogen objects
1:19 AM ExportAGN Information Writing AGN files to folder F:\Photoreal\Spain_PR\Cantabria\Texture
1:19 AM ExportAGN Information Created 46935 rectangular vegetation objects
1:19 AM ExportAGN Information Written 218 autogen files
1:19 AM SceneryProcessor Information scenProc finished processing
1:19 AM SceneryProcessor Information 0.45 seconds for ImportOGR
1:19 AM SceneryProcessor Information 0.08 seconds for SplitGrid
1:19 AM SceneryProcessor Information 0.15 seconds for CreateAGNRectVeg
1:19 AM SceneryProcessor Information 0.04 seconds for ExportAGN
1:19 AM SceneryProcessor Information 0.71 seconds total


Here are two screenshots of one of the point shapefiles:


Screenshot (1446).jpg



Screenshot (1449).jpg



TIA.
 
Hi,

That's the right approach to use point features and rectangular vegetation. Did you double check that the guids are valid?
 
Thanks for confirming Arno. I thought the guids were valid, as I had used them in other files and I got them straight from a FSX guid thumbnail viewer, but perhaps they didn't show up in the other scenery either. I have just check in the autogen annotator and there is no autogen on the PR I was adding it to. I will keep experimenting with some other guids.

Thanks again.
 
I just checked your script inside scenProc and I do not get any names (e.g. code completion) for those guids. So I don't think they are part of the default autogen definition file.
 
Thanks Arno. You may be right. I ended up deleting all the guids and inputting them directly in ScenProc. BTW, where does ScenProc read the guids from? I am using P3Dv5, so does it read directly from that sim's root folder?

After running a complete Cantabria script again there was vegetation everywhere, compared to zero previously, so looks like the guids were the issue.

Thanks.
 
scenProc does read the information from the autogen definition files in your sim folder indeed. You can specify in the options what your preferred sim version is and that one is used. If you have only one installed it should be detected automatically.
 
Back
Top