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

FSXA SbuilderX/resample.exe error

Messages
22
Country
norway
Hello everybody!

I have been using SbuilderX for a while and haven't had any problems.

Now all of a sudden when I try to compile a photoscenery I get the following error:
Code:
Destination north limit must be greater than south limit.
Image Resample Failed

At first I thought it to be the .bmp causing the problem, but I get the same error with my older files as well :confused:

I have been googleing around trying to find the answer, but have failed so far, so now I turn to you :)

Anyone have an idea?
 
Okey, so when spinning on this problem..

I have used Global Mapper to stitch together some aerial photos. They where in the UTM, EUREF89 projection. I have tried to reproject to .bmp with the following options:

Mercator - WGS84
Geographic (lat/lon) - WGS84

I always get the same errormessage as above when trying to resample the image. When adding a blendmask and watermask I am able to compile, but all I get is black covering the blended area and the rest is red. Ergo the images themselves are not compiled.

The INF is correct as I get a succesfull compiling, so the problem must be in the image.
 
So, now I think I have found a solution.
It seems I can not export directly to .BMP from Global Mapper, but I need to take the route around by exporting to GEOtiff and then reformat to .BMP. After this everything was a-okey.

Find it kind of wierd though that I could not find any example of the same error-message I got..
 
Hi Bjorn:

Glad you found a work-around using Global Mapper (aka "GM") ! :)


But I'm curious as to why you would not use the GeoTIFFs directly without conversion to BMPs as a source for the aerial imagery itself ? :confused:


FYI: FSX SDK Resample can utilize the GeoTiffs output by GM in a Geographic (Lat-Lon) projection / WGS84 datum ...with a very simple INF file that specifies the GeoTIFF source file type. ;)

As you may know, loaded GeoTIFF Metadata can be viewed via the GM Overlay Control Center > "Metadata" button if you need it for Geo-referencing other directly derived / converted / edited 24-bit *.BMP, or 8-bit gray-scale *.TIF image tiles (which have NOT been re-sized) ...for creation of Blend / Water Masks to be used with 1 or more multi-source INFs with Resample.

GaryGB
 
Last edited:
Yea, I know that I am supposed to be able to use GEOtiff directly, but everytime when starting to add seasons, I get the dreaded red scenery.. And since I now have gotten all seasons to work satisfactory I am happy.

No I just need to work on the night map, which is proving cumbersome. I have gotten a really nice black version, but I am struggleing to make some nice looking lights for the surrounding farms etc. I can't get the painting nice. So now Iæm experimenting with the Lighting Effects. Looks pretty good, but I'm getting borders where the selectionborder was. And if I don't use selection tools the picture is zoomed all the way out in the Lighting window....

But I will succeed :P
 
When adding a blendmask and watermask I am able to compile, but all I get is black covering the blended area and the rest is red. Ergo the images themselves are not compiled.

The INF is correct as I get a succesfull compiling, so the problem must be in the image.

You may wish to review Luis Feliz-Tirado's tutorial: "Make photo-real ground textures"

http://library.avsim.net/esearch.php?CatID=fsxsd&DLID=140539


Quoted from: Make photo-real ground textures in Flight Simulator X

Images linked from: http://library.avsim.net/zipdiver.php?DLID=140539


See: Null Value and Blend Mask

"What happens if the Blend Mask is reversed, so that opaque (white) areas will cover the Null Value?"

zipshow.php


"The resulting custom ground is even stranger, with a red band around the texture:"

zipshow.php


"Null Values and Blend Masks do not go together very well. If you are using a Blend Mask, do not use a Null Value in your source image. Let the Blend Mask handle the transparency"


Also see: http://aussiex.org/forum/index.php?/topic/4256-sbuilderx-red-patches-in-background-scenery/


Hope this info might help resolve that scenario ! :)

GaryGB
 
Last edited:
I have read that one, I think the problem is that resample.exe isn't recognising the bitmap when directly exported from GM. When trying to compile the bitmap (which is in a lat/lon projection) I get the errormessage I mentioned above. When adding the blend- and watermask I can compile, but it only compiles the masks..

Here is my .inf file, which is working :)

Code:
[Source]
   Type = MultiSource
   NumberOfSources = 6

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "photo_ENGS.bmp"
   Variation = July,August,September,October,November
   Channel_BlendMask = 5.0
   Channel_LandWaterMask = 6.0
   NullValue =
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Source2]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "photo_ENGS_sp.bmp"
   Variation = April,May,June
   Channel_BlendMask = 5.0
   Channel_LandWaterMask = 6.0
   NullValue =
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Source3]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "photo_ENGS_wi.bmp"
   Variation = December,February,March,January
   Channel_BlendMask = 5.0
   Channel_LandWaterMask = 6.0
   NullValue =
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Source4]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "photo_ENGS_LM.bmp"
   Variation = Night
   Channel_BlendMask = 5.0
   Channel_LandWaterMask = 6.0
   NullValue =
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Source5]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "photo_ENGS_B.TIF"
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Source6]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "photo_ENGS_W.TIF"
   SamplingMethod = Gaussian
   ulyMap =  64.1973238611111
   ulxMap =  12.1498193611111
   xDim =  2.38426190174201E-06
   yDim =  2.38425873784567E-06

