Jump to content
Sign in to follow this  
Guest jimkeir

Slartibartfast - creating streams / Rivers

Recommended Posts

Guest qowiboy

Hello allafter a lot of tests, i arrived on a wall, and hjope someone can help me to tumb down this one:I want to create streams, that follows automatically the relief (Mesh) until it reaches no data. Such a function should be possible with slartibartfast, where a section [Rivers] and following inputs in lat/long define a "spring", and water will follow the referenced mesh.After a lot of tests i could not detect, how this function work, respectively why doesn't it function with my .inf -File.unfortunally in the slartibartfast -manual there is no example how this function should work correctly...I hope for your hints and tips, therefore i thank you for any response:.inf =*****************************BOF[Destination]DestDir = ".Scenery"DestBaseFileName = "fluss"UseSourceDimensions = 0NorthLat = -11.25WestLong = -75.000000 SouthLat = -14.062500 EastLong = -71.250000LOD = 10[LWM]SRTM = 0VectorSmooth = 8ExpandMesh = 0Coastline = 1Sharpen = 0NormalMesh = 1CoarseMesh = 0LWMVersion = 3Landclass = NoneDitherLC = 8PatchAPT = 0PatchLWM = 0UpdateWM = 0BeachWidth = 20LakeWidth = 20RiverWidth = 20[source]Type = ElevS16MSBSourceDir = "Source"SourceFile = "dem.msb"Lat = -11.0000Lon = -75.0000NumOfCellsPerLine = 4801NumOfLines = 4801CellXDimensionDeg = 0.00083263946711074104912572855953372CellYDimensionDeg = 0.00083263946711074104912572855953372ScaleInMeters = 1.00000000[WaterSource]Type = ImageSourceDir = "Source"SourceFile = "watermask.bmp"Lat = -11.250000Lon = -75.000000NumOfCellsPerLine = 10000NumOfLines = 7500CellXDimensionDeg = 0.000375CellYDimensionDeg = 0.000375[Rivers]Start = S14* 2.52', W73* 14.00', 100Start = S12* 13.22', W74* 35.24', 100Start = S11* 54.39', W73* 32.88', 100Start = S11* 15.14', W73* 49.37', 100Start = S11* 26.33', W72* 34.57', 100Start = S11* 29.02', W72* 55.94', 100Start = S11* 27.14', W73* 12.46', 100Start = S11* 41.94', W73* 19.94', 100Start = S12* 1.51', W73* 12.58', 100Start = S11* 49.04', W72* 48.71', 100Start = S13* 7.93', W72* 35.44', 100Start = S11* 56.54', W72* 33.30', 100Start = S12* 4.24', W72* 30.08', 100Start = S11* 43.01', W72* 13.18', 100Start = S11* 42.47', W72* 0.05', 100Start = S12* 57.93', W71* 27.41', 100*****************************EOFThe result is only in VTP & LWM with my watermask defined, but no more adds of other rivers.- BBfluss.bgl- LL_fluss_lwm.bgl- VV_fluss_vtp.bglthe automaically created batchfile looks like this:*****************************BOF@echo offset TOOLSDIR=C:progra~1Terrain_Toolsecho Compiling VTP...del ".SceneryVV_fluss_vtp.bgl" 2>NUL:"%TOOLSDIR%bglc" -I"%TOOLSDIR%" ".SceneryVV_fluss_vtp.bgs"echo Compiling LWM...del ".SceneryLL_fluss_lwm.bgl" 2>NUL:"%TOOLSDIR%bglc" -I"%TOOLSDIR%" ".SceneryLL_fluss_lwm.bgs"echo Resampling fine mesh..."%TOOLSDIR%resample" "fluss_new.inf"IF NOT EXIST ".Sceneryfluss.tmf" GOTO m1"%TOOLSDIR%tmfcompress" ".Sceneryfluss.tmf" temp.tmf"%TOOLSDIR%tmf2bgl" temp.tmf ".SceneryBBfluss.bgl"del temp.tmf ".Sceneryfluss.tmf" 2>NUL:goto m1a:m1pushd ".Scenery"del "BBfluss.bgl" 2>NUL:ren "fluss.bgl" "BBfluss.bgl"popd:m1a*****************************EOFFrancis - qowiboy

