Page 1 of 1

Seasonal Varients glitch

Posted: Sun Sep 05, 2010 1:50 am
by diger44
Hello,
I am developing an airport scenery add-on. I am almost finished with the airport, the only problem occurred when I tried to make a seasonal variant. I edited my original image to about 10% saturation, and some white levels for winter. The bgl compiles fine, however the resulting ground is red, then all black after the blendmask, until the edge of the map. (Image Attached).
redwinter.gif
Here is the config file I'm using:

Code: Select all

[Source]
   Type = MultiSource
   NumberOfSources = 5

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "L18X153977X154014Y195548Y195597.BMP"
   Variation = July,August,September,April,May,June,October,November
   NullValue = 255,255,255
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 2.0
   Channel_LandWaterMask = 3.0

[Source2]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "bmask1-2.tif"
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06

[Source3]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "wmask1.tif"
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06


[Source4]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "L18X153977X154014Y195548Y195597_N.BMP"
   Variation = Night
   NullValue = 255,255,255
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 2.0
   Channel_LandWaterMask = 3.0

[Source5]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "winter1.bmp"
   Variation = December,January,February,March
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 2.0
   Channel_LandWaterMask = 3.0

[Destination]
   DestDir = "."
   DestBaseFileName = "photo02"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85
What am I doing wrong? Please Help!

Re: Seasonal Varients glitch

Posted: Sun Sep 05, 2010 12:52 pm
by luisfeliztirado
Hello,

Please read Make photo-real ground textures in Flight Simulator X, available in the Avsim library:
http://library.avsim.net/esearch.php?Ca ... LID=140539

You will find the explanation in the section on Null Value and Blend Mask and the solution is as follows:

Null Values and Blend Masks do not go together very well. If you are using a Blend Mask, do not use a Null Value in your source image. Let the Blend Mask handle the transparency.

Remove the NullValue parameter from the inf file and do not paint in white the transparent parts of the original image - the ground textures will then show the correct gradation fading out to complete transparency.


Best regards.
Luis

Re: Seasonal Varients glitch

Posted: Sun Sep 05, 2010 7:56 pm
by diger44
Sadly, that didn't fix it, the winter ground is still red and black, the summer variant is fine however, it works as normal.
Also, I have that tutorial, but it was little help with my problem...

Re: Seasonal Varients glitch

Posted: Sun Sep 05, 2010 10:27 pm
by rhumbaflappy
Perhaps this would work:

Code: Select all

[Source]
   Type = MultiSource
   NumberOfSources = 5

[Source1]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "L18X153977X154014Y195548Y195597.BMP"
   Variation = April,May,June,July,August,September,October,November
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 4.0
   Channel_LandWaterMask = 5.0

[Source2]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "winter1.bmp"
   Variation = January,February,March,December
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 4.0
   Channel_LandWaterMask = 5.0

[Source3]
   Type = BMP
   Layer = Imagery
   SourceDir = "."
   SourceFile = "L18X153977X154014Y195548Y195597_N.BMP"
   Variation = Night
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06
   Channel_BlendMask = 4.0
   Channel_LandWaterMask = 5.0

[Source4]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "bmask1-2.tif"
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06

[Source5]
   Type = TIFF
   Layer = None
   SourceDir = "."
   SourceFile = "wmask1.tif"
   SamplingMethod = Gaussian
   ulyMap =  41.5270858055556
   ulxMap = -74.2723846388889
   xDim =  2.68220885873533E-06
   yDim =  2.00841362847259E-06


[Destination]
   DestDir = "."
   DestBaseFileName = "photo02"
   DestFileType = BGL
   LOD = Auto
   UseSourceDimensions = 1
   CompressionQuality = 85
Dick

Re: Seasonal Varients glitch

Posted: Mon Sep 06, 2010 8:30 pm
by diger44
Wow, that worked surprisingly well, Thanks.
Now how do I get a winter night to work separately from the summer night?

Re: Seasonal Varients glitch

Posted: Tue Sep 07, 2010 12:53 am
by rhumbaflappy
Can't be done... night is just night. make it really dark and no one will know the difference.

Dick