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

SBX large maps

Messages
6
Country
russia
I've got a similar problem. In my case I created a very big photo map (30000*10000 px) and converted it into jpeg prior to importing into SBX (as otherwise in bmp format the file would of been too huge). Everything loads and calibrates very well, however after selecting the map and trying to compile the bgl - none of the items in the compile window are checked and there's a message that nothing is selected. What am I doing wrong? Is there a limit to the map size in px in SBX? Or may be it doesn't work right with jpegs? Please advise :)
 
I believe SBuilderX is looking for a 24-bit bitmap as a Photo source. jpegs won'twork.

If I have a BMP named "c59.bmp", and a text file named "c59.txt", such as:

Code:
[GEOGRAPHIC]
Name=Photo_C59
North=42.64058500675560700
South=42.62756202084476721
West=-88.60267018474735300
East=-88.59960272187646175

Then I should be able to File | Add Map | From disk 'c59.bmp' cleanly, select it, and compile. Note the internal Name must begin with Photo

Dick
 
Last edited:
Oh, I see... Thank you very much! So the jpeg maps can be used only for reference... That sucks, as my bmp file will be over 3gb in size and I don't want to break it down into pieces because it will make color adjustments and seasonal texture making a nightmare... I have 4gb of RAM, do you think I will be able to compile a 3Gb bmp?
 
SbuilderX may have a problem with a huge BMP, but resample doesn't.

Truthfully, I use resample and write my own INF files... completely avoids these headaches. Resample needs 24-bit bitmaps, tiffs, or geotiffs. Luis just stuck with bitmaps for SBuilderX.

Dick
 
Last edited:
Ok, I guess I'll do the same. First I will try to reduce the size of the map 5 times, feed it to SBX and get the inf file for me to have a dummy. Then I will point it to the huge one and use resample! That should work...
 
Actually it won't work... the pixel dimensions of the the INF will be wrong.
 
:o yes, true... So, do you calculate those figures yourself each and every time you create a phototerrain using resample? What formulas are used?
 
Code:
[Source]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "C59.bmp"
   Variation = All
   NullValue = 255,255,255
   ulyMap =  42.6405850067556
   ulxMap = -88.6026701847474
   xDim =  9.1840205715306886227544910179641e-6
   yDim =  9.1582179401123699015471167369902e-6

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

This is an example from SBuilderX. Here's the C59 bounds:

Name=Photo_C59
North=42.64058500675560700
South=42.62756202084476721
West=-88.60267018474735300
East=-88.59960272187646175

The bitmap is 335wide X 1423high.

++++++++++++++++++++++++++++++++

In this case we know th NSEW. So how to derive the xDim and yDim?

DistanceDifference / NumberOfPixelSpans

yDim = (N-S) / (1423high - 1)
yDim = ((42.64058500675560700-42.62756202084476721)/(1423-1))
yDim = 9.1582179401123699015471167369902e-6

xDim = (W-E) / (335wide -1)
xDim = ((88.60267018474735300-88.59960272187646175)/(335-1))
xDim = 9.1840205715306886227544910179641e-6

The NumberOfPixelSpans is the number of pixels minus one... if you had 2 pixels, the NumberOfPixelsSpans is 2-1=1... if you have 1000 pixels, then the spans is 999.

+++++++++++++++++++++++++++++++++

Sometimes you'll get metadata or a TFW file or something similar that may give you the xDim and yDim already computed... go ahead and use it.

You can declare that only part of the destination will be Compiled:

Code:
[Source]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "C59.bmp"
   Variation = All
   NullValue = 255,255,255
   ulyMap =  42.6405850067556
   ulxMap = -88.6026701847474
   xDim =  9.1840205715306886227544910179641e-6
   yDim =  9.1582179401123699015471167369902e-6

[Destination]
   DestDir = "."
   DestBaseFileName = "Photo_C59"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 0
   NorthLat=42.640277
   SouthLat=42.628035
   WestLon=-88.60215
   EastLon=-88.599701
   CompressionQuality = 85

Dick
 
Dick, thank you for your help!
I tried to use sbuilder yesterday to obtain the px dimensions - and it worked! I used jpeg maps which won't compile, but calibrate well, so SBX calculates the right figures. I write them down somewhere, take resample and bmp file with exactly same dimensions as jpeg and put the px dimensions into the inf file. Everything works well this way. However it seems, that sbuilder coordinates format during calibration and that used by resample are different, so I got my photo scenery a couple of miles rightwards of where it should be. Will work it on... Anyway, thank you very much for such long and informative answers!
 
Back
Top