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.
problem adding night texture
-
- Posts: 420
- Joined: Sat Oct 16, 2004 10:11 pm
Re: problem adding night texture
I would try this:
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
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
Dick
Dick
Re: problem adding night texture
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
cheers mate
-
- Posts: 420
- Joined: Sat Oct 16, 2004 10:11 pm
Re: problem adding night texture
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
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