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

P3D v4 image and blendmask different size

MatthiasKNU

Resource contributor
Messages
958
Country
germany
Hello everybody!

I have a quick question...
Is it possible, to resample an image and a blendmask with a different size?

Short example:

Code:
[...]

[Source1]
Type          = BMP
Layer          = Imagery
SourceDir  = C:\fset\work
SourceFile = Area_Lp4_SnapOff_N040463254_N040285145_E049105093_E050065768.bmp
Lon               = 49.180812835693402       ;for top left and bottom right is: 50.116024017333999
Lat               = 40.775713920593297       ;for top left and bottom right is: 40.480928421020501
NumOfCellsPerLine = 16344       ;Pixel is not used in FSX
NumOfLines        = 6869       ;Pixel is not used in FSX
CellXdimensionDeg = 5.7220458984375E-05
CellYdimensionDeg = 4.29153442382813E-05
PixelIsPoint      = 0
SamplingMethod    = Point
Channel_LandWaterMask = 2.0  ;blue channel
Channel_BlendMask = 3.0  ;blue channel

[...]

[Source3]
Type          = BMP
Layer          = None
SourceDir  = C:\fset\work
SourceFile = blendmask.bmp
Lon               = 49.521416479848540       ;for top left and bottom right is: 50.116108710073149
Lat               = 40.775671934451410       ;for top left and bottom right is: 40.534602140750238
NumOfCellsPerLine = 10393       ;Pixel is not used in FSX
NumOfLines        = 4213       ;Pixel is not used in FSX
CellXdimensionDeg = 5.7220458984375E-05
CellYdimensionDeg = 4.29153442382813E-05
PixelIsPoint      = 0
SamplingMethod    = Point

But this does not work for me (even with the different coordinates of the blendmask)...
The result looks like this:
zwischenablage01ogc7x.jpg


So resample seems to start also with the blendmask in the top left corner...
 

=rk=

Resource contributor
Messages
4,461
Country
us-washington
Matthias, is that your entire .ini file? There are some basic omissions that imply a thorough review will expose other errors. I notice that the geographical coordinates of the blend mask are extremely close to, but do not exactly match those of "Area_Lp4_SnapOff_N040463254_N040285145_E049105093_E050065768.bmp" and while you may place your mask anywhere you please, it appears to be scaled to closely follow the coast and should probably hae the exact same coordinates. This offset is not enough to produce the result, but it does imply other discrepancies might.
Also, the file name for Source1 is extremely long. Resample.exe accepts only basic ASCII characters, no hyphens, commas, or exclamation marks allowed and there is a definite limit on string length, so I'd also try adjusting that.

I think more information is required, size, dimension and format of all images, the full .ini, etc. Finally, your blend mask looks incredibly basic, I don't even see blurring at the edges. Could you not just scale this superimposed over your satellite image to get them to the exact same dimension?
 

MatthiasKNU

Resource contributor
Messages
958
Country
germany
Hi!

No, this is not the whole ini file. (By the way, it is not the first photoscenery I created, I am doing this since years... :) )
Of course the coordinates do not match, just because the blendmask has another extent as the Area_Lp4_SnapOff_N040463254_N040285145_E049105093_E050065768.bmp. (I know the name is quite long, it is generated by FSET, but even with this extremly long name it is working perfect).

Of course it looks basic, I am just working on an ArcGIS-Script to create Water- and Blendmask from OSM-Data. So the Water- and Blendmask get created dynamically by ArcGIS, so the Extents differ allways a little bit...
 

MatthiasKNU

Resource contributor
Messages
958
Country
germany
Thought about that too, but the blendmask.bmp has the extent of the blendmask itself. So the blendmask.bmp extents are not the same as the extent of the satellite image, but it has the same cellsize. I've already made sure of that.

Theoretically the blendmask.tif would only have to be moved to the given coordinates...
 
Top