• 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.

Problem with extrusion bridge

Messages
310
Country
france
Hello

After redraw of roads and rivers with hydropolys, I need to add bridges.
With SBX, I cut a part of road and create bridge.
So far, no problem, it appears on the SBX draw, xml file seems to be correct, bgl ext file compiled and copied in scenery folder.

However, bridges don't show in FSX!
Thanks to help me to find the cause of problem...
I join the xml code for bridges (placed in Madagascar, next to FMMC, coordinates can be read in the xml file).

=============

<?xml version="1.0" encoding="iso-8859-1"?>
<!--Created by SBuilderX on 01/08/2010 08:54:25-->
<FSData
version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<!--FSX Extrusion Bridges-->
<!--Extrusion Line 82-->
<ExtrusionBridge
instanceId="{edd9e7d9-1396-4123-a500-1ac4de00d9b5}"
imageComplexity="VERY_SPARSE"
probability=".5"
suppressPlatform="FALSE"
roadWidth="10"
extrusionProfile="{f31e7b8a-8ae4-42da-9cbb-f9742628b4f5}"
materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}">
<AltitudeSampleLocationList>
<AltitudeSampleLocation
lat="-20.3435891"
lon="45.6499439" />
<AltitudeSampleLocation
lat="-20.3449269792147"
lon="45.6490069336223" />
</AltitudeSampleLocationList>
<PolylinePointList>
<PolylinePoint
latitude="-20.3434163690604"
longitude=" 45.650061454498"
altitude="-20M" />
<PolylinePoint
latitude="-20.3435891"
longitude="45.6499439"
altitude="0M" />
<PolylinePoint
latitude="-20.3439345618792"
longitude="45.6497087910039"
altitude="2.58998710360186M" />
<PolylinePoint
latitude="-20.3445085546084"
longitude="45.6493140206174"
altitude="3.48531043173636M" />
<PolylinePoint
latitude="-20.3449269792147"
longitude="45.6490069336223"
altitude="0M" />
<PolylinePoint
latitude="-20.3451361915179"
longitude=" 45.6488533901248"
altitude="-20M" />
</PolylinePointList>
<PolylineObjectPlacementList>
<PolylineObjectPlacement
id="{91f8bac1-bfc2-4b5e-8497-54d36a974d5b}" />
</PolylineObjectPlacementList>
</ExtrusionBridge>
<!--Extrusion Line 85-->
<ExtrusionBridge
instanceId="{db1f39fa-1298-485d-ae80-a7692d3ef349}"
imageComplexity="VERY_SPARSE"
probability=".5"
suppressPlatform="TRUE"
roadWidth="10"
extrusionProfile="{f31e7b8a-8ae4-42da-9cbb-f9742628b4f5}"
materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}">
<AltitudeSampleLocationList>
<AltitudeSampleLocation
lat="-20.3395859070549"
lon="45.578263545652" />
<AltitudeSampleLocation
lat="-20.339424974514"
lon="45.5794935999149" />
</AltitudeSampleLocationList>
<PolylinePointList>
<PolylinePoint
latitude="-20.3396036149602"
longitude=" 45.5781298048373"
altitude="-20M" />
<PolylinePoint
latitude="-20.3395859070549"
longitude="45.578263545652"
altitude="0M" />
<PolylinePoint
latitude="-20.3395504912444"
longitude="45.5785310272815"
altitude="2.01532129242054M" />
<PolylinePoint
latitude="-20.3394519200631"
longitude="45.5792847869617"
altitude="1.33712432708295M" />
<PolylinePoint
latitude="-20.339424974514"
longitude="45.5794935999149"
altitude="0M" />
<PolylinePoint
latitude="-20.3394115017395"
longitude=" 45.5795980063915"
altitude="-20M" />
</PolylinePointList>
<PolylineObjectPlacementList>
<PolylineObjectPlacement
id="{91f8bac1-bfc2-4b5e-8497-54d36a974d5b}" />
</PolylineObjectPlacementList>
</ExtrusionBridge>
</FSData>

=============

Thanks for help

Pierrot - FMEP
FSX SP2
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,932
Country
us-wisconsin
Hi Pierrot.

The bridge is there, but it is underground. I raised the all the elevations to 30.0 and it appeared.

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!--Created by SBuilderX on 01/08/2010 08:54:25-->
<FSData
version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<!--FSX Extrusion Bridges-->
<!--Extrusion Line 82-->
<ExtrusionBridge
instanceId="{edd9e7d9-1396-4123-a500-1ac4de00d9b5}"
imageComplexity="VERY_SPARSE"
probability="1.0"
suppressPlatform="FALSE"
roadWidth="10"
extrusionProfile="{f31e7b8a-8ae4-42da-9cbb-f9742628b4f5}"
materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}">
<AltitudeSampleLocationList>
<AltitudeSampleLocation
lat="-20.3435891"
lon="45.6499439" />
<AltitudeSampleLocation
lat="-20.3449269792147"
lon="45.6490069336223" />
</AltitudeSampleLocationList>
<PolylinePointList>
<PolylinePoint
latitude="-20.3434163690604"
longitude=" 45.650061454498"
altitude="2.0M" />
<PolylinePoint
latitude="-20.3435891"
longitude="45.6499439"
altitude="3.0M" />
<PolylinePoint
latitude="-20.3439345618792"
longitude="45.6497087910039"
altitude="3.0M" />
<PolylinePoint
latitude="-20.3445085546084"
longitude="45.6493140206174"
altitude="3.0M" />
<PolylinePoint
latitude="-20.3449269792147"
longitude="45.6490069336223"
altitude="3.0M" />
<PolylinePoint
latitude="-20.3451361915179"
longitude=" 45.6488533901248"
altitude="2.0M" />
</PolylinePointList>
<PolylineObjectPlacementList>
<PolylineObjectPlacement
id="{91f8bac1-bfc2-4b5e-8497-54d36a974d5b}" />
</PolylineObjectPlacementList>
</ExtrusionBridge>
<!--Extrusion Line 85-->
<ExtrusionBridge
instanceId="{db1f39fa-1298-485d-ae80-a7692d3ef349}"
imageComplexity="VERY_SPARSE"
probability="1.0"
suppressPlatform="TRUE"
roadWidth="10"
extrusionProfile="{f31e7b8a-8ae4-42da-9cbb-f9742628b4f5}"
materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}">
<AltitudeSampleLocationList>
<AltitudeSampleLocation
lat="-20.3395859070549"
lon="45.578263545652" />
<AltitudeSampleLocation
lat="-20.339424974514"
lon="45.5794935999149" />
</AltitudeSampleLocationList>
<PolylinePointList>
<PolylinePoint
latitude="-20.3396036149602"
longitude=" 45.5781298048373"
altitude="0.0M" />
<PolylinePoint
latitude="-20.3395859070549"
longitude="45.578263545652"
altitude="1.5M" />
<PolylinePoint
latitude="-20.3395504912444"
longitude="45.5785310272815"
altitude="1.5M" />
<PolylinePoint
latitude="-20.3394519200631"
longitude="45.5792847869617"
altitude="1.5M" />
<PolylinePoint
latitude="-20.339424974514"
longitude="45.5794935999149"
altitude="1.5M" />
<PolylinePoint
latitude="-20.3394115017395"
longitude=" 45.5795980063915"
altitude="0.0M" />
</PolylinePointList>
<PolylineObjectPlacementList>
<PolylineObjectPlacement
id="{91f8bac1-bfc2-4b5e-8497-54d36a974d5b}" />
</PolylineObjectPlacementList>
</ExtrusionBridge>
</FSData>

The initial endpoints were too low... but I have no explanation why some of the other points were too low. It seems it just needs to be played with until it's right, which is what I did in the above code. I also changed the probability to 1.0, which should force it to always show.

Dick
 
Messages
310
Country
france
Thanks for quick reply
I'll test as soon as possible
Elevation created by SBX seem stange, especially -20 at ends.
I'll try to correct manually other xml files, and compile directly with bgl comp.

What is the use of probability parameter?

Thanks
Pierrot FMEP
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,932
Country
us-wisconsin
Hi Pierrot.

I thought probability would determine if the bridge will be rendered at all. But after reading the SDK, it is a random "seed" that determines the rendering combination of pylon styles and bridge rails, and surface types.

The range is from 0.0 to 1.0. "probability" is a poor name. "styleseed" would have been much better. All probability numbers share the same styles in the sim. Change the numbers between bridges, and the styles will ( probably ) change. I'm not sure if the styles will be the same the next time you start the sim!

0.3 and 0.32774 are both valid numbers, for example.

Dick
 
Messages
1,268
Country
us-hawaii
I've found extrusion bridges to be a bit problematic. I don't have lots of experience which probably contributes. It seems like the best circumstance is that the bridge crosses a valley. When the bridge needs to rise up and possibly lower back down things get more interesting. I think the "-20" at the bridge ends is to force the ends underground. It seems like picking the correct altitude reference points can make a difference. Also there is the problem that if you need to get the bridge to change elevation or course it is hard because every time you add a vertex it causes a support to be drawn. I've also had some problem with freeway traffic falling through the bridge. Also the bridge deck floating slightly above the top of the supports (and the hardened platform is also along the supports, not the visible deck).

scott s.
.
 
Messages
310
Country
france
Hello
I tested with new file; I adjust elevations at 0 for the two project ends, and at -1 for the two extra ends added by program, probably to create slopes at both ends; it needs to be adjusted so end of road exactly joins bridge.

It would be interesting that the SBX bridge could create more accurate data, so we don't have to change manually for every bridge!

Thanks
Pierrot - FMEP
 
Top