rhumbaflappy
Charter Member
Hi Jean.
Slatibartfast is creating the mask from the mesh data... not using the published SRTM masks.
Here's an INF I am using named '990350m.inf':
Here's my '990350mesh.bat' file to run it:
The BAT files run this through FS2000 resample|tmfcompress|tmf2bgl ( the [LWM] section is ignored by resample ). This gives me the mesh.
It then runs this through 'slarti' and that gives me an LWM for FS2002 that I can import to SBuilder, delete all the areafills, and save as an SBX file. That SBX is run through CFS2Autocoast to turn SBX into Area16n flattens. The 'SeaLevel = 1', insures the flattens extend a bit inward from the coasts.
I then can alter the INF to read 'UpDateWM = True' and 'SeaLevel = 0', and rerun slarti from the command line 'slarti 991350m.inf' , to get the actual FS2002 LWM BGLs, and a watermap for further experimentation with slarti. This BGL needs to be opened with Jim Keir's LWMViewer, and source exported. That 'bgs' ( asm ) code can then be converted to CFS2 with Edgar Knobloch's cfs2conv program... which can then be reassembled using my BGLC_9|TDFHeaders.inc|TDFMacros.inc files. The result is CFS2 land-water mask BGL.
I have data I can add to the watermap that will give lakes and major rivers, and I can add small rivers using slarti.
Once I get this organized, I should be able to produce an LOD5-sized package that includes water, flattens, and LOD9 mesh in pretty good detail, in a couple of hours.
A landclass to cover the LOD5 could be made with SBuilderX to get the raw data placed over Google maps or Virtual Earth imagery, and that RAW file compiled with FS2000 resample.
But... today I'm backing up all my huge ( 2 Gb ) "CST4xx0.bil" files to DVD. They take up about 190 Gb on my harddrive, and I need that room back!
Dick
Slatibartfast is creating the mask from the mesh data... not using the published SRTM masks.
Here's an INF I am using named '990350m.inf':
Code:
[Destination]
DestDir = "."
DestBaseFileName = "990350"
UseSourceDimensions = 0
NorthLat = -8.4375
SouthLat = -11.25
WestLong = 157.5
EastLong = 161.25
LOD = 9
[Source]
Type = ElevS16LSB
SourceDir = "..\CST"
SourceFile = "CST4b20.bil"
Lat = 0.0000000077
Lon = 149.1005722140
NumOfLines = 27811
NumOfCellsPerLine = 37081
CellXdimensionDeg = 0.000833317902
CellYdimensionDeg = 0.000833317902
ScaleinMeters = 1.0
[LWM]
Sharpen = 0.3
NormalMesh = 0
LWMVersion = 2
LWMCling = 0
LWMMerge = 0
RasterSmooth =2.0
VectorSmooth = 1.0
UpDateWM = False
SeaLevel = 1
Here's my '990350mesh.bat' file to run it:
Code:
set TOOLSDIR=C:\Terrain_Tools
resample 990350m.inf
tmfcompress 990350.tmf comp.tmf
tmf2bgl comp.tmf DEM990350_9.bgl
del *.tmf
move DEM990350_9.bgl "C:\Documents and Settings\Dick\Desktop\CFS2_DEM\Slarti\scenery"
slarti 991350m.inf
echo Compiling LWM...
"%TOOLSDIR%\bglc" -I"%TOOLSDIR%" ".\LL_990350_lwm.bgs"
del *.bgs
del *_new.*
del *.html
del 990350.bat
The BAT files run this through FS2000 resample|tmfcompress|tmf2bgl ( the [LWM] section is ignored by resample ). This gives me the mesh.
It then runs this through 'slarti' and that gives me an LWM for FS2002 that I can import to SBuilder, delete all the areafills, and save as an SBX file. That SBX is run through CFS2Autocoast to turn SBX into Area16n flattens. The 'SeaLevel = 1', insures the flattens extend a bit inward from the coasts.
I then can alter the INF to read 'UpDateWM = True' and 'SeaLevel = 0', and rerun slarti from the command line 'slarti 991350m.inf' , to get the actual FS2002 LWM BGLs, and a watermap for further experimentation with slarti. This BGL needs to be opened with Jim Keir's LWMViewer, and source exported. That 'bgs' ( asm ) code can then be converted to CFS2 with Edgar Knobloch's cfs2conv program... which can then be reassembled using my BGLC_9|TDFHeaders.inc|TDFMacros.inc files. The result is CFS2 land-water mask BGL.
I have data I can add to the watermap that will give lakes and major rivers, and I can add small rivers using slarti.
Once I get this organized, I should be able to produce an LOD5-sized package that includes water, flattens, and LOD9 mesh in pretty good detail, in a couple of hours.
A landclass to cover the LOD5 could be made with SBuilderX to get the raw data placed over Google maps or Virtual Earth imagery, and that RAW file compiled with FS2000 resample.
But... today I'm backing up all my huge ( 2 Gb ) "CST4xx0.bil" files to DVD. They take up about 190 Gb on my harddrive, and I need that room back!
Dick