I have made a new video tutorial that demonstrates the typical workflow I use to create autogen from OpenStreetMap data. In this tutorial I am creating forests, buildings and lights as FSX autogen. The tutorial also explains way to classify the buildings into types and categories, for example industrial or residential buildings.
Down time
Just a quick reminder that this website will be offline for an hour or so tomorrow morning. This means that also the development releases of my tools are not accessible for that time.
As some of you might know the development releases and this site our hosted on a small server at my home. And tomorrow I will be making some small adjustments to the electrical wiring in the house to make it safer for our baby that can almost crawl now. So therefore the server will be offline for a while.
Auto completion for attributes
From the next development release scenProc has a new feature, it is now possible to get auto completion of possible attributes and their values. All you have to do is scan the file you will be processing by pressing the “Scan attributes” button. Be aware that this might take a while for big files.
After that you will see that the auto completion when constructing a filter also shows the attributes and their possible values (as found in the OSM or Shapefile). This makes it a lot easier to construct the filters. And it is also a great way to explore which possible values there are for you to use.
Below is a quite video I made to demonstrate the feature.
Turn on the turbo!
A while ago I made the scenProc step to split the features in the correct grid faster by using multiple threads. I have now updated almost all of the steps to use multiple threads and process the features in parallel. So this should reduce the time needed to process bigger areas quite a bit. Especially on current multi-core computers running in multiple threads should speed things up quite a bit.
The only exception to this is that the steps to import data from file still use on thread, since there is only one file to read.
These changes will be available in the next development release.
Creating rectangles from a footprint
I have added a new processing step to scenProc, with this step you can replace a complex building footprint by a number of rectangles. The step only takes the filter of the objects you want to process as argument. So for example:
REPLACEPOLYGONBYBUILDINGRECTANGLES|BUILDTYPE=3
It only works well on footprints that have many parallel edges, else it is very hard to represent the shape by rectangles. Below is a picture showing the result for some test area I did. The pink footprints are the new rectangles that have been made. As you can see, sometimes you still see part of the original footprint. So the result is not yet perfect, but when viewing the resulting autogen I think it looks quite convincing already.
I plan to do another video tutorial soon, where I will demonstrate more of the autogen creation flow and how this new step fits in.
Features with holes (2)
Not so long ago I posted about added support to read features with holes from OSM files. Recently I learned that these changes slowed down reading OSM files more than 60 times. So I have removed this feature for now. Back to the drawing board, let’s see if I can find a more efficient way to do it.
A FS developer conference?
A user of the FSDeveloper community started an interesting discussion this week, would it be possible to organize a conference for FS addon developers? Similar to the AltDevConf it should be an online conference so that it is easy for people from everywhere to attend.
At FSDeveloper we find this a very interesting idea, so we have put together a survey to get a better idea of how many people would like to attend such a conference and which topics you would like to see covered. So please take a few minutes to fill in this survey.
Using your feedback we will then decide if we can organize such an event next year. Personally I think it would be very nice if we could. The 2007 DevConf organized by Microsoft was a great event to gather knowledge about addon development. And now so many years later I think it would be great to have another event where we can share our knowledge about this hobby.
Texture border in drawcall minimzer
The drawcall minimizer has a new option, you can now add a border around your textures. This means that a row of pixels is added with the same colour as the outside of your texture. Doing this can prevent visible edges or black lines after running the drawcall minimizer. Below is a screenshot of the material editor where you can now enter the size of the border in pixels, the default size is 1 pixel.
FSC exporter
I have added a new exporter to ModelConverterX, from now on you will also be able to export to the FSDS FSC format. The exporter will save the geometry, material and textures. Animations are not supported at this time.
With this new additional it is now possible to convert both to and from FSDS. So especially for developers using FSDS that should open new ways to exchanging (parts of) models between FSDS and other programs.
Let there be rectangles…
I have added a new processing step to scenProc that allows you to turn polygons into rectangles. This step is mainly useful when creating autogen vegetation for FS2004, since the vegetation must be rectangular there.
What the step does is just take the polygon and try to fill the shape with rectangles of the size specified. You can also specify the percentage of overlap you want between the rectangles. A random factor can also be specified to give the position a little more variation. Below is an example configuration file that shows how it works:
IMPORTOSM|andorra.osm|*|landuse EXPORTSHP|landuse=forest|poly REPLACEPOLYGONSBYRECTANGLES|landuse=forest|0.0025|0.25|0.1 EXPORTSHP|landuse=forest|rect
Below is a screenshot showing the result.