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

FSX Resample.exe Not Compiling

So you are recommending I create the masks from the re-projected imagery TIFF not from the original TIFF before it was re-projected?
I created the masks before I re-projected the imagery, thus is why I did not make the masks from the re-projected imagery.
If this is the case, should I open my re-projected imagery TIFF in Photoshop or GIMP and insert my mask layers into it, and then delete the imagery layer than export the masks, and then no further action will be required to re-project/geo-rectify my masks for use in SDK resample and to not have a mis-alignment problem when viewed in the sim?
 
https://www.fsdeveloper.com/forum/threads/resample-exe-not-compiling.442820/post-800485

I created the masks before I re-projected the imagery; (this) is why I did not make the masks from the re-projected imagery.


So you are recommending I create the masks from the re-projected imagery TIFF not from the original TIFF before it was re-projected?

If this is the case, should I:

* open my re-projected imagery TIFF in Photoshop or GIMP

...and:

* insert my mask layers into it

...and then:

* delete the imagery layer

...then:

* export the masks

...and then:

* no further action will be required to re-project / Geo-rectify my masks for use in SDK resample, and (the Masks would) not have a mis-alignment problem when viewed in the sim?

Only do the above, if you can precisely align the Mask images with the background layer within the graphics application.

Otherwise, create new Masks aligned with the actual background image you plan to use with SDK Resample.

This should be easier to do if you use the 'Magic Wand' tool and related Selection / Path tools in your graphics application. :idea:


Regardless of which GeoTIFF aerial imagery you use for the background image (whether original UTM or re-projected Geographic), as long as you have correct Geo-rectification Metadata info stored separately from that GeoTIFF aerial imagery, and as long as you do not change the Pixel Row and Column totals for that image, you can successfully Geo-rectify (using the saved Metadata info), that same image or the derived Mask images when you export them from your graphics application.

NOTE: It is important that you have correct Geo-rectification Metadata info stored separately from that GeoTIFF aerial imagery, because a graphics application will 'eradicate' the Geo-referencing info within the GeoTIFF file during editing / saving.

Masks must match the GIS projection, image size in Pixel Row / Column totals, and Pixel size ...of the background image. :pushpin:

Regardless of what GIS projection is initially used in a graphics application to edit / derive imagery, all final images must be in Geographic / WGS84 / Arc Degrees when submitted to SDK Resample.

Does this explain the requirements in a sufficiently comprehensible way ? :scratchch

GaryGB
 
Last edited:
Does this explain the requirements in a sufficiently comprehensible way ? :scratchch
I think so. Let me be sure I understand everything correctly.

I can open my mask file and my re-projected imagery file in Photoshop/GIMP, and copy the mask layers from the mask images to the re-projected imagery file, and move my new layers around to line them up with the underlying imagery file, and then delete my imagery layer and export the masks, and then my masks will automatically be re-projected and geo-rectified the same way as the imagery file, so I should not encounter the error in posts #35 and #47 in this thread. Yes? No?

Also, when you say "only do the above, if I can precisely align the Mask images with the background layer", why is this a very important requirement if I want to achieve this? Just curious. :)

Very many thanks for your help.
 
What I meant to convey was that in ex: GIMP, you could try to: :pushpin:

1.) Open the aerial imagery already 're-projected' to Geographic as a background image (for which you have re-projected metadata saved).

2.) Add a "New Layer" with a "Transparency Fill" attribute

3.) Open the Blend Mask image

a.) Copy and paste it into the "New Layer" (which has a "Transparency Fill" attribute)

b.) Scale the floating selection with the Scale tool so it is aligned with the aerial imagery background image


4.) Add a "New Layer" with a "Transparency Fill" attribute

5.) Open the Water Mask image

a.) Copy and paste it into the "New Layer" (which has a "Transparency Fill" attribute)

b.) Scale the floating selection with the Scale tool so it is aligned with the aerial imagery background image


...basically following procedures described in the 'Tiberius et al tutorial' cited above, except attempting to use and modify the existing Mask images you already have created, so that they precisely align with the background layer within the graphics application.

https://www.flightsim.com/vbfs/show...otoreal-scenery-for-FSX&p=1690194#post1690194


Otherwise, create new Masks aligned with the actual background image you plan to use with SDK Resample, following procedures described in the 'Tiberius et al tutorial' cited above.


Try this first with the 24-Bit RGB color BMPs; once you get that working, we can later try to output (smaller) 8-BIt gray-scale Masks instead. ;)


Why this is "very important":

Again, Masks must match the GIS projection, image size in Pixel Row / Column totals, and Pixel size ...of the background image; otherwise you will have water where it does not belong (ex: over fields or roads ...instead of being aligned over your water bodies in the aerial imagery). :pushpin:

GaryGB
 
Last edited:
Ok. I will be sure my masks are aligned good enough so that water will not be in unwanted locations.
I will work on that soon and then compile and test.
 
