Page 1 of 1

problem adding night texture

Posted: Sat Nov 16, 2013 8:59 am
by saadoon
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.

Re: problem adding night texture

Posted: Sat Nov 16, 2013 11:49 am
by rhumbaflappy
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

Re: problem adding night texture

Posted: Sat Nov 16, 2013 3:27 pm
by saadoon
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

Re: problem adding night texture

Posted: Sun Nov 17, 2013 4:50 pm
by rhumbaflappy
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