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

Alternatives to Annotator?

Messages
144
Country
us-arizona
I'm still on course on my huge Phoenix photoreal project (I keep finding new really cool areas to add to the peripherals) and have found the most daunting aspect to the whole process is laying down decent autogen buildings and vegetation on the over thousands of scenery tiles that have been created. Annotator from the Microsoft Scenery SDK is a basic program but it's giving me carpal tunnel having to draw the box around every building and vegetation area. Some of the tiles are huge housing developments and to get the real effect of the myriad of homes (especially the night lighting from them) you have to create hundreds of little tiny buildings per tile.

Here's what I'd imagine a great autogen creation program to be. First of all, the window in which you choose which tile you want to edit clearly shows which ones you've already done and possibly a thumbnail rendering of the image and the density of the autogen on it.

Secondly, I don't want to have to define for each file I edit the building heights or the vegetation distribution. Annotator lets you default to the last used values but that requires a great amount of mouse movement and clicking before you even begin to edit. If you don't define them, you end up with huge buildings. An area like Phoenix, the buildings rarely get up to even 2 stories.

Now this would be the ultimate. Instead of going in and drawing the little boxes where you want the buildings, why can't you just point to the middle of the building in the image and some basic AI computes the corners for you. Most of the industrial buildings I put in have very white roofs. Should be easy to write code to look for the extents of the light colored pixels and estimate the box. If it does a poor job you have the ability to override the choices.

You should be able to define an area as a housing development and specify the house size. The program then goes in and, based on the grid it finds in that part of the image, randomly puts in houses for you.

An interface to FS would enable you to slew over the area you wanted autogen in and the program would pick out the scenery tile you needed to edit.

Man, what a time saver this would be. I might just tackle this one myself. Need a good excuse to get proficient on VB.net. Anyone had any experience with programming that queries image pixels? Is there a routine already written out there for taking a DXT1 file and converting it back into a standard bitmap image?

Art Martin
 
Hi Art,

I have thought about a tool like that before. As far as I know nothing else then Annotator has been designed yet. But due to lack of time I don't think I will be able to start on such a tool soon :).

About reading the textures, I think Martin Wright has an explanation on how to work with DXT textures on his site. Many design programs do it, so it should be possible.
 
I've been thinking about a similar tool... The default rectangles for trees are a pain to code... Would like a lasoo tool like in photoshop to define a circular area otherwise I have to build 30+ boxes to get to the edges of a round edged forrest *grumble grumble*...

Some good ideas on automation :scratchch :wave:
 
Alternatives to Annotator

Tempting to program isn't it? I'm gonna go do some searches in the VB.net developer's forums to see if there's some code already written (hate reinventing the wheel) that will scan pixels in a bitmap and look for patterns (color changes drastically on an even interval). Doesn't sound daunting. Oh boy do I agree on the trees. Golf course are hardly ever laid out on a NS EW alignment. Think it's cause golfers drink a lot. I haven't looked yet but is there an explanation of the format of the .agn files? I would assume they're compiled for size and fast loading. More than likely in the scenery SDK.

This forum sure gets you responses faster than the fligtsim scenery design forum. Thanks for responding. I have 25 looks and no replies on the other site.

Art Martin

I'll put a screenshot of the latest scenery area in the screenshots forum if I can imbed a file from home.
 
Latest screen shot

Thought there was a screenshots forum. Just noticed the embed button below. Here's the mountains along I17 in the far north Phoenix Valley.

Art Martin
 

Attachments

  • PhxScreen18.jpg
    PhxScreen18.jpg
    28.4 KB · Views: 648
Hi Art,

I tried to search the internet for some papers and articles on pattern recognision before, but it can be rather complex.

I also tried it with an aerial photo I had in MatLab and it is rather easy to detect lines in the photo. But to combine these lines into information about polygons is more challenging.

Maybe selection by color will work, but then you still have the task at the end to convert a group of pixels into a polygon and determine the correct heading of it.
 
Alternatives to Annotator

Well, if one can find lines within a box or freehand area that the user defines, then it should simply suffice to plop some small houses along those lines. Prior to the code being run, the user can answer some simply questions such as whether all the lines will be horizontal, vertical, and/or diagonal and the size of the houses you wish to place.

Obviously there will be no perfect system in pattern recognition. I envision it as simply a helper. Once the program creates the houses, there's the famous UNDO button or the user can selectively remove the houses he doesn't like.

Does the annotator program have command line info you can send in? Perhaps the first step is simply an external program that gives you a graphical view of the texture files you want to edit showing the ones that already have an .AGN file and then starting Annotator and sending in the filename and desired presets. That sounds pretty simple.

Art Martin
 
Alternatives to Annotator

Damn, it figures. Appears there's no command line parameters you can pass into Annotator. Looks like the project becomes a complete one. Off to programming.

Art Martin
 
I indeed think the tool will have to write the new AGN file itself. Which is probably better, as you can then allow drawing other shapes then in Annotator and write them in the AGN file using the shapes Annotator allows.

I think the first part for such a tool would be to get the pattern recognision working and see if it is useful enough to detect houses etc.
 
Back
Top