• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

CFS2 Mesh

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':

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
 
Hi dick
I've done the mesh part ,first to fix a Gary20' mesh gap area that across Le Havre and the Seine estuary .I've named the two bgsl that cover each one fs9 lod5 with LEC as 947140m and 948140m ,all is ok ....this is more faster to make mesh in large scale .They are in LOD9 and they are 6,51 Mo and 14,8 Mo file sized. I 've used the CGIAR data ,each files had a surface of 25 SRTM30 height datas (5x5) that I used before to make mesh corrected (one by one) with Blackart and compiled with srtm_to_bgl_104,these files are sized like 1201 x 1201 ,does the missed pixel is due to that ? cause 5 x 1201 = 6005....with MW's FSTerrain 2002 I got with these hgt bmp sized 1200 x 1200 ,where are the pixels ??
Anyway all is good is the game the cliffs around Le Havre ad appeared ,for the next slati lwm step I will see tomorrow...:sleep: ...but all these promise some good things .....
Thanks for your tips

JP
 
Hi Jean.

The original 90 meter SRTM hgt files are all 1201x1201. They have a 1/2 pixel overlap N,S,E,and W. ( It's 'SampleIsCentered' ). The CGIAR tiff data don't have an overlap... the tiles just butt each other. That tells me the CGIAR data is one step removed from the original SRTM data, as they must have been resampled to change the pixel position by 1/2 pixel. I just like data being closer to the souce, as we are also resampling to get the BGLs.

I should have all the CST areas uploaded soon for LOD7. No need to reinvent the wheel there. And LOD 5 as well.

I'm playing with LOD9 mesh and LWM masking for huge areas, and I'm getting some results. For now, I'm sticking to the default Pacific areas for that, so Europe is a good place for you to work undisturbed. :)

The areas I'm working on are the default pac4 files.

Dick
 
Hi Jean.

......
I should have all the CST areas uploaded soon for LOD7. No need to reinvent the wheel there. And LOD 5 as well.

I'm playing with LOD9 mesh and LWM masking for huge areas, and I'm getting some results. For now, I'm sticking to the default Pacific areas for that, so Europe is a good place for you to work undisturbed. :)

The areas I'm working on are the default pac4 files.

Dick


Surely Dick I'll don't start a new mesh pack, I'm quite happy that you make them ,but I need to familiarize myself with the inf. bat. process and all the different tools,the practice is the best way.
I'v got some results in front of Le Havre ,with slarti , your bat.file, cfs2conv etc...I've got a LL_N50W002_lwm_Source_LWM000CFS2.bgl that cover a srtm area N50W002 Portsmouth Isle of Wight ,the lwm mask is ok ,it's fit with the mesh....:jump:...
but now I've a question :
does exist a way to use this line drawed to generate a vtp1 coastline .....?

Thanks

JP
 
Hi Jean.

CGiar has waterbody data... here is the 3d vector data:

ftp://xftp.jrc.it/pub/srtmV4/SRTM_Water_3D/

These are xyz shapefiles of the watermasking. With a GIS program, or maybe SBuilderX, you should be able to convert these to shorelines.

If you are skilled with the GIS program, you can extract polys of different types, I believe.. separating ocean from lakes or rivers.

Those in turn could be cut into LOD5 areas, and create SBX files from the FS9 SBuilder... and made as shorelines via cfs2autcoast/ground2k.

I use GlobalMapper, so this is simple for me.

Else, you can simply make an image of the LWM BGL from LWMViewer, and use the bitmap as a ground2k background to draw the shorelines.

Dick
 
rhumbaflappy said:
......
I'm having good luck with making LandWaterMasking with Slartibartfast. I needed to alter the positioning of the masks as Jim Keir made a math error in positioning. I'm also experimenting with trimming the mesh to the coast, thereby eliminating the need for flattens. It works at about 98% or better.
....

As I am interested by the slarti process for the lwm masking ,for the euro area, ,this is an alternative to the slow handly method ,i've done some around my current projects. when I compare the area covered done where I've used the both maners ,the handly finition stay better and more acurate but more consuming time to do .....so i'll try to use the both way for my current and future works ,handly near the principal scenery site,with a upper LOD and slarti all around to fit the mesh ,under fs lod 5 surface for me ,cause using the free version I'm up of the 50 000 pts with lod5 .
I think the error is surely minime ,but does the math error make the slarti lwm always available and is it easy to fix it ?
about the coastlines a unique long beach can surely not give complete satisfaction and so we have to make now some new alternative textures to make the shorelines as rocky ,sandy, mangrove ,lava etc.....

Thanks
JP
 
Hi Jean.

What I have ben doing:

I make the mesh using resample directly...

Code:
[Destination]
DestDir = "."
DestBaseFileName = "CST4b20a_"
UseSourceDimensions = 0
NorthLat = 0
SouthLat = -11.25
WestLong = 150
EastLong = 165
LOD = 9
SkipZeroBlocks = True

[Source]
Type = ElevS16LSB
SourceDir = "..\Source"
SourceFile = "CST4b20.bil"
Lat = 0.50
Lon = 149.5
NumOfLines = 28201
NumOfCellsPerLine = 36601
CellXdimensionDeg = 0.000833333333
CellYdimensionDeg = 0.000833333333

I then use slartibartfast to make the LWM watermasking...

Code:
[Destination]
DestDir = "."
DestBaseFileName = "CST4b20a_"
UseSourceDimensions = 0
NorthLat = 0
SouthLat = -11.25
WestLong = 150
EastLong = 165
LOD = 13
SkipZeroBlocks = True

[Source]
Type = ElevS16LSB
SourceDir = "..\Source"
SourceFile = "CST4b20.bil"
[B]Lat = 0.500833333333
Lon = 149.499166666667[/B]
NumOfLines = 28201
NumOfCellsPerLine = 36601
CellXdimensionDeg = 0.000833333333
CellYdimensionDeg = 0.000833333333

[LWM]
NormalMesh = 0
LWMVersion = 2
LWMCling = 2
LWMMerge = 1
SeaLevel = 0
NoIslands = True
ForceMask = 1
UndefLand = False
ExpandMesh = True
;CoastBias = 1.2
VectorSmooth = 2.5

[WaterSource]
Type = Image
SourceDir = "..\Source"
SourceFile = "CST4b20_Lakes_A1.png"
Lat = -0.00041666666666667
Lon = 150.00041666666667000
NumOfCellsPerLine = 18360
NumOfLines = 13770
CellXdimensionDeg = 0.000833333333
CellYdimensionDeg = 0.000833333333

The WaterSource is the exact refpoint, but the mesh Source refpoint has been adjusted northward and westward to make sure the LWM output is OK. I moved the mesh one cell dimension each way, and that cured the problem.

The pics show the Watermask centered over the mesh in FSX' TMFViewer, then the result after I trim the mesh to eliminate the need for flattens, and the end result.
 
Hi Dick

When I've made the lwm around Portsmouth n52w02 I've not seen anything special except some water drop in some place where the cliffs was more inportant ,thinking that's need some flatten for these....after I've made one other lwm ,to keep the hand, for the other side of the channel ,Le Havre n49e00,where I work on a project and where the lwm water and land already exist and the coastline too.I wanted to compare and I've noticied some difference between that I've drawed and the slarti lwm ,visible particulary with the "missed" cliffs around Le Havre that I've had showed ,here the pics of these with slrti lwm ,the coastlines are the line of my work and ,if it's slow ,i'm sure of it accuracy.
I'd Thinking too ,using to test different setting to compile that i've made an error somewhere.... thanks again to your new discovery and the fix to resolve this error that finally is not so minime,that keep us to some moments of doubt that we could have making some spice sceneries.:banghead:
NB, in the precedent LH cliff pic there is no flatten done and seems no needed .

JP
 
Back
Top