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

[SOLVED] Resampler: problem at the Eastern edge

Status
Not open for further replies.
Messages
537
Country
canada
Hi, All

Information: FS2004, Resampler, changing terrain texture.
My bitmap has no flaws
Have only used Eastern longitudes.

Problem description:
Every time I change terrain texture with Resampler I end up with a vertical line (two pixels wide) at the eastern border of the area I am covering. Note this is only at the eastern-most "tiles" of the area I am working on. All other tiles are OK.

Now, this is quite subtle, not very visible. But it doesn't matter how big or small my area is, the eastern border shows this promem line, two pixels wide. If my eastern-most tiles have alpha to show water, the line is transparent (water shows).

I know of other guys who have the same problem. My source texture bitmap is fine, no problem.

However, when the resampler creates the 256 X 256 bitmaps in DXT1, it always messes up the right-most (eastern-most) bitmaps with this defect.

Please note that, with a casual look, all appears well. Only a detailed observation will show the problem.

For Rio de Janeiro, which has one season + night, we (my partner Newton, really) corrected all the easten-most tile bitmaps manually and the problem was fixed that way. However, I am doing the North Bay area with 144 tiles (12 X 12), and I'll have to correct manually 12 X 6 seasons = 72 bitmaps...

So, does anyone know of this problem and how to fix it?

Thanks!

Fern
 
Hi Fern,

Sounds a bit to me like the cell size in your INF file is not correct, so that your image does not cover the entire LOD tile. Can you show us the INF file you use?
 
Resampler Problem

Hi, Arno

I sure can show my .inf file. It is below.

Please note:

1. It is not just me who have this problem. Some other guys I know have the same problem and I have seen it even in payware scenery.

2. The area is covered perfectly otherwise.

3. In fact, even the "top" right of the area is OK at the eastern borther, the problem starts on the third or fourth tile row from. I can send a picture...

Thanks

Fern

Here is my inf:

[Destination]
DestDir = "."
DestBaseFileName = "NorthBay"
BuildSeasons = 1
UseSourceDimensions = 0
NorthLat = 46.38427734375
SouthLat = 46.263427734375
WestLon = -79.5556640625
EastLon = -79.39453125

; Source pixel cell dimensions in degrees:
; dim = (span in quadtree cells) * (degrees per quadtree cell) / (number of pixels)
; Xdim = (6891 - 6889 + 1) * (120 / 2^13) / 768 = 5.722045898E-05
; Ydim = (4272 - 4269 + 1) * (90 / 2^13) / 1024 = 4.291534424E-05

[Source]
Type = MultiSource
NumberOfSources = 6

[Source1]
Type = Custom
Season = Summer
SourceDir = "RawImagery"
SourceFile = "NorthBay08_su.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5

[Source2]
Type = Custom
Season = Fall
SourceDir = "RawImagery"
SourceFile = "NorthBay08_fa.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5


[Source3]
Type = Custom
Season = Winter
SourceDir = "RawImagery"
SourceFile = "NorthBay08_wi.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5


[Source4]
Type = Custom
Season = Spring
SourceDir = "RawImagery"
SourceFile = "NorthBay08_sp.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5

[Source5]
Type = Custom
Season = HardWinter
SourceDir = "RawImagery"
SourceFile = "NorthBay08_hw.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5

[Source6]
Type = Custom
Season = LightMap
SourceDir = "RawImagery"
SourceFile = "NorthBay08_lm.tga"
Lat = 46.38427734375
Lon = -79.5556640625
NumOfCellsPerLine = 4096
NumOfLines = 4096
SampleIsCentered = 0
CellXdimensionDeg = 4.291534423828125e-5
CellYdimensionDeg = 3.21865081787109375e-5
 
Hi Fern,

If you multiply the cell dimension in your INF file with the size of your image, you will see that it does not cover the entire area you specify in the destination. I think that is the problem.

Is your source image exactly the size of your destination area?
 
Cell Dimensions

Hi, Arno

The area has 12 by 12 "tiles".

X dimentions will be

[12 X (480 / 32768)] / 4096 = 4.291534423828125e-5

and the Y dimensions will be

[12 X (360 / 32768)] / 4096 = 4.291534423828125e-5

I used two methods to calculate the cell dimentions, the second one being the top latitude minus the bottom latitude devided by 4096 and the western latitude minus the eastern latitude divided by 4096. Same numbers.

Now... Because the final "tile-size" bitmaps are 256 X 256 regardless of the size of my large bitmap, the maximum useful size of my bitmap would be 3072 X 3072. Just to make sure that wasn't the problem I re-scaled my bitmap to 3072 X 3072, verified that no defects existed in the eastern boarder of my bitmap, ran the Resampler again with revised cell dimension numbers, same result: two-pixel wide line on the right (east).

Please look at the picture attached. The problem doesn't occur at the north half, only at the bottom half.

Please also note that the lake is black because I removed the alpha for the picture, so it would show the line as black rather than water, which is difficult to see in a picture like this.

Other fellows I know have the same problem. I also caught a payware scene that has the same problem. I pointed to my friend who bought it and he thought it was a road, except that in went right into a lake.

The Resampler, or FS, I don't know, attempts to blurr the boundaries between the tiles to avoid a "shock". Could that be it?

Thanks!

Fern
 
Last edited:
I think maybe FS2000 resample works a little better on photo terrain? You can make your photo a little bigger than the cells and that resample will clip at the edge?

scott s.
.
 
Resampler FS2000?

Hi, Scott

Hmmm... I didn't quite understand what you said. Are you suggesting that I use a Resampler that exists for FS2000?

Does anyone else think this would work better?

I have FS2000 (not installed), but where does one go to get the Terrain SDK for it?

Thanks

Fern
 
I used to use "terrabuilder" in FS2k2 and FS9, and it was recommended for use. The reason was that the FS22k and FS9 resample both create black borders if your source file isn't sized exactly to LOD13 dimensions. Since then, I shifted to using SBuilder, which creates VTP polygons using custom (photo) texture instead of straight resample method.

scott s.
.
 
Lod 13

Hi,

Thanks, Scott. I can't find references to LOD13 - or any other LOD, for that matter - in relation to the Terrain Textures SDK (I found for the Terrain and Land Classification).

Can you give me a hint on where such references might be?

According to the Terrain Textures SDK, the CellxDimensionsDeg is the guide for that, and with a zillion decimals. Also, I considered that the bitmaps per tile created by the Resampler are always 256 X 256 pixels, so I created a bitmap that divides exactly into it 3072 X 3072, or 12 bimaps X 12 bitmaps for my raw image. How much more exact can I get? In other words, how do I get to the LOD13 thing?

Thanks!

Fern
 
Concluding?

Hi, all

Thanks for your help.

I am almost 100% certain that the Resampler has a problem and plcaes that line at the eastern end if you have transparency in your raw image bitmap, no matter how good your cell dimensions are.

The problem is fixable, albeit with a lot of work, by correcting the bitmaps created by the Resampler.

If anyone knows any more about this, I'd appreciate any entries here.

Thanks

Fern
 
Status
Not open for further replies.
Back
Top