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

Re GMaps

GHD

Messages
12,244
Country
england
Hi Dick,

Your GMaps seemed to work. I used Firefox, saved the png, imported into SBuilderX and compiled to create the inf. I then converted the png to bmp.

However, when I ran resample, the resultant bgl contained only a blue rectangle :confused:

Bmp:



Inf:

Code:
[Source]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "Test.bmp"
   Variation = All
   NullValue = 255,255,255
   SamplingMethod = Gaussian
   ulyMap =  41.5963814166667
   ulxMap = -8.46273422222222
   xDim =  1.07288368055558E-05
   yDim =  8.02465277777683E-06

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

Result:



I normally supply Nrows and Ncols and use a blendmask and have not had any problems. The inf created by SBuilderX uses "UseSourceDimensions", could this be the problem?
 
Hi George.

I don't exactly know what happened. The image seems fine, so it should have resampled correctly.

I just compiled a similar photo through SBuilderX, and it was fine. The problem isn't with gmaps or SBuilderX, and resample almost never messes up.

So that leaves the image or the INF file.

Was the image 24-bit BMP for resample?

Dick
 
Hi Dick,

Yes, the bmp is 24bit, 30MB in size, and displays correctly in PSP and SBX.

The inf file is posted above and seems ok.

I don't understand it, I have never had a problem with resample. I tried adding a white blend mask and got exactly the same result.

The only thing I can think is that the coordinates from GMaps may be incorrect:

Code:
[GEOGRAPHIC]
North=41.59638141590841
South=41.577122256263785
West=-8.46273422241211
East=-8.428401947021484

I also tried another grab from Lossiemouth and got the same blue rectangle.
 
Last edited:
Hi George.

The INF looks exactly right as does the location.

The only thing I can imagine is that you are saving a screenshot as PNG, and then converting to BMP. Can you just save it as BMP from the screenshooter?

The BGLs are like this from SBuilderX or from a manual compile?

I've never heard of a problem like this.

Dick
 
Hi Dick,

I started from scratch using GMaps with the coordinates 57.6815775663584 -3.35349137221667.

When I opened the big window I saw:



On saving I accepted the warning about the size:



Adding to SBX, it still looks fine:



and it seemed to compile ok:



Unfortunately, the bgl contained only the same blue rectangle.

It would be great if I could get this to work since it would create only a single bgl whereas Maps2Bgl usually created three of four.

Could you please try my coordinates and see whether it works for you?
 
Hi Dick,

The plot thickens. I made a bgl from a VE background and it worked :eek:

This is a shot of the two bgls in TmfViewer, one from the background (coloured) and one from the map (blue).

 
Hi george.

It still works for me, using my web site, Luis' web site or the computer resident javascript code.

FireShot should allow you to "Capture Entire Page and..." "Save" and then save as type bmp. My bitmaps are saved as 32-bit BMP files from FireShot.

Then you can make a text file with the same name as the bitmap.

Code:
[GEOGRAPHIC]
[COLOR="Red"]Name=Photo_Test[/COLOR]
North=57.722577691239145
South=57.69506609743795
West=-3.369112014770508
East=-3.300447463989258

I copied this from gmaps, and added the 'Name=Photo_Test'. That line specifies this will be a photoreal source for SBuilderX.

Move the BMP and it's twin TXT file to SBuilder's Work folder ( mine is 'C:\Program Files\SBuilderX313\Tools\Work' ).

When you "Add Map | From Disk " to SBuilderX, it will be ready for Photoreal generation without any renaming or calibration. Just select it, and compile.

Dick
 
Hi Dick,

Then you can make a text file with the same name as the bitmap.

Code:
[GEOGRAPHIC]
[COLOR="Red"]Name=Photo_Test[/COLOR]
North=57.722577691239145
South=57.69506609743795
West=-3.369112014770508
East=-3.300447463989258

I copied this from gmaps, and added the 'Name=Photo_Test'. That line specifies this will be a photoreal source for SBuilderX.

Perhaps that is where I went wrong. I didn't add "Name=", I added the name after selecting the properties of the map.

I'll try again.

George
 
I tried adding the name and it made no difference, still a blue rectangle.

[GEOGRAPHIC]
Name=PhotoLossie
North=57.7227610317268
South=57.695249577282546
West=-3.366365432739258
East=-3.297700881958008

As Victor Meldrew said, "I don't believe it!"
 
