- Messages
- 38
- Country
Hi,
After hours of trying to solve the problem, I'm stumped.
When I try to compile some photoscenery with resample.exe, the compiler throws an error as follows
I have two daytime images (summer and winter), one nighttime image, and one alpha. The INF file, the four image sources, and the Resample executable are all in the same folder: D:\Backup 20200516\Prepar3D Projects\Scenery - Norfolk Intl Photoreal
The images are 6000px wide and 6779px tall. They are saved in 24-bit BMP.
The photoreal boundary coordinates are: (N) 36.910349 (S) 36.881381 (N-S difference) 0.028968 // (E) -76.186453 (W) -76.218511 (E-W difference) 0.032058
What stumps me is that the error - presumably caused because the computer thinks my xDim and yDim values are 0 (or otherwise invalid) - is that the compiler thinks that my xDim = 5.343000, which is =/= 5.343e-6. Equally weird is the compiler thinks my yDim is 0.000000 when I clearly put 4.27...e-6.
I've successfully compiled multiple photoreal files in the past with smaller xDim/yDim values (as low as 1.5...e-6) and I can confirm that those projects still compile OK.
Could anyone perhaps point me in the right direction regarding this issue? Am I missing something?
Thanks much in advance.
The INF file is as follows (also attached for your convenience):
After hours of trying to solve the problem, I'm stumped.
When I try to compile some photoscenery with resample.exe, the compiler throws an error as follows
Code:
D:\Backup 20200516\Prepar3D Projects\Scenery - Norfolk Intl Photoreal>"resample.exe" "KORF_PS_2.inf"
Lockheed Martin(R) api_strings 4.5.14.34698
(C) Lockheed Martin. All rights reserved.
Resample Info File: 'KORF_PS_2.inf'
[Source] Type = 'MultiSource'
[Source] NumberOfSources = 4
[Source1] Type = 'BMP'
[Source1] SourceDir = '.'
[Source1] SourceFile = 'KORF_PS_Summer.BMP'
[Source1] Layer = 'Imagery'
[Source1] Channel_BlendMask = '3.0'
[Source1] ULXMAP = -76.218511
[Source1] ULYMAP = 36.910349
[Source1] XDIM = 5.343000
[Source1] YDIM = 0.000000
[Source1] Variation = 'April, May, June, July, August, September, October'
Pixel width and height must be greater than zero.
Unable to open data source 'D:\Backup 20200516\Prepar3D Projects\Scenery - Norfolk Intl Photoreal\KORF_PS_Summer.BMP'.
Failed to create data source.
D:\Backup 20200516\Prepar3D Projects\Scenery - Norfolk Intl Photoreal>pause
Press any key to continue . . .
I have two daytime images (summer and winter), one nighttime image, and one alpha. The INF file, the four image sources, and the Resample executable are all in the same folder: D:\Backup 20200516\Prepar3D Projects\Scenery - Norfolk Intl Photoreal
The images are 6000px wide and 6779px tall. They are saved in 24-bit BMP.
The photoreal boundary coordinates are: (N) 36.910349 (S) 36.881381 (N-S difference) 0.028968 // (E) -76.186453 (W) -76.218511 (E-W difference) 0.032058
What stumps me is that the error - presumably caused because the computer thinks my xDim and yDim values are 0 (or otherwise invalid) - is that the compiler thinks that my xDim = 5.343000, which is =/= 5.343e-6. Equally weird is the compiler thinks my yDim is 0.000000 when I clearly put 4.27...e-6.
I've successfully compiled multiple photoreal files in the past with smaller xDim/yDim values (as low as 1.5...e-6) and I can confirm that those projects still compile OK.
Could anyone perhaps point me in the right direction regarding this issue? Am I missing something?
Thanks much in advance.
The INF file is as follows (also attached for your convenience):
Code:
[Source]
Type = MultiSource
NumberOfSources = 4
[Source1]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "KORF_PS_Summer.BMP"
ulxMap =-76.218511
ulyMap = 36.910349
xDim = 5.343e-6
yDim = 4.27319663e-6
Channel_BlendMask = 3.0
Variation = April, May, June, July, August, September, October
[Source2]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "KORF_PS_Winter.BMP"
ulxMap =-76.218511
ulyMap = 36.910349
xDim = 5.343e-6
yDim = 4.27319663e-6
Channel_BlendMask = 3.0
Variation = November, December, January, February, March
[Source3]
Type = BMP
Layer = None
SourceDir = "."
SourceFile = "KORF_PS_Alpha.BMP"
ulxMap =-76.218511
ulyMap = 36.910349
xDim = 5.343e-6
yDim = 4.27319663e-6
SamplingMethod = Gaussian
NullValue = 255,255,255
[Source4]
Type = BMP
Layer = Imagery
SourceDir = "."
SourceFile = "KORF_PS_LM.BMP"
ulxMap =-76.218511
ulyMap = 36.910349
xDim = 5.343e-6
yDim = 4.27319663e-6
Channel_BlendMask = 3.0
Variation = Night
[Destination]
DestFileType = BGL
DestDir = "."
DestBaseFileName = "KORF_PS_2"
LOD = Auto
CompressionQuality = 95
UseSourceDimensions = 1