Sorry to barge in once again:(.
Once you have your BMP/TIFF photoreal done, why don't you just make the blend and watermask yourself from the photoreal?
It is just a matter of converting the photoreal to a black and white 8bit image where:
- for the blend mask you blend out (paint it black as the Rolling Stones would sing) the parts you do not want to see with an intermediate grey/fuzzy blend between the two;
- and for the water mask, the same thing but just pure black and pure white.
 
Sorry to barge in once again:(.
Once you have your BMP/TIFF photoreal done, why don't you just make the blend and watermask yourself from the photoreal?
It is just a matter of converting the photoreal to a black and white 8bit image where:
- for the blend mask you blend out (paint it black as the Rolling Stones would sing) the parts you do not want to see with an intermediate grey/fuzzy blend between the two;
- and for the water mask, the same thing but just pure black and pure white.
I will keep in mind but I have already drawn my watermask and blendmask and I do not want to draw them over again.
Thanks
 
If so, then why you have to make sure they are aligned?
They are aligned automatically if it is a 8-bit copy.
 
Caleb:

What method did you use to create your current existing Mask files ?

* Photoshop or GIMP (color pixel selection / traced 'Path' filled with color = "Raster" Method)

* SBuilderX or Google Earth (traced vector poly-lines / polygons = "Vector" method)

GaryGB
Photoshop or GIMP (color pixel selection / traced 'Path' filled with color = "Raster" Method).
 
Which one?
I used @GaryGB's first option:

"Photoshop or GIMP (color pixel selection / traced 'Path' filled with color = "Raster" Method)".

Not the second option:
"SBuilderX or Google Earth (traced vector poly-lines / polygons = "Vector" method)".
 
Caleb...

What Roby was asking (Roby, correct me if I am wrong), which one of the 2, Photoshop or GIMP, and if Photoshop, what version? Same for GIMP?, what version?
 
https://www.fsdeveloper.com/forum/threads/resample-exe-not-compiling.442820/post-800547

Ok. I will be sure my masks are aligned good enough so that water will not be in unwanted locations.
I will work on that soon and then compile and test.

https://www.fsdeveloper.com/forum/threads/resample-exe-not-compiling.442820/post-800550

...I have already drawn my watermask and blendmask and I do not want to draw them over again.
Thanks

Hi Caleb:

You can simplify the Geo-rectified Mask creation process by using Global Mapper (a general conceptual overview follows): :idea:

1.) Download the very detailed local county GIS - Water Body and Drainage ESRI *.SHP file (archived inside a *.ZIP file; I'll PM the URL):

2.) Open the downloaded "WATER.zip" in Global Mapper (aka "GM")

3.) Center and Zoom GM work-space to display desired extent of coverage

4.) GM Menu > File > Export > Vector > SVG > All Data Visible On Screen > Output the *.SVG file

5.) GIMP Menu > Open > SVG Image (*.SVG) exported from GM ("Render Scalable Vector Graphics" dialog opens)

a.) Configure GIMP *.SVG import to match GM Metadata for a separate GeoTIFF of aerial imagery from above selected GM work-space size


If you would like to explore this option, let me know, and I can post more detailed steps for the actual required work-flow. ;)

GaryGB
 
Last edited:
Caleb...

What Roby was asking (Roby, correct me if I am wrong), which one of the 2, Photoshop or GIMP, and if Photoshop, what version? Same for GIMP?, what version?
Oh.

@robystar I created them with Photoshop, but the current ones I am working with have been imported into GIMP and then exported as 24-bit BMPs from GIMP.
So they were created in Photoshop but exported in GIMP.

Hi Caleb:

You can simplify the Geo-rectified Mask creation process by using Global Mapper (a general conceptual overview follows): :idea:

1.) Download the very detailed local county GIS - Water Body and Drainage ESRI *.SHP file (archived inside a *.ZIP file; I'll PM the URL):

2.) Open the downloaded "WATER.zip" in Global Mapper (aka "GM")

3.) Center and Zoom GM work-space to display desired extent of coverage

4.) GM Menu > File > Export > Vector > SVG > All Data Visible On Screen > Output the *.SVG file

5.) GIMP Menu > Open > SVG Image (*.SVG) exported from GM ("Render Scalable Vector Graphics" dialog opens)

a.) Configure GIMP *.SVG import to match GM Metadata for a separate GeoTIFF of aerial imagery from above selected GM work-space size


If you would like to explore this option, let me know, and I can post more detailed steps for the actual required work-flow. ;)

GaryGB
This sounds like an interesting procedure, but I do not have a license of Global Mapper at the moment so I'm afraid if this procedure requires Global Mapper it might not be the best option for me right now. I will proceed with procedure in post #124.
Thanks.
 
I am compiling the BGL with resample after doing what was described in post #124. After that I will test and then proceed with doing what was described in post #124 for the blendmask.

Thanks.
 
I found that some of the watermasks are still slightly mis-aligned so some more "transform work" in the image editor will be necessary. Hope to compile and test tomorrow.
 
I repeat my former suggestion:
If you already have a geo-TIFF or BMP then use that one to make the water and blendmask.:rolleyes:
 
Back
Top