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

Photomesh, 4.75m/pix *not* 4.8m/pix

Messages
102
Country
unitedstates
I've seen this posted around the FS traps for a while now. It's commonly held that phototerrain uses a value of 4.8m per pixel resolution. This data is inaccurate as confirmed by the SDK's.

Photo terrain uses a value of 4.75m per pixel resolution. If you use a value of 4.8m per pixel your image will get further and further off from the lat and lon co-ordinates the further you get away from the top left reference point.

I have been able to confirm the value as stated in the SDK is 4.75m per pixel and it will have your WGS84 data lining up 100% accurately if you use 4.75m per pixel as a reference...

I wish to hald the flow of erroneous information within the FS community about this subject... I've tried to contact Elrond who wrote FS Resample Tools to let him know as his tool will produce error until the correct resolution is coded into his software. I have not as yet received a reply...

Arno, do you know if there is a way to adjust his figures in the program so it uses a value of 4.75 not 4.8?
 
Hi Dean,

See my reply on AvSim as well. I don't think it is as simple as you say here. Using the earth model described in the Fs2000 SDK I did some maths and the results for the LOD square sizes are:

4.77x6.36 meters at the equator
4.77x4.09 meters at 50 degrees longitude

(I made a mistake in the calculation as I posted it on Avsim first). So as you can see the size differs with the position on the earth as well.
 
It does but FS2004 uses the WGS84 reference datum and resample adjusts the cell sizes for the pixels for the 'compression' based where you are on the earth... If you get into GPS stuff you'll understand what I'm talking about.

It's all in the FS2004 sdk... The FS2000 sdk is out of date... ;)

Seriously though take a look at the SDK and I'll post images to prove it... Australia is as far south as you're gonna get but 4.75 put every pixel exactly where it should be. 4.8 is *wrong* it's 4.75

{edit} forgot to mention, the data I use is all WGS84 projected so the 'squeeze' in pixles is already coded into the image ;) If the source is not WGS84 compliant, you'll get error regardless of what figure you use...
 
Last edited:
This is what I read in the SDK:

The north/south extent of each terrain texture pixel is about 4.75 meters in Flight Simulator 2004. The resampling process will filter the raw image to the right size.

The north/south extent is indeed about 4.75 meters (4.77 if you calculate it accurate), but the east/west extent does change with the longitude. As the LODs are a grid of fixed sizes in degrees this must also be the case due to the shape of the earth.
 
Arno, do you understand what the WGS84 projection is and what it entails?

That is what the WGS84 datum addresses... All geocorrected WGS84 source images are already corrected for the compression, it's called ortho correction so that 'flat' images can correctly be placed on a round globe.

Here's the images that prove the data I have stated is correct... 4.8m was completely off, this is how it turned out using the correct SDK data of 4.75m per pixel... The 4.8m per pixel was over 50 meters off by the time it reached Brisbane airport, 4.75 was exactly where it should be, using WGS84 data.

These images were tested by someone going out and getting the GPS readings first from the real world.. The data was put into flightsim and terraserver... All the results lined up and the person who took the readings says that it is all correct. 4.8m threw the image off to where this location was north west about 50-100 meters north west of where it should have been. Doing the math, of a 25cm difference for each pixel over a 50km distance proved the error and was how I was able to get the whole image aligned correctly... I read the SDK which mentioned 4.75, did the math, saw that the error was what was expected using 4.8m, changed the value to 4.75 and this was the result. Now I put in the GPS co-ordinates for my house which is about 30km further south and it was also dead on...

tower2.jpg


tower1.jpg


intersection.jpg
 
Last edited:
You're confusing meters per pixel with degrees per pixel.

Resample slices it's images into LOD13 Areas that are exactly 0.010986328125 degrees latitude by 0.0146484375 degrees longitude. It's degrees per pixel. This is true of ALL terrain features in the sim... landclass, photoreal ( a subset of landclass usage ), mesh, LWM and VTP.

The flat geographic slice is then stretched or shrunk by the sim's terrain drawing routines to fit the "round" earth, and it's mesh.

It has nothing to do with meters per pixel. ALL the SDKs are wrong to even suggest a distance measurement for photoreal.

Resample doesn't care what your pixel resolution is. You can use resolution of millimeters per pixel if you want... but Resample will still convert and slice the images using it's own routines. But those routines assume you are already using an image in geographic projection. It cannot convert UTM ( for example ) to geographic for you.

You need to do this first. North, south, east and west must be squared up before Resample does it's work, or your slices will be distorted when placed in the sim, and roads, lakes, etc. will be misplaced. The misplacement may be slight in smaller resamples, but misplaced just the same.

Logically, you'd want to use as detailed an image as possible... and there is no need to convert that resolution prior to Resample's usage. The resolution is not the problem. The projection is the problem.

The base image needs to be in geographic projection ( measurement in equal-angle degrees, not in distance measurement ). Unfortunately, almost all aerial images have been fit to distance measurement. They need to be reprojected prior to resampling.

Dick
 
North South Extent

Well I dont know but this runway is 1200 meters long.

On my calculator 4.6785 meters per pixel


Or am I completly missing the point again ???

Tas
 
Last edited:
Actually this discussion was finally all sorted out on other forums...

The 4.75m per pixel as a sampling issue will give you the clearest image when you resample... All Dick, Arno and Holger have said about degrees per pixel is correct...

The 4.75m per pixel has more to do with image fidelity on resampling more than anything else... Basically using that resolution and the correct cell size for resampling will give you the best results...

The problem I was having was with a 3rd party program FS Resample Tools which wanted to always resample the image to 4.8m per pixel which threw everything off...

Thanks to Holger, I've gone ahead and hand coded the image and have found it a much better approach using the low level approach to resampling... My images have come out so far better than Megascenery in terms of clarity and definition... I can see clearly to about 100-250 ft off the deck...
 
Back
Top