• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    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.

BGS Tweak, or any BGS editing hints

Messages
4
Country
switzerland
HEllo all

conidering Files with extensions .bgs as source files of BGLC.exe i am posting my question here:

does anyone know how to edit bgs files with LWM poligons? i thought doing it right by adjusting LWMPoly Level3 (these-ones which flattens but also allow degradings, cliffs, etc.) as i want to correct altutude values of each point, but i get no result. I work with slartibartfast to create rivers and lakes, but actually my river does not have correct altitudes, or it goes like a snake vertically up and down with the height values... so i tried to correct the BGS with no better result. See this example

original "snake"-LWM
include TDFMacros.inc
include TDFHeaders.inc
_Water_ EQU 0
_Land_ EQU 1
_Flatten_ EQU 2
_Transparent_ EQU 3
_WaterLevel_ EQU 0

BGLHeader -10, -15, -70, -75, LWMHeader, TerrainHeaderStart
LWMHeader label word
LWMFileHeader 768, LWMIndexStart, LWMStart, LWMEnd

; Start of cell data
LWMStart label word
Cell_224x288 EQU LWMCellID 1, 0, _CellType_224x288_, 224, 288
datamark_224x288_S label word
datamark_224x288_E label word
_CellType_224x288_ EQU _Transparent_
Cell_225x288 EQU LWMCellID 1, 0, _CellType_225x288_, 225, 288
datamark_225x288_S label word
LWMDataAreaDrawPolygons 1,_Transparent_,1,6,0
LWMPoly3 23,0,_Water_,416,0,448,0
LWMPoint3 254, 45, 23 ; 419.00
LWMPoint3 255, 45, 23 ; 419.00
LWMPoint3 255, 79, 0 ; 416.00
LWMPoint3 254, 80, 0 ; 416.00
LWMPoint3 247, 95, 39 ; 421.00
LWMPoint3 247, 96, 135 ; 433.00
LWMPoint3 249, 99, 135 ; 433.00
LWMPoint3 251, 100, 135 ; 433.00
LWMPoint3 255, 104, 223 ; 444.00
LWMPoint3 255, 164, 31 ; 420.00
LWMPoint3 254, 162, 31 ; 420.00
LWMPoint3 239, 141, 95 ; 428.00
LWMPoint3 236, 130, 143 ; 434.00
LWMPoint3 229, 122, 143 ; 434.00
LWMPoint3 223, 113, 143 ; 434.00
LWMPoint3 211, 95, 167 ; 437.00
LWMPoint3 212, 78, 255 ; 448.00
LWMPoint3 213, 76, 255 ; 448.00
LWMPoint3 221, 67, 255 ; 448.00
LWMPoint3 233, 66, 0 ; 416.00
LWMPoint3 243, 58, 0 ; 416.00
LWMPoint3 254, 47, 0 ; 416.00
LWMPoint3 254, 45, 0 ; 416.00

my corrected value entries
include TDFMacros.inc
include TDFHeaders.inc
_Water_ EQU 0
_Land_ EQU 1
_Flatten_ EQU 2
_Transparent_ EQU 3
_WaterLevel_ EQU 0

BGLHeader -10, -15, -70, -75, LWMHeader, TerrainHeaderStart
LWMHeader label word
LWMFileHeader 768, LWMIndexStart, LWMStart, LWMEnd