[Destination]
   DestDir = "."
   DestBaseFileName = "ground_ENGS"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85

But I have found a solution, som as mentioned I no just have to make the night map :)

But anyways thank you for answering my post :)
 
Last edited:
So, now I think I have found a solution.
It seems I can not export directly to .BMP from Global Mapper, but I need to take the route around by exporting to GeoTIFF and then reformat to .BMP. After this everything was a-okay.

Find it kind of weird though that I could not find any example of the same error-message I got..

I have read that one, I think the problem is that resample.exe isn't recognizing the bitmap when directly exported from GM. When trying to compile the bitmap (which is in a lat/lon projection) I get the error message I mentioned above. When adding the blend- and water mask I can compile, but it only compiles the masks..

Hi Bjorn:

Just so that we all may avoid this curious anomaly in our own projects with GM imagery output file formats, what GIS and/or graphics utility did you use to convert the GM-generated GeoTIFFs to FSX-compatible *.BMP files ? :confused:

And what are the listed 'properties' as to type (DXT or DDS) and bit-depth (24-bit or 32-bit) for the resulting *.BMPs ...when viewed in FSX SDK ImageTool ? :confused:

[FSX SDK install path]\SDK\Environment Kit\Terrain SDK\ImageTool.exe


Thanks for sharing your insights on this scenario ! :)

GaryGB
 
Here are the facts:

I got hold of some aerial imagery for my local airstrip.
These images was in the UTM 33 projection. I then used GM to reproject to Geo (lat/lon) projection. Then the data was exported as .BMP from GM as 24bit and made sure to save prj and world-file.
The data which I can read from imagetool is as follows:

Code:
File: "photo_ENGS.bmp"
Size: 560016288 bytes
Width: 21024 pixels
Height: 8879 pixels
Format: 24-bit
Alpha: None

# Mip Levels:   1
Displayed:       all

After putting the bitmap into SbuilderX and calibrating with the Metadata from GM. I got the following error in the compiler:

Code:
Destination north limit must be greater than south limit

To get around this I exported the data to GEOtiff. Got image compiled and I was happy. But when adding masks the failures came. The blend mask would not match the GEOtiff after compiling giving black and red on several location around the bgl. And no matter how many times I checked and adjusted the masks it would not align properly.

I then exported a new GEOtiff, opened this with the standard MSPaint and just saved as 24-bit bmp. Used the metadata from GM for calibrating in SbuilderX and voila, no error compiling. Added masks, still no error. And now with almost every season in play, still no error.

I'm curious as to what might corrupt the GM-exported .bmp.

Now I'm happy with the scenery and I'm trimming the blendmask to get a nice seam around the scenery :)
 
Hi Bjorn:

Many thanks for that further clarification of the workflow which turned up this anomalous result when: :scratchch

* Aerial Imagery displayed in Global Mapper (aka "GM") is Exported via:

GM Menu > File > Export Raster / Image Format > BMP


...or:


* Aerial Imagery displayed in Global Mapper is Exported via:

GM Menu > File > Export Raster / Image Format > GeoTIFF

...with accompanying *.PRJ and *.TFW files



One might wonder whether info written into a *.TFW world file might be at fault, depending on the options set in Global Mapper's export parameters: :idea:


GM Menu > Help > Online Help > 3.) TOOLBAR AND MENUBAR > File Menu > Export Raster/Imagery Format:

* Export GeoTIFF command

...or:

* Export BMP command



Settings in either of the above export configurations would affect the meta data in the "world file" accompanying a BMP or GeoTIFF such that SBuilderX may not be able to Append / "import" / display / process it correctly.

As described, when you converted the GeoTIFF into a BMP with MS Paint you lost the GeoTIFF tags / data within the GeoTIFF header file when written into the BMP file format.

When the BMP file was then 'geo-rectified' manually in SBuilderX using the top left (NW) corner and the bottom right (SE) corners using the known geographic coordinates from the GM metadata for the source aerial imagery in the GM Overlay Control Center, the correct alignment was achieved.


However, I am still somewhat intrigued as to what other factors may be at play in the occurrence of "black and red" texture anomalies at several locations around the aerial imagery. :confused:

I'm wondering if this may be more due to factors other than alignment, ex: how / when to (...or when not to) combine masks with a "NullValue" parameter.


I am not certain about this, but I would be concerned that retaining a 'empty' "NullValue =" in your example *.INF file [Source1], [Source2], [Source3], and [Source4] entries as shown above at:

http://www.fsdeveloper.com/forum/showpost.php?p=626386&postcount=7


...without also declaring a full and explicit numeric parameter sequence ...may invoke automatic substitution of an internal default value by FSX SDK Resample (ex: 255,255,255)

http://www.fsdeveloper.com/forum/showthread.php?t=16443&highlight=auto

http://www.ptsim.com/forum/viewtopic.php?f=22&t=2147

[EDITED]

...Also see:

http://www.ptsim.com/forum/viewtopic.php?f=22&t=1060

http://www.ptsim.com/forum/viewtopic.php?f=22&t=1060&start=15

http://www.ptsim.com/forum/viewtopic.php?f=22&t=1060&start=30

[END_EDIT]


Hope this leads to more insights on this curious scenario, and how to avoid such anomalies ! :)

GaryGB
 
Last edited:
Back
Top