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

What am I missing here?

Messages
223
Country
us-ohio
Forgive me if, in my ignorance, I'm missing something obvious here!

I have two areas of photo-scenery and relevant agn files. I want to keep them separate. But they lie next to each other and share a common border with some common agn tiles. Obviously this means they have some agn grid in common but the data in each of the border tiles is different (they were created at different times with different data). I can't join the whole of both areas together (or process together) because the output would be too large and, anyway, they must be kept separate (unfortunately).

Of course, the scenery.cfg order of priority decides which area's agn shows up in FSX and which doesn't. This leaves gaps in the scenery for the lower priority. Beyond the common, shared agn tiles there's no problem.

Hope this explanation makes sense.

Do you think there's any way to resolve this in scenProc, perhaps using IMPORTAGN somehow? Won't I then get the same problem at the edge tiles of whatever agn files are written?

Is there any way to merge just the data in "edge" agn files from two areas for both areas? In other words, detect the common tiles and merge data, copying back to both original areas.
 
Hi,

I don't see an easy solution for this yet.

What you could try is first make one area. Then in the second area using IMPORTAGN to load the overlapping agn objects. These will then also be included in the second area.

But in the end you would still manually have to copy back the duplicate agn files to the first area.

Let me think if I can let scenproc do that for you....
 
Thank you Arno. Just for information also - and not on this topic- I keep seeing situations where scenProc notifies that it has written a certain number of agn files but when I look at the folder more have been written. Today I had the biggest difference I've seen so far - scenProc indicated it had written around 101,000 files into my empty directory. When I looked there were more than 102,000! Something suspicious in the counting logic there... ?

ian
 
Humm, sounds weird indeed. Let me check the counting code. I'll see if I can reproduce it here.
 
Hi,

I had a look, but I can't reproduce it here yet. In my Nantucket test project I only have 101 AGN files and there the count is OK.

From looking at the code, I don't see where it can count wrong yet either.
 
Hi,

I had a look, but I can't reproduce it here yet. In my Nantucket test project I only have 101 AGN files and there the count is OK.

From looking at the code, I don't see where it can count wrong yet either.
It's very strange. Happened again - program notes it wrote 126147 files to an empty folder. When I look there are 127,376. In another example, it wrote back 76721 (after an IMPORTAGN) but there were 77140 in the folder afterwards. Perhaps this is just a phenomenon of stupidly large numbers of files?

I can take this off-line or live with it anyway. It doesn't cause any issues with the actual results.

Anyway - my main hope is about the "area" edge question, the best example being if you create agn for The Netherlands and then create a set for Belgium, what happens at the edges when one takes priority over the other and forces "empty" areas of autogen in "common or shared tiles?

Thanks again for all your incredible work, Arno!

ian
 
Hi Ian,

If you use IMPORTAGN scenproc will only report the files it wrote again, so in that case there might be more in the folder.

Of course for an empty export folder that shouldn't happen.

For overlapping sceneries you would indeed need a mechanism to make sure the same agn file is in both sceneries. Else the results at the edge are partly unpredictable. Let be think if I can add something to the scenproc flow for this.
 
a suggestion for a workaround your first issue is to
rename one autogen file set; than place them together
 
Thanks for giving this some thought, Chris. The approach sounds interesting and gives me a couple of ideas but I'm not quite clear what you mean... placing them together in a single texture folder?

I've probably read it the wrong but I think you mean copying them into the same folder but unfortunately I can't do (or at least force it on other users of the files who may have their own specific scenery set-up - particularly for the photo-scenery). Plus - these regions are huge just by themselves and we'd be creating absolutely massive folders of many, many 1000's files (it's possible it would be 100's of 1000's or more) :yikes:. Difficult to manage and risky if other developers of photo-real work with their own folder scheme (say by country or region). In fact there are a lot more than just two areas in the work I'm doing - some of them border on between 2-5 other areas. The areas must work independently, if only one is installed, but must be capable of working together also if more than one is installed.

There's another problem. An example would be the one I gave above - photo-scenery of NL, BE, but say with DE too. Each in a separate folder, maybe even from different sources or vendors. Combining them means moving all the vendors photo-real into one Scenery folder. OK. Then we copy all the agn files into one Texture folder to match. But there's still a problem at the original edges - it's the common agn tiles all with different data. Somebody gets to overwrite the others and the scenery may have some "quirks" with missing data.

I think the only way is to be able to identify the common border tiles and combine data from each of those and copy the tiles into each area. I'm trying to work out a way to do that in a "utility" program - checking for duplicates from each folder but haven't crossed the hurdle of the two files with the same name containing different data, having been compiled necessarily in two scenProc runs :banghead:. If I can do it, I'll share what I have. Possibly Arno, being way smarter than me (and I mean WAY but that's easy!) and being able to dig deeper into the workings, may come up with something first. :wizard:

It needs more noodling because right now I'm stumped other than continuing the method I'm using which is to fix manually in Annotator once I spot the anomalies (and that's a toughy to do over a few thousand miles of edge tiles)...

Cheers - ian

Oh BTW - sorry for my long posts!
 
Hi Ian,
i don't think the agn files name have any importance;
but they all seem to carry the name of the tile they were generated from
hence the issue with overwriting
grab a file rename utility, and give your file a complete new naming convention to prevent overwrite by others

another idea is; overlap little bit of data beyond your border; into to the next section
so your next door region adds back whats expected to be overwritten; through its own texture folder
 
Hi,

Never change the agn file names then they will stop functioning. The filename defines the location of earth where the agn is placed.

Just thinking out load, but if the two overlapping photo sceneries have a proper blend mask, would the autogen not blend as well? Never tested it myself, but since they are two separate sceneries it might work.

It would be impossible to have to merge agn files any possible scenery that borders your project.
 
Hi Ian,
i don't think the agn files name have any importance;
but they all seem to carry the name of the tile they were generated from
hence the issue with overwriting
grab a file rename utility, and give your file a complete new naming convention to prevent overwrite by others

another idea is; overlap little bit of data beyond your border; into to the next section
so your next door region adds back whats expected to be overwritten; through its own texture folder
Hi Chris
I don't think you can change the filenames as they specify the location. I do think your idea of overlapping Dara (extending the area of agn files processed beyond the photo-real borders is the way to go.
Appreciate the inspiration! Now back to the drawing board with my process...
ian

Sent from my SAMSUNG-SGH-I717 using Tapatalk
 
Hi,

Never change the agn file names then they will stop functioning. The filename defines the location of earth where the agn is placed.

Just thinking out load, but if the two overlapping photo sceneries have a proper blend mask, would the autogen not blend as well? Never tested it myself, but since they are two separate sceneries it might work.

It would be impossible to have to merge agn files any possible scenery that borders your project.
Hi Arno
Yes, that's what I thought regarding agn filenames.
Unfortunately I can't guarantee the photo-scenery has a good blend mask. It would depend upon the original source. Interwting thought though if the mask would work to allow lower priority autogen to appear.
I think following up Chris's idea to "overlap" my areas by extending each one beyond their boundaries is the core of an approach. I'm not sure if it will work 100% though - what will happen at the "new edge" where the areas meet, I wonder?
Worth an experiment when I can get to my PC.
Thanks for your help, guys.
ian


Sent from my SAMSUNG-SGH-I717 using Tapatalk
 
In thinking further about my quandary here I believe I'm coming up with a temporary work-around but it necessitates understanding how the agn files align with geo coordinates.

Probably everyone knows this except me!

What exactly is the convention behind the agn filename? Presumably it corresponds to the FSX world grid and tile coordinates but exactly how?
Also is there a formula for aligning the file location or tile definition with lat/lon? Presumably some reprojection from WGS84 (?) to the grid.

I'm hoping if I can crack this, I can simply align all processing with precise tile edge boundaries and have no overlaps that conflict with each other.

Cheers, all.

ian
 
Hi,

The names work as follows. Each number specifies in which quadrant of a LOD tile the autogen tile is. So the number is either 0, 1, 2 or 3. The next number then specifies again the sub quadrant of the quadrant just selected, etc. This goes all the way down till you have identified the correct autogen tile.
 
Think I understand, Arno. I just need to work out a correspondence with WGS84. But not really because I think you might be about to solve my problem anyway... ;-)

Thanks as usual!
 
Let me think if I can let scenproc do that for you....

Well, of course, Arno, you did come up with something marvellous as usual - the Autogen Merge Tool. I've been testing and it's looking really good so far. I'll let you know if I catch anything unexpected (in the autogen) but, yet again (!)

THANKS!!!!
 
i was thinking about you today Ian
i believe i came by a conceptual workaround idea for the overlapping issue you've been having
assuming your generating with splitgrid=agn
a splitgrid=lod13 will generate a different file naming convention, allowing overlap coverage with agn files :)
 
Hi!
Thanks for the tip. I didn't realise this would affect naming. You should also check out Arno's Merge tool which I've been using successfully. I'm not sure how he's implemented it exactly but it seems to work.
 
Back
Top