Hi Dick,

I wonder if you could do me another favour. Can you download my bmp and txt files and try them on your system?


Thanks.
 
Last edited:
Hi George.

photolossie.png


Uploaded and run through SBuilderX. It looks OK to me.

Dick
 
Oh sh***t, does that mean that my SBuilderX is corrupt ?

Can you please post your inf file ?

George
 
Works fine for me too. Are you sure the copy of lossie.bmp that is in the tools\work folder is identical to the one you zipped up? SBuilder allows you to add a map from anywhere but when you compile the bmp must be in tools\work. Here is my SBX file. Note that my original lossie.bmp is not in the required folder, so I copied the file over before compiling
Code:
[Main]
CopyRight=PTSIM SB313
Name=PROJECT
NoOfMaps=1
NoOfLands=0
NoOfLines=0
NoOfPolys=0
NoOfWaters=0
NoOfObjects=0
NoOfExcludes=0
NoOfLWCIs=0
BGLProjectFolder=F:\Flight Sim\Scenery\Project data
LatDispCenter= 57.7090053045047
LonDispCenter=-3.33203315734863
Zoom= 13

[Map.1]
Name=PhotoLossie
BMPSu=F:\Flight Sim\Scenery\Project data\Lossie.bmp
BMPSp=F:\Flight Sim\Scenery\Project data\Lossie.bmp
BMPFa=F:\Flight Sim\Scenery\Project data\Lossie.bmp
BMPWi=F:\Flight Sim\Scenery\Project data\Lossie.bmp
BMPHw=F:\Flight Sim\Scenery\Project data\Lossie.bmp
BMPLm=F:\Flight Sim\Scenery\Project data\Lossie.bmp
Cols= 3200
Rows= 2400
NLat= 57.7227610317268
SLat= 57.6952495772825
ELon=-3.29770088195801
WLon=-3.36636543273926

Code:
[Source]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "Lossie.bmp"
   Variation = All
   NullValue = 255,255,255
   SamplingMethod = Gaussian
   ulyMap =  57.7227610317268
   ulxMap = -3.36636543273926
   xDim =  2.14576721191406E-05
   yDim =  1.14631060184382E-05

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

scott s.
.
 
Last edited:
Thanks Scott.

Now I am compltely baffled.

I ran resample on my W7 machine and the resulting bgl displays in TmfViewer on that machinne correctly



but the same bgl displays incorrectly in TmfViewer on my XP machine



The same bgl displays correctly in FSX on the XP machine



HOWEVER, it is in a different position from that produced by Maps2Bgl

 
Hi George.

The image from gmaps isn't georeferenced correctly.

When you want to select the view, you need to make sure the Google placemarker is correctly set, then press "Goto"... that centers the image and sets the coordinates. Be sure not to move the enlarged window map, or the coordinates will be off.

I'm making a mental list of code improvements.. a good one might be a "Scroll Lock" button to stop scrolling, and disable all scrolling of the enlarged image window.

This is Luis' code, but I'm hoping we can come up with some valid improvements. The registration is right, but something was either moved or not centered.


mylossie.png


This crosschecks a new BGL I made from a new gmaps image, with Google Earth. The image registration is very close.


Dick
 
Last edited:
OK Dick, I'll try yet again. This time I will do all processing on W7 64bit ;)

I can check the registration by doing my local airport for which I have commercial photo scenery, Horizon's Generation-X.
 
You were absolutely correct Dick, I had probably scrolled the big window :o

I processed EGNT on the XP machine, and although it still didn't display in TmfViewer, it did display in FSX and the registration is perfect compared to Gen-X



I still don't understand the TmfViewer problem. This is with your bgl (2.5MB) superimposed on the Gen-X bgl (26MB)



It can't be a memory problem since the Gen-X file is ten times the size of yours. Nor can it be the graphics card, on XP I have an 896MB GTX260 whereas on W7 64, I have only a 768MB 8800GTX :confused:

Thanks again for a great program.
 
In my latest attempt, I added a simple blendmask and the bgl now displays correctly in TmfViewer on XP.

Go figure :confused:
 
Hi George.

I'm glad you got it working ( somewhat ).

I fixed the code in the large window so it no longer scrolls. :) Thanks for beta-testing that.

Download the new zip, ( hosted on MediaFire ), or use the online Rhumbamaps.

GMaps

Dick
 
Back
Top