Problem with extrusion bridge

#1
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

Moderator
Staff member
Resource contributor
#2
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
 
#3
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

Moderator
Staff member
Resource contributor
#4
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
 
#5
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.
.
 
#6
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