Seasonal Varients glitch

This is the Forum to discuss the use of SBuilderX (version 3.10 and above). For previous versions of SBuilder please use the "SBuilder for Flight Simulator FS2004" forum.
Post Reply
diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

Seasonal Varients glitch

Post by diger44 » Sun Sep 05, 2010 1:50 am

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!

User avatar
luisfeliztirado
Posts: 436
Joined: Sun May 15, 2005 9:15 am
Location: Santo Domingo

Re: Seasonal Varients glitch

Post by luisfeliztirado » Sun Sep 05, 2010 12:52 pm

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

diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

Re: Seasonal Varients glitch

Post by diger44 » Sun Sep 05, 2010 7:56 pm

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

rhumbaflappy
Posts: 420
Joined: Sat Oct 16, 2004 10:11 pm

Re: Seasonal Varients glitch

Post by rhumbaflappy » Sun Sep 05, 2010 10:27 pm

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
Dick

diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

Re: Seasonal Varients glitch

Post by diger44 » Mon Sep 06, 2010 8:30 pm

Wow, that worked surprisingly well, Thanks.
Now how do I get a winter night to work separately from the summer night?

rhumbaflappy
Posts: 420
Joined: Sat Oct 16, 2004 10:11 pm

Re: Seasonal Varients glitch

Post by rhumbaflappy » Tue Sep 07, 2010 12:53 am

Can't be done... night is just night. make it really dark and no one will know the difference.

Dick
Dick

Post Reply