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

Night texture "shifts" after resample????

Messages
1,521
Country
unitedstates
Need some help on what I am doing wrong. First let me say I've done the following:

1 source (DAY) resample = Looks correct for daytime

2 sources (DAY and NIGHT) resample = Looks correct for daytime and nighttime

3 sources (DAY, NIGHT and BLENDMASK) resample = Looks correct for daytime and nighttime

3 sources (DAY, NIGHT, and WATERMASK) resample = Looks correct for daytime and nighttime

4 sources (DAY, NIGHT, BLENDMASK and WATERMASK) resample = daytime correct but night texture becomes mis-aligned, stretched beyond proper coordinates.



Here's my test code:

[Source]
Type = MultiSource
NumberOfSources = 4

[Source1]
Type = TIFF
Layer = Imagery
SourceDir = "P:\1SourceData"
SourceFile = "DAY.tif"
ULXMAP = -106.692273290172
ULYMAP = 35.1287103258559
XDIM = 1.07846370904448E-05
YDIM = 9.16361764953634E-06
NullValue = 0,0,0
Variation = Day
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0

[Source2]
Type = TIFF
Layer = Imagery
SourceDir = "P:\1SourceData"
SourceFile = "night.tif"
ULXMAP = -106.692273290172
ULYMAP = 35.1287103258559
XDIM = 1.07846370904448E-05
YDIM = 9.16361764953634E-06
NullValue = 0,0,0
Variation = Night
Channel_BlendMask = 3.0
Channel_LandWaterMask = 4.0



[Source3]
Type = TIFF
Layer = None
SourceDir = "P:\1SourceData"
SourceFile = "blendmask.tif"
ULXMAP = -106.692273290172
ULYMAP = 35.1287103258559
XDIM = 1.07846370904448E-05
YDIM = 9.16361764953634E-06
SamplingMethod = Gaussian
NullValue = 255,255,255


[Source4]
Type = TIFF
Layer = None
SourceDir = "P:\1SourceData"
SourceFile = "watermask.tif"
ULXMAP = -106.692273290172
ULYMAP = 35.1287103258559
XDIM = 1.07846370904448E-05
YDIM = 9.16361764953634E-06
SamplingMethod = Gaussian
NullValue = 255,255,255


[Destination]
DestDir = "P:\2Output"
DestBaseFileName = "4sourceTest"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85

Can you regulars that use resample see any mistakes I have made?
 
Messages
1,521
Country
unitedstates
Seems to be working now. Why?

After further testing I found out that if I add georeferencing to the night.tif it will line up correctly. The day image already was a georeferenced tif. (thinking to myself here) - So does that mean if I use one geotiff image they all must be geotiff? Or they all must NOT have georeferencing? I thought the whole purpose of inputting reference data into the inf file was for that purpose? A bug? Just the way it is supposed to operate (see nothing in the SDK), they all must be one way or the other. Sooooo.... if anyone comes across this type of issue I hope this helps. Oh, this was for use in P3Dv2.3.
 
Top