problem adding night texture

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
saadoon
Posts: 2
Joined: Sun Nov 15, 2009 4:31 am

problem adding night texture

Post by saadoon » Sat Nov 16, 2013 8:59 am

Hi All,
trying to build photoscenery but sadly having problem resample the ini file
it works when i resample the inf file with main.bmp and water.tif it work fine but when i try to add night texture it wont resample.
here is my inf file=
[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719.bmp"
Variation = All
SamplingMethod = Gaussian
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05
Channel_LandWaterMask = 2.0
Channel_BlendMask = 3.0


[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719_LM.bmp"
Variation = Night
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05

[Source3]
Type = TIFF
Layer = None
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719_W.TIF"
SamplingMethod = Gaussian
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05

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

when i remove Source 2 it works and it build BGL file.
can sameone help me with what am doing wrong.

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

Re: problem adding night texture

Post by rhumbaflappy » Sat Nov 16, 2013 11:49 am

I would try this:

Code: Select all

[Source]
Type = MultiSource
NumberOfSources = 3

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719.bmp"
Variation = Day
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05
Channel_BlendMask = 3.0


[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719_LM.bmp"
Variation = Night
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05
Channel_BlendMask = 3.0

[Source3]
Type = TIFF
Layer = None
SourceDir = "."
SourceFile = "L15Y26125471Y26073913X50093410X50131719_W.TIF"
SamplingMethod = Gaussian
ulyMap = 26.2152028083801
ulxMap = 50.1594543457031
xDim = 2.86102294921875E-05
yDim = 2.14576721191406E-05

[Destination]
DestDir = "."
DestBaseFileName = "DAMMAM"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85
Variation Day rather than All. SamplingMethod only needs to be in the masking. Channel_BlendMask would be 3.0 ( third source, first channel of that file ).

Dick
Dick

saadoon
Posts: 2
Joined: Sun Nov 15, 2009 4:31 am

Re: problem adding night texture

Post by saadoon » Sat Nov 16, 2013 3:27 pm

Thanks Dick, I updated the INF file with your suggestion, I tried it but for some reason it wont resample, any idea?. appreciate your help
cheers mate

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

Re: problem adding night texture

Post by rhumbaflappy » Sun Nov 17, 2013 4:50 pm

The code I gave you does not create a watermask. It creates a blendmask. The blendmask should allow the default terrain to show... meaning water will show if the underlying terrain is water. A watermask just makes the photo act as water, where it is masked.

I tried the INF file with imagery of my own, and it works. The day bitmap ( L15Y26125471Y26073913X50093410X50131719.bmp ) and the night bitmap ( L15Y26125471Y26073913X50093410X50131719_LM.bmp ) are 24-bit bitmaps. The blendmask tiff ( L15Y26125471Y26073913X50093410X50131719_W.TIF ) is an 8-bit grayscale TIFF.

Dick
Dick

Post Reply