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

Issue with multiple blendmasks.

Messages
130
Country
puertorico
Hey guys,
I am having another issue with the blendmasks. I cant get them to work.
Here is what I get.
help1i.jpg


here is the inf
Code:
[Source]
   Type = MultiSource
   NumberOfSources = 8

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGstart.BMP"
   Variation = All
   Channel_BlendMask = 2.0
   NullValue = 
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source2]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask1.tif"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source3]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask2.tif"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source4]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask3.tif"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source5]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGmiddle.BMP"
   Variation = All
   Channel_BlendMask = 3.0 
   NullValue = 0,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source6]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGend.BMP"
   Variation = All
   Channel_BlendMask = 4.0
   NullValue = 0,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source7]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "clubnautico.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4639785913205
   ulxMap = -66.0896301269531
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source8]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "parquedepelota.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4665837676474
   ulxMap = -66.09375
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Destination]
   DestDir = "."
   DestBaseFileName = "L18X165869X165875Y234785Y234789"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85
 
My, that sure is red... Which begs the question, where did the red come from? Is that in the source file? If so, why did you color it red? If it's in the Tiff file that''s meant to be the blendmask, when did red start to fall under the "grayscale" umbrella?

Color me confused!
 
Red is the colour you get when there is no texture for a given variation / or the texture is in a format that resample doesn't like.

Start with a simple single set of sources for your inf file before making a multi file.

You are using a mixture Null values of differing colours (255,0,0 and 0,0,0 and 'blank')

Keep your nomenclature uniform and use a consistent technique ...

Once again, I'd suggest removing the Nullvalue altogether, and stick to a single blendmask. Once that is working, feel free to make it complicated.
 
HELP!
I double checked everything. The TIFs are greyscale 8bit like they should be. I edit and re edit the darn code. Nothing helps. I tried elimincating the null value, moving things around, checking the spaces etc. It doesn't even want to resample.

Code:
[Source]
   Type = MultiSource
   NumberOfSources = 8

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGstart.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 2.0
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source2]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask1.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Source3]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGmiddle.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 4.0 
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source4]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask2.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Source5]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGend.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 6.0 
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source6]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask3.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Source7]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "clubnautico.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4639785913205
   ulxMap = -66.0896301269531
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source8]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "parquedepelota.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4665837676474
   ulxMap = -66.09375
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Destination]
   DestDir = "."
   DestBaseFileName = "L18X165869X165875Y234785Y234789"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85
 
Last edited:
I moved things around a bit. And this is the result.
help2g.jpg

I have no idea where the red texture is coming from and there is a black line where it shouldn't be one, probably from the red texture.

Here is the code:
Code:
[Source]
   Type = MultiSource
   NumberOfSources = 8

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGstart.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 6.0
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source2]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGmiddle.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 7.0 
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source3]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "TJIGend.BMP"
   Variation = All
   NullValue = 255,0,0
   Channel_BlendMask = 8.0 
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source4]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "clubnautico.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4639785913205
   ulxMap = -66.0896301269531
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source5]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "parquedepelota.BMP"
   Variation = All
   NullValue = 255,0,0
   SamplingMethod = Gaussian
   ulyMap =  18.4665837676474
   ulxMap = -66.09375
   xDim =  5.36441802978516E-06
   yDim =  5.0884860404804E-06

[Source6]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask1.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1102294921875
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Source7]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask2.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.1033630371094
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Source8]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "blendmask3.TIF"
   SamplingMethod = Gaussian
   ulyMap =  18.4600707526715
   ulxMap = -66.0978698730469
   xDim =  1.07288360595703E-05
   yDim =  1.01770878979585E-05

[Destination]
   DestDir = "."
   DestBaseFileName = "L18X165869X165875Y234785Y234789"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85
 
I'll get to the confused part a little lower.

When you go to compile are you dropping the INF file onto Resample.exe? If so, you won't see the error message. I would open a DOS window where Resample and the INF are and enter the command; resample <yourfilename>.inf Or, download and install the Microsoft Powertoy that allows you to open a Command window by right clicking the folder while within Windows Explorer; http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx The CmdHere.exe is the tool to use with WinXP, if that's your OS.

But I still cannot figure out why you are declaring the color RED to be a null value in each of your source entries? And why are your blendmask files showing a different Xdim and Ydim from the source? The blendmask files should be of the same dimension as the source and should carry the same Xdim and Ydim.

The easiest way to diagnose something such as this is to take it in steps. See if all the source compiles OK. If it does, add one blendmask. Does it compile? If yes, add another and so on. If somewhere along the way it doesn't compile you are cutting down the number of possibilities of which file is causing the error.
 
I'll get to the confused part a little lower.

When you go to compile are you dropping the INF file onto Resample.exe? If so, you won't see the error message. I would open a DOS window where Resample and the INF are and enter the command; resample <yourfilename>.inf Or, download and install the Microsoft Powertoy that allows you to open a Command window by right clicking the folder while within Windows Explorer; http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx The CmdHere.exe is the tool to use with WinXP, if that's your OS.

But I still cannot figure out why you are declaring the color RED to be a null value in each of your source entries? And why are your blendmask files showing a different Xdim and Ydim from the source? The blendmask files should be of the same dimension as the source and should carry the same Xdim and Ydim.

The easiest way to diagnose something such as this is to take it in steps. See if all the source compiles OK. If it does, add one blendmask. Does it compile? If yes, add another and so on. If somewhere along the way it doesn't compile you are cutting down the number of possibilities of which file is causing the error.

THAT WAS THE PROBLEM!!.
Thank you sir. :D
 
Back
Top