- Messages
- 1,588
- Country
Hey Sean.... Marcus from waaaay back. Remember simwestCONTROL? ha! Glad to see you are still in flightsim. Just released my first product. Two more are about to drop.
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
0.0000091084
0.0000000000
0.0000000000
-0.0000091084
-61.2346257144
14.8993192805
[Source]
Type = GeoTIFF
Layer = Elevation
Channel_BlendMask = 2.0
SourceDir = E:\MNT compil decompil Test\
SourceFile = Image.tif
GCS = WGS84
nCols = 8954
nRows = 9641
nBands = 1
PixelIsPoint = 1
SamplingMethod = Gaussian
SampleType = SINT16
XDIM = 0.0000091084
YDIM = 0.0000091084
ULXMAP = -61.2346257144
ULYMap = 14.8993192805
[Destination]
DestDir = E:\MNT compil decompil Test\out\
DestBaseFileName = MNT_test
UseSourceDimensions = 1
DestFileType = BGL
LOD = Auto
[Source]
Type = MultiSource
NumberOfSources = 2
[Source1]
Type = Raw
Layer = Elevation
Channel_BlendMask = 2.0
SourceDir = E:\MNT compil decompil Test\out\
SourceFile = DEM-17-32430-27343.bin
GCS = WGS84
nCols = 6145
nRows = 8449
nBands = 8449
PixelIsPoint = 1
SamplingMethod = Gaussian
BandLayout = BIL
ByteOrder = Intel
SampleType = UINT8
XDIM = 0.021887
YDIM = 0.021887
ULXMAP = -61.237793
ULYMap = 14.900208
[Source2]
Type = Raw
Layer = None
SourceDir = E:\MNT compil decompil Test\out\
SourceFile = DEM-17-32430-27343-MASK.bin
GCS = WGS84
nCols = 6145
nRows = 8449
nBands = 8449
PixelIsPoint = 1
SamplingMethod = Gaussian
BandLayout = BIL
ByteOrder = Intel
SampleType = UINT8
XDIM = 0.021887
YDIM = 0.021887
ULXMAP = -61.237793
ULYMap = 14.900208
[Destination]
DestDir = E:\MNT compil decompil Test\out\
DestBaseFileName = DEM-17-32430-27343
UseSourceDimensions = 1
BYTEORDER I
LAYOUT BIL
NROWS 8449
NCOLS 6145
NBANDS 8449
NBITS 8
ULXMAP -61.237793
ULYMAP 14.900208
XDIM 0.021887
YDIM 0.021887
BYTEORDER I
LAYOUT BIL
NROWS 8449
NCOLS 6145
NBANDS 1
NBITS 16
ULXMAP -61.237793
ULYMAP 14.900208
XDIM 0.0000143046
YDIM 0.0000107285
The DEM data and the landclass data is PTC encoded via different algorithms depending on the non null data. Have you been using BGLDEC? Is dem0502.bgl you are having issues with BGLDEC? Can you post your QMID and output? ThanksHey there,
While working with worldlc.bgl from FSX I've found out that binary output has bytes set to 00 where they shouldn't be.
For example, the bitmap for QMID(7,0,0) is all ice, but the binary, instead of being full of 7A (122 in decimal, for Ice), has some bytes set to 00. I thought it was some sort of row separation, but the grids are allegedly 257x257 which is the resolution of the bitmap AND the size of the binary output, so something is definitely off. Both my tool and BGLViewer from @Patrick Germain decompress that QMID grid as full 7A.
Also, I was working with some FSX default .dem files which no other tool can really decompress and what I've noticed is that the output of the decompression doesn't seem to match all the existing TRQ1 records from the .bgl file. For example, dem0502.bgl seems to have TerrainElevation from QMID level 4 up to 11, yet the tool only outputs levels 4 to 8 and there's some missing grids even within those.
Perhaps I'm doing something wrong, but I've checked the documentation and while there is some mention of LOD settings, it appears they no longer exist in the latest versions.
While working with worldlc.bgl from FSX I've found out that binary output has bytes set to 00 where they shouldn't be.
For example, the bitmap for QMID(7,0,0) is all ice, but the binary, instead of being full of 7A (122 in decimal, for Ice), has some bytes set to 00. I thought it was some sort of row separation, but the grids are allegedly 257x257 which is the resolution of the bitmap AND the size of the binary output, so something is definitely off. Both my tool and BGLViewer from @Patrick Germain decompress that QMID grid as full 7A.
Also, I was working with some FSX default .dem files which no other tool can really decompress and what I've noticed is that the output of the decompression doesn't seem to match all the existing TRQ1 records from the .bgl file. For example, dem0502.bgl seems to have TerrainElevation from QMID level 4 up to 11, yet the tool only outputs levels 4 to 8 and there's some missing grids even within those.
Thankfully this is not a decompression problem, just how the output is being rendered to a file. FYI, the 8 bit raster types (everything except for DEM and Aerial) are not encoded in PTC and only every use the delta, bitpack, and LZ permutations. This is because PTC does not specify a single channel 8 bit compression mode, and even if one was to customize the algorithm to add it I imagine you would probably get lousy results. That sort of data lends itself better to a standard dictionary coder than the entropy + transform of an image coder.The DEM data and the landclass data is PTC encoded via different algorithms depending on the non null data. Have you been using BGLDEC? Is dem0502.bgl you are having issues with BGLDEC? Can you post your QMID and output? Thanks