• 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 Processing step to add a mask?

Messages
1,637
Country
unitedstates
By this I mean, using the Texture Filter Editor (which I might add I am becoming very impressed with the results as I learn this tool), I am getting way more than 64 agn files for a LOD13 tile. I typically split my vegetation and building data strictly among LOD13 gridlines. Because I am using the TFE, to create vegetation there seems to be no way to ensure the polys a cropped exactly among gridlines. Is there a way a mask could be introduced in scenPROC (or the TFE)? I am looking at the Merging autogen files section of the manual but I wanted to ask your thoughts?
 
Hi,

In the script where you use the texture filter you should be able to use the. SplitGrid step as normal to ensure data is in the right tiles.
 
That's what I assumed. So I tried:
SplitGrid|AGN|*
and
SplitGrid|LOD13|*

Is there step, attribute or input I am using incorrectly?

For example, where I expect to see a result of 64 files in a LOD13 tile I am getting 84 files. It appears that vegetation rectangle polys are being created where perhaps several are just barely tipping over onto the next tile which I have encountered in the past where I have had to "mask" them out or I use the largest duplicate file to overwrite the smaller file. There is no way to export a process to .shp files in scenPROC. Only agns?

thx
 
I guess some data is just outside that area. If you want to restrict it to a specific area exactly you should not use a * as the last argument of SplitGrid, but provide the bounding box of that area you want processed.

scenProc can export to SHP (and many other GIS formats) with the ExportOGR step.
 
Ah.... interesting. Thank you for the tips on what to try. Forgot ExportOGR produces shp files. Down the road I may not need worry of overlapping as my processing becomes more automated plus old habits of needing\wanting to keep results confined to the grid because of reviewing and clean up.

I have masks that I would like to try with your suggestion. How might that look like in the SplitGrid step?

'SplitGrid|LOD13|mask.shp' <--- ???? (import the mask in scenPROC or just provide direct path to the file?)
 
Found the error and it was on my side. My mask was off by 3px thus causing additional agn files being created. I am now back at 64 LOD13 files. But I am still interested in if I can add a shapefile as a mask? I tried several variations from the above SplitGrid I wrote without success.
 
Hi,

See the examples in section 10.2.31 of the manual, you can't specify a SHP file in the SplitGrid step. But you can provide the 4 bounding coordinates as the 2nd argument and then any data outside that rectangle will be dropped.
 
Back
Top