Share this post


Link to post
Share on other sites
Guest jimkeir

Hi,Looks OK to me except that all your rivers will stop at 100m ASL. Could you post the logfile that's created too? That should say whether or not it's interpreted the [Rivers] section correctly.It's covered in the manual on p.32, but only briefly. What you've got in the file seems OK but I have to admit it's been a while since I used this function :)Cheers,Jim

Share this post


Link to post
Share on other sites
Guest qowiboy

Hello Jim,Thank you for that very FAST answer... unfortunally i could not find any log-file, i assume it must be in the Terrain_Tools -Folder?, but analyzing your answer you gave me the essential hint, which i should try:"that all your rivers will stop at 100m ASL."1. this section did not work well without inserting the third "Z" parameter (it did not recognize anything)2. Its ASL, that means it will overflow only about 100m a.s.l., unfortunaly this area has no deeper area than ~300m ... so i should try with higher values?kind regardsFrancisi will try now with aa high value! (5000 m ASL.)

Share this post


Link to post
Share on other sites
Guest qowiboy

ok, ok, i found the log: it's the "*.html"now i am testing with a complet black watermask (black = no lakes - 8bit bmp) and i changed altitude to 0, as on value "5000", strip.exe shut-down in windows. the result is:*****************************************BOFSlartibartfast Log for flussCompiled at Wed Jan 18 16:13:20 2006SettingsNorthwest Limit S11* 15.0000', W75* 0.0000'Southeast Limit S14* 3.7950', W71* 14.9550'Landclass NoWaterclass NoMesh YesSharpening NoSRTM Processing 0Coarse Mesh NoCoastline Version 3Sealevel 0 mPatch default BGLs NoRemesh NoPatch Airports NoOutput Folder .SceneryReading config and dataLatitude : S11* 15.0000'Longitude : W75* 0.0000'Width : 10002Height : 7502Cell Width : 0.000375Cell Height : 0.000375Raster Smooth : 2.500Vector Smooth : 8.000Peak memory usage will be around 500MbReal boundary area: Lat : -11.25000000 -> -14.06250000 (C288 -> C295) Long : -75.00000000 -> -71.25000000 (C224 -> C231)64 (8x8) cells to be processed.Loading terrain dataScaling "Sourcedem.msb" Loading water dataReading "Sourceblack.bmp" Promoting image type 1 to 16-bit - done.The watermask only has a single value - ignoring it completely!Problem preparing watermap - erasing it.Pre-processingMaking watermapCreating riversRiver at 4711,7445 with high water mark at 0River at 1100,2587 with high water mark at 0River at 3871,1750 with high water mark at 0River at 3139,6 with high water mark at 0River at 6463,503 with high water mark at 0River at 5513,623 with high water mark at 0River at 4779,539 with high water mark at 0River at 4447,1197 with high water mark at 0River at 4774,2067 with high water mark at 0River at 5835,1512 with high water mark at 0River at 6424,5019 with high water mark at 0River at 6519,1846 with high water mark at 0River at 6663,2188 with high water mark at 0River at 7414,1244 with high water mark at 0River at 7997,1220 with high water mark at 0River at 9448,4574 with high water mark at 0ProcessingWriting reprojected meshWriting coastline [1/64] [2/64] [3/64] [4/64] [5/64] [6/64] [7/64] [8/64] [9/64] [10/64] [11/64] [12/64] [13/64] [14/64] [15/64] [16/64] [17/64] [18/64] [19/64] [20/64] [21/64] [22/64] [23/64] [24/64] [25/64] [26/64] [27/64] [28/64] [29/64] [30/64] [31/64] [32/64] [33/64] [34/64] [35/64] [36/64] [37/64] [38/64] [39/64] [40/64] [41/64] [42/64] [43/64] [44/64] [45/64] [46/64] [47/64] [48/64] [49/64] [50/64] [51/64] [52/64] [53/64] [54/64] [55/64] [56/64] [57/64] [58/64] [59/64] [60/64] [61/64] [62/64] [63/64] [64/64]Now you can build the project using fluss.bat .StatisticsPoints considered : 1345Points used : 249Detail : 100.00%VTP lines : 16LWM Polys : 17Raster Smoothing : 2.500Vector Smoothing : 8.000Total runtime : 4:21*****************************EOFMaybe i have not a good version of Slarti?strip.exe = 29.12.2004result in FS9 = no rivers!add-on 17:30 (GMT+1): i just found in FS, that he did something: at the startpoints there are appearing small round lakes, as the river would start there, but it does not continue... strange...Saludosfrancis

Share this post


Link to post
Share on other sites
Guest jimkeir

Hi,There is indeed a newer version of the program available, but I don't think there were any changes regarding the Rivers code. Worth a try though. I can't investigate tonight I'm afraid but will check tomorrow.http://www.jimkeir.co.uk/FlightSim/AutoGen/index.htmlThe third parameter to the 'Rivers' command should be optional (remember to also remove the comma before it) but if not then try the 5000m limit as you suggested. I'll take a look and verify that it *is* optional.The log you found does show that the rivers are being processed; if you can see that bit, then that's a start.Cheers,Jim

Share this post


Link to post
Share on other sites
Guest sturman

My problem:*************************Scaling "C:N43E133.hgt" Scaling "C:N43E134.hgt" Scaling "C:N44E133.hgt" Scaling "C:N44E134.hgt" Scaling "C:N42E133.hgt" Scaling "C:N42E134.hgt" Scaling "C:N42E132.hgt" Scaling "C:N43E132.hgt" Scaling "C:N44E132.hgt" Failed to load source file(s).Now you can build the project using ryd0001.bat .*********************************** inf **************(Destination)DestDir = ".Scenery"DestBaseFileName = "ryd0001"UseSourceDimensions = 0LOD = AutoNorthLat = 45.0SouthLat = 43.0WestLong = 133.0EastLong = 135.0Coastline = 1(LWM)SRTM = 0VectorSmooth = 8ExpandMesh = 0Coastline = 1Sharpen = 0NormalMesh = 1CoarseMesh = 0LWMVersion = 3Landclass = NoneDitherLC = 8PatchAPT = 0PatchLWM = 0UpdateWM = 0BeachWidth = 20LakeWidth = 20RiverWidth = 20(Source)Type = ElevS16MSBNumberOfSources = 9(Source1)SourceDir = "C:"SourceFile = "N43E133.hgt"Lat = 44Lon = 133CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source2)SourceDir = "C:"SourceFile = "N43E134.hgt"Lat = 44Lon = 134CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source3)SourceDir = "C:"SourceFile = "N44E133.hgt"Lat = 45Lon = 133CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source4)SourceDir = "C:"SourceFile = "N44E134.hgt"Lat = 45Lon = 134CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source5)SourceDir = "C:"SourceFile = "N42E133.hgt"Lat = 43Lon = 133CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source6)SourceDir = "C:"SourceFile = "N42E134.hgt"Lat = 43Lon = 134CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source7)SourceDir = "C:"SourceFile = "N42E132.hgt"Lat = 43Lon = 132CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source8)SourceDir = "C:"SourceFile = "N43E132.hgt"Lat = 44Lon = 132CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Source9)SourceDir = "C:"SourceFile = "N44E132.hgt"Lat = 45Lon = 132CellXDimensionDeg = 0.000833334CellYDimensionDeg = 0.000833334NumOfLines = 1201NumOfCellsPerLine = 1201(Rivers)Start = N43* 36.61', E134* 17.82'*********************************

Share this post


Link to post
Share on other sites
Guest jimkeir

Hi,I think the problem is in the 'Source' section. Change it from:[source]Type = ElevS16MSBNumberOfSources = 9... to ...[source]Type = MultisourceNumberOfSources = 9and see if that helps.Cheers,Jim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...