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

HELP! - Merging multiple agn's for different vegetation

Kelvin Richardson

Resource contributor
Messages
152
Country
newzealand
Hi Arno,

I'm having some issues with your merging tool.

I have multiple folders with their respective AGN files for different vegetation and want to merge them all into one texture folder.

For example, I have indigenous forest, exotic forest, mangrove, shelterbelts, etc... and want all of these to merge into one folder but of course each folder has the same AGN file because they contain multiple vegetation features for an area.

I have used your Merge Tool in the Tools menu in ScenProc but it doesn't merge everything as when I go into the sim only some vegetation features show but not all of them.

I'm now confused because I thought this tool was designed to merge all AGN files. Because I have about 16 folders with different vegetation types I'm trying to find a way that I don't have to repeat my steps, it takes a long time to process everything and don't want to do it more than once.

I understand there is your Merge Tool in Tools menu as well as using IMPORTAGN but I am now not sure which method I should be using even after trying to understand your documentation.

My IMPORTAGN config is as follows. It is all in one single instance of ScenProc but I did this because when I use the batch mode on all AGN files it seems not to write each file to the directory and looks like it would takes many days to process this way.

So I would like from you, the most efficient code to use and method, so I can simply merge the files I have ready to merge. It is my final step to get all my hard work to show in the Sim.

Your help is very much appreciated. I am asking for a little more than "you need to use the "IMPORTAGN" step as this won't help me, I'm asking for a little more help with how the code should look exactly to be able to merge all files.

One further issue though, is that I run out of memory trying to process using the below code, and this is only on the first vegetation type.

# @0@=
#
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\BroadleavedIndigenousHardwoods\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\DeciduousHardwoods\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\ExoticForest\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\Fernland\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\Flaxland\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\GorseandBroom\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\HarvestedForest\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\IndigenousForest\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\Mangrove\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\BroadleavedIndigenousHardwoods\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\ManukaandKanuka\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\MatagouriorGreyScrub\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\MixedExoticShrubland\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\Shelterbelts\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\SubAlpineShrubland\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\TallTussockGrassland\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\TreePoints\
IMPORTAGN|D:\Program Files (x86)\AgnMergeToolv2.30\Convert\WoodyBiomass
#
SPLITGRID|AGN|*
#
EXPORTAGN|P3D v2|D:\TerrainProjectData\Staging\vegetation\all_veg_merged\texture
 
Hi Kelvin,

My first reaction would be why do you go over the trouble to create some many folders with autogen that you need to merge afterwards? It should be much easier to create them all from one script.

Normally the IMPORTAGN step is used to import existing autogen (for example for a scenery that has vegetation autogen) and then add extra elements (let's say buildings). But I think the script you post should also work. Only the SPLITGRID step is not needed, since the autogen is already split. So your script looks fine.

The merge tool assumes that you have a main folder with all files in there and then it will merge all overlapping autogen from the other folders. It was not designed to merge at the borders of countries where sceneries overlap.

So I think the IMPORTAGN approach is best in your case.
 
Thanks for getting back to me.

I had so many folder so I could split out each vegetation type as I was mixing with multiple datasets to find the best fit for the photo scenery.

Also I wanted to modify the vegetation densities and to do this I needed to split out the sets.

I have let the process go with the above script, it's taking a long time (I assume this is normal) but I'll let it continue then.

Cheers

Kelvin
 
How many autogen files does each folder contain? Are you generating a big area?

Importing the data shouldn't take extremely long.
 
There's about 180000 Agn's.

I'm completing the entire country (New Zealand) as I have all the esri shape files to do this. There are a lot, ~20GB.
 
Ah right, then it will take longer.

For such a big area it's in general better to split the work in different runs. For example per LOD 8 tile or so. Loading and processing it all at once will take very long due to the amount of tiles.
 
Back
Top