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

Photoreal INF file

Messages
305
Country
us-california
Hi,

I have looked through the posts here and figured out how I should go about compiling my photo real scenery with resampler. One thing that I can't figure out is the xDim and yDim, though. They explain the e-5 powers thing but how do you go about getting the correct values?

Here's the draft of my INF file that I will be using to compile the bitmap to photoreal scenery:

Code:
[Source]
Type = BMP
SourceDir = "SourceData"
SourceFile = "test.bmp"
Layer = Imagery
Variation = Day
Lat =
Lon =
xDim =
yDim =

NoData = ,,,,0

[Destination]
DestDir = "Output"
DestBaseFileName = "test"
DestFileType = BGL
LOD = Auto

Thanks!
 
Hi scubakobe,

This has not changed from earlier versions of resample.

XDim = ( LongitudeSpanOfImage / ( NumberOfHorizontalPixels - 1 ) )

YDim = ( LatitudeSpanOfImage / ( NumberOfVerticalPixels - 1 ) )

Here's an example of a Photoreal INF ( it displays in 3 months of the year ):

Code:
[Source]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "SouthernLakesIce.bmp"
ULXMAP = -88.828125
ULYMAP = 42.71484375
XDIM = 0.000526685393258427
YDIM = 0.000395903716216216
Variation = January,February,March
NullValue = 0,0,0

[Destination]
DestDir = "."
DestBaseFileName = "SouthernLakesIce"
DestFileType = BGL
LOD = 9,13
UseSourceDimensions = 1

Dick
 
Last edited:
Here are my calculations for the yDim:

Latitudespan=0.165996
image height=5075

therefore yDim=0.999967291 ??

Is that right? Doesn't seem like it is.


Thanks Dick,
Kobbe
 
Hi Kobbe.

( 0.165996 / ( 0.165996 -1 ) ) = 3.2715017737485218762317698068585e-5

or 3.27150e-5, to make it simple.

Dick
 
Numbers

Hi, Skubakobe

No offense, please. It seems you're not acquainted with numbers.

To add some help to Dick's help, you need to know the four corners' coordinates (in decimal format and 14 digits after period).

The Latitudespan is the difference between North and South boundaries (absolute value).

The Longitudespan is the difference between West and East boundaries(absolute value).

In a graphical program, like photoshop, load your image and read the size in pixels (X and Y - X should be the first value or the horizontal one = width).

I hope this help.

Regards,

José
 
Nope, I'm definitely not acquainted with numbers! :D Next year is Algebra II, maybe that will help. ;)

For north and south boundaries (Latitude) I have 33.481212 & 33.315216 . Which gave me 0.165996.

Not sure how Dick got those numbers. when I put it in google I get somethind different.

Gotta run!

-Kobbe
 
Hi, Skubakobe

The website:

http://www.ptsim.com/sbuilder/gmaps.htm

lets you capture an GE image and its boundaries, the same as its four corners coordinates.

[GEOGRAPHIC]
North=41.59663816589289
South=41.57737908284747
West=-8.462176322937011
East=-8.427844047546386

That could turn your work easier.

You need an application to save the image (something as Snagit or a freeware program).

Work with image has its problems.....

Regards,

José
 
I got my aerials from USA Photo Maps program and marked the boundaries with GPS points. So I have the correct boundary information, but I don't know how to do that math part.

When I do the calculation with google I don't get the e-5 part or correct values that Dick got.

How are you calculating them, with what?

Figures math would be the tough part:D
 
only a little mistake

As Dick explained:

XDim = ( LongitudeSpanOfImage / ( NumberOfHorizontalPixels - 1 ) )
YDim = ( LatitudeSpanOfImage / ( NumberOfVerticalPixels - 1 ) )
Dick

He gets your numbers:

Latitudespan=0.165996
image height=5075

and made the calcul:

Hi Kobbe.
( 0.165996 / ( 0.165996 -1 ) ) = 3.2715017737485218762317698068585e-5
or 3.27150e-5, to make it simple.
Dick

But, the above example has a mistake. The correction should be:

0.165996 / (5075 -1) =
0.165996 / 5074 = 0.000032715017737485218762317698068585

In my calculs I use 19 decimal digits afted the period.

0.0000327150177374852 or 3.27150177374852e-5

To avoid mistake, you could use the long format and not the scientific notation.

Reards,

José
 
Thanks Jose,

I also noticed that you can get the scientific notation answer from a graphing calculator as well.

Now to try this out...
 
Hi José.

Thanks for pointing out the error in my calculation. ( Cut'n'paste mistake ).

Dick
 
Back
Top