; Start of cell data
LWMStart label word
Cell_224x288 EQU LWMCellID 1, 0, _CellType_224x288_, 224, 288
datamark_224x288_S label word
datamark_224x288_E label word
_CellType_224x288_ EQU _Transparent_
Cell_225x288 EQU LWMCellID 1, 0, _CellType_225x288_, 225, 288
datamark_225x288_S label word
LWMDataAreaDrawPolygons 1,_Transparent_,1,6,0
LWMPoly3 23,0,_Water_,416,0,416,0
LWMPoint3 254, 45, 23 ; 416.00
LWMPoint3 255, 45, 23 ; 416.00
LWMPoint3 255, 79, 0 ; 416.00
LWMPoint3 254, 80, 0 ; 416.00
LWMPoint3 247, 95, 39 ; 416.00
LWMPoint3 247, 96, 135 ; 416.00
LWMPoint3 249, 99, 135 ; 416.00
LWMPoint3 251, 100, 135 ; 416.00
LWMPoint3 255, 104, 223 ; 416.00
LWMPoint3 255, 164, 31 ; 416.00
LWMPoint3 254, 162, 31 ; 416.00
LWMPoint3 239, 141, 95 ; 416.00
LWMPoint3 236, 130, 143 ; 416.00
LWMPoint3 229, 122, 143 ; 416.00
LWMPoint3 223, 113, 143 ; 416.00
LWMPoint3 211, 95, 167 ; 416.00
LWMPoint3 212, 78, 255 ; 416.00
LWMPoint3 213, 76, 255 ; 416.00
LWMPoint3 221, 67, 255 ; 416.00
LWMPoint3 233, 66, 0 ; 416.00
LWMPoint3 243, 58, 0 ; 416.00
LWMPoint3 254, 47, 0 ; 416.00
LWMPoint3 254, 45, 0 ; 416.00

the best would be if someone knows how to edit BGS -Files, maybe in a WYSIWYG -Editor or better importing them into progs like ground2k4 (.lwm -files).

does anybody know what i copuld do to tweak the bgs -files?

thanks a lot

Francis
 
Hi Francis,

qowiboy said:
does anyone know how to edit bgs files with LWM poligons?

Which tool did create these files for you? Usually BGLC source files have the extension ASM, I haven't seen BGS files myself yet. But in the end it does not matter what extension they have, as they are just ASCII text files, that you can edit with any text editor.

qowiboy said:
the best would be if someone knows how to edit BGS -Files, maybe in a WYSIWYG -Editor or better importing them into progs like ground2k4 (.lwm -files).

It seems you have only changed the value behind the semicolon, which is in fact a comment. So it is logical that you don't see any difference from that.
 
Hello Arno

the program which creates BGS is SLARTIBARTFAST....

thank xyou for the "comment" hint, but whe you say it is a .ASM -file (and i do believe in you ;) ), then there should be a documentation about SYNTAX of that source-file? Who knows about such a tool or such a documentation, which is easy to understand?


Thank you again Arno for your answer


saludos

Francis
 
Hi Francis,

No, there is not very much documentation about the code used by BGLC. The best source of information is the Fs2004 Terrain SDK. The document on the terrain vector data explains how this part of the scenery works (warning, there will probably be a few typos in that doc, so don't believe anything you read :)).

Another source might be the include files that are loaded in your file (TDFMacros.inc). You might be able to see some comments about the different commands, but I don't know how much the author has added :).
 
Thank you Arno!

My knowledge-base for now is this:

Cell_225x288 EQU LWMCellID 1, 0, _CellType_225x288_, 225, 288
identify my area (255,288), easy to do with LWMviewer

LWMDataAreaDrawPolygons 1,_Transparent_,1,6,0
sub-position of the polygon = 6x0 (to find out with LWMViewer)

LWMPoly3 23,0,_Water_,416,0,448,0
LWM-type = Water (= first "0", and textstring "_Water_")
lowest altitude = 416
highest altitude = 448
both "0" at the end seems to indicate that the LWMPolygon will be adapted based on underlayed mesh in FS!

to do flatten lakes i put in a fantasy value of "100" and "sink" the lake to its lowest altitude value (i love more some cliff-hole lakes than meseta-like lakes... seems looking more realistic), so it looks like this:
LWMPoly3 23,0,_Water_,416,100,416,100


LWMPoint3 254, 45, 23 ; 419.00
Coordinates of polygons (pos. 254,45; polygon nr.23; comment "419.00")


thank you again for your answer... my work will following now!


saludos

Francis
 
Back
Top