1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XML extrusion bridge

Discussion in 'BGLComp XML, AFCAD, SceneGenX' started by arno, 12/12/11.

  1. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi all,

    I have been experimenting a bit with XML extrusion bridges. One item I am missing for making viaducts is to have a grass slope on the bridge. Here in the Netherlands most bridges will have a grassy slope while the road is climbing. Does anybody know if such a type is available in FSX?
  2. scott967

    scott967

    Joined:
    3/2/05
    Messages:
    1,267
    Country:
    us-hawaii
    Arno --

    do you mean the bridge is an overpass?

    [​IMG]

    [​IMG]

    scott s.
    .
  3. ollyau

    ollyau Resource contributor

    Joined:
    5/1/08
    Messages:
    746
    Country:
    us-california
    Not to derail the thread, but I've never seen an extrusion bridge used like that before- quite creative! :p
  4. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi Scott,

    Yes, can be an overpass like that. But even if it is just a bridge over water, it will in many times have a grass slope in real life. For example this image:

    [​IMG]

    As you can see at both ends there is grass. In FSX the extrusion bridges don't have this at all. I guess in the perfect world your terrain mesh would include these elements, but that is not always the case of course.
  5. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi,

    I did some trials with SBuilderX using a sloped flatten and a XML bridge. This comes quite close to what I was looking for.

    Attached Files:

  6. scott967

    scott967

    Joined:
    3/2/05
    Messages:
    1,267
    Country:
    us-hawaii
    My general recipe is like this:

    1 Measure alt at bridge crossing, and at ends of desired embankment.
    2 Add 4.9m to crossing height for overpass elevation
    3 Create 2 rectangular (or trapezoid as desired) flattens on each side for the embankment. The outer flatten is sloped from the "end" elevation to the "crossing + 4.9" elevation., then the inner flatten is level at "crossing + 4.9" elevation.
    4 Create extrusion bridge with endpoints on the two (one on each end) "flat" flattens. For two-land bridge I use Width 16 and Altitude 1.75.
    5 In my ini I use ExtraExtrusionAltitude=-10M

    Results I guess are sensitive to FSX mesh settings, though I haven't tested in detail.

    scott s.
    .
  7. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi Scott,

    I did alter the elevation detail slider and even when it turned it down quite a bit it still looked OK. So I think the mesh setting does not influence it too much.
  8. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    hi, i read some topic to try to create a extrusion bridge. But i don't understand how you do. My projet is to make a bridge ( he dosn't exist in reality) and a use a a bridge in bridge library in fsx, and than you can go land or drive on it.

    i make my scenery on ADE


    answer me quickly,

    sorry for my bad englais, is not my prymairy language
  9. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi,

    I did not use ADE, so I don't know if it supports extrusion bridges. I used SBuilderX to make the bridge. Then it is just a matter of clicking the path of the bridge and selecting the right type.
  10. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    oki i going to use your program, but i don't understand how do you do the extrution, bridge ton road ou land on them
  11. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    SBuilderX doesn't work on my computer :(:(:( i don't understand why!!
    Last edited: 22/12/11
  12. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    this work, so i going to try a litle bit
  13. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    so tried to code a xml code to a extrusion bridge, but i don't how if is good and how to compile them.

    here is the code :

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <FSData
       version="9.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="bglcomp.xsd">
    
    <ExtrusionBridge
       instanceId="{79b64a78-ceb3-41e1-820a-01a749b47503}"
       probability="0.14"
       suppressPlatform="TRUE"
       imageComplexity="Very_Sparse"
       roadWidth="12.0"
       extrusionProfile="{8aaabdf2-4496-483a-8df1-86ea13aa950d}"
       materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}"
       <AltitudeSampleLocationList>
          <AltitudeSampleLocation  lat="NN44 49.49" lon="E0 2.909"/>
          <AltitudeSampleLocation  lat="N44 49.426" lon="E0 2.908"/>
       </AltitudeSampleLocationList>
       <PolylinePointList>
          <PolylinePoint latitude="N44 49.547"   longitude="E0 2.903"     altitude="0.00"/>
          <PolylinePoint latitude="N44 49.49"    longitude="E0 2.909"   altitude="1.00"/>
          <PolylinePoint latitude="N44 49.47"    longitude="E0   2.91"    altitude="2.50"/>
          <PolylinePoint latitude="N44 49.426"   longitude="E0 2.908"     altitude="1.00"/>
          <PolylinePoint latitude="N44 49.376"   longitude="E0 2.908"     altitude="0.00"/>
       </PolylinePointList>
       <PolylineObjectPlacementList>
          <PolylineObjectPlacement id="{b2cbfca5-88f0-451a-b089-b1f551d13cc2}"/>
       </PolylineObjectPlacementList>
    </ExtrusionBridge>
    
    </FSData>
    thank you for answer me quickly and help me :)
  14. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi,

    Two small mistakes in the code, here is a corrected version:

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <FSData
       version="9.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="bglcomp.xsd">
    
    <ExtrusionBridge
       instanceId="{79b64a78-ceb3-41e1-820a-01a749b47503}"
       probability="0.14"
       suppressPlatform="TRUE"
       imageComplexity="VERY_SPARSE"
       roadWidth="12.0"
       extrusionProfile="{8aaabdf2-4496-483a-8df1-86ea13aa950d}"
       materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}" >
       <AltitudeSampleLocationList>
          <AltitudeSampleLocation  lat="NN44 49.49" lon="E0 2.909"/>
          <AltitudeSampleLocation  lat="N44 49.426" lon="E0 2.908"/>
       </AltitudeSampleLocationList>
       <PolylinePointList>
          <PolylinePoint latitude="N44 49.547"   longitude="E0 2.903"     altitude="0.00"/>
          <PolylinePoint latitude="N44 49.49"    longitude="E0 2.909"   altitude="1.00"/>
          <PolylinePoint latitude="N44 49.47"    longitude="E0   2.91"    altitude="2.50"/>
          <PolylinePoint latitude="N44 49.426"   longitude="E0 2.908"     altitude="1.00"/>
          <PolylinePoint latitude="N44 49.376"   longitude="E0 2.908"     altitude="0.00"/>
       </PolylinePointList>
       <PolylineObjectPlacementList>
          <PolylineObjectPlacement id="{b2cbfca5-88f0-451a-b089-b1f551d13cc2}"/>
       </PolylineObjectPlacementList>
    </ExtrusionBridge>
    
    </FSData>
    This version compiles fine. You need to have BGLComp to compile it.
  15. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    ok thank Armo, but can you explain me, what is my mistake, i'm sorry i'm curious, but i went to understand my mistake
  16. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    The bridge is here but i have some irregularity.

    [​IMG]

    but i have a another problem. i doesn't have a platform to drive on hit on land on it so why?? i went it.
  17. Golf-HotelDelta

    Golf-HotelDelta

    Joined:
    20/12/04
    Messages:
    9,667
    Country:
    unitedkingdom
    You are not on the bridge, you are about 20 metres to the right.
  18. mmann

    mmann

    Joined:
    20/4/10
    Messages:
    522
    Country:
    ca-britishcolumbia
    Your two errors were as follows:

    Your line: imageComplexity="Very_Sparse"
    Correct line: imageComplexity="VERY_SPARSE"

    Your line: materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}"
    Correct line: materialSet="{7ed5603a-d17a-4246-bc3d-baadea6909fa}" >
  19. ge0fy5

    ge0fy5

    Joined:
    23/5/11
    Messages:
    44
    Country:
    ca-quebec
    ok, yeah, on the photo, i'm not on the bridge, but went i tested, i go on the bridge and i fall on the water.
  20. Golf-HotelDelta

    Golf-HotelDelta

    Joined:
    20/12/04
    Messages:
    9,667
    Country:
    unitedkingdom
    You are correct, only road traffic will drive over extrusion bridges.

Share This Page