Jump to content
Sign in to follow this  
Guest Dan G Martin

Extrusion fences

Recommended Posts

Extrusions are new to FS X. Polyline buildings, bridges, and fences are the new extrusion objects.It is easy to draw polyline buildings with the Autogen Annotator, but fences and bridges must be created with BGLComp.An extrusion fence is part of an Airport element in an xml file. Within that element, we can use very simple code, as such:or Basically, this is just: 1. the indication of which particular model to use (the profile GUID) 2. the coordinates of the vertices of the fence The S.D.K. documentation also mentions an optional instanceId, but we can leave it out without any problems.The only problem has been determining the available models to use, and their respective GUIDs. After searching through the extrusions.xml file, I came up with the following:FenceProfile id="{02D65B05-F752-47a3-83AF-D570243EB3EE}"FriendlyName: Fence vertical 2 meter extrusion FenceProfile id="{A825DE17-9AD3-4e40-8DA3-2CE71A0D7E5C}"FriendlyName: Fence Vertical 2 meter with bent top FenceProfile id="{863E1B24-CAFB-4626-B240-EA0E8213A33B}"FriendlyName: Generic 3-part Blast Fence FenceProfile id="{199A1A9C-FA7C-4ef2-8EEA-E4FE6CCD3FC7}"FriendlyName: Generic 1-part Blast FenceThere is some confusion as to the friendly names in the extrusions.xml file, but after drawing them, here is how they look:Fence vertical 2 meter extrusionhttp://forums.avsim.net/user_files/177972.jpgFence Vertical 2 meter with bent tophttp://forums.avsim.net/user_files/177973.jpgGeneric 3-part Blast Fencehttp://forums.avsim.net/user_files/177974.jpgGeneric 1-part Blast Fencehttp://forums.avsim.net/user_files/177975.jpgI have not been able to find any other models so for the moment these are the only fences available.Care should be taken to use them only on flat ground - the fence vertices, unlike those of extrusion bridges, do not have an altitude value, and will disappear into ground that is not level:http://forums.avsim.net/user_files/177976.jpgRussell's FSXPlanner is an excellent way to draw these fences. Unfortunately, by default, these objects will not display the correct GUIDs in that program, so you must put them there yourselves. Perhaps if Russell finds the time, he could consider a drop-down box with the friendly names of the fences to be drawn.Best regards.Luis

Share this post


Link to post
Share on other sites
Guest Dan G Martin

Hi there Luis just wondering is there anyway to get at the extrusion heightamount? as fences are easy to create in in either Max or gmax by simply extruding splines and then applying a texture. Thank you for the heads up on the innards of polylines! Dan Martin Team Flight Ontario

Share this post


Link to post
Share on other sites

Hello Dan,If I understand the documentation correctly, the height of the extrusion fences is indicated in the extrusion.xml file as the value TextureWidth.For example, at the very start of the file, we find this: Fence vertical 2 meter extrusion0.000,0.0000.000,2.0000,1 2.000 0.000,1.000So, this fence is 2 meters high. The whole thing seems a little confusing, but it will all probably start to clear up with use.Best regards.Luis

Share this post


Link to post
Share on other sites
Guest Dan G Martin

Thanks for pointing out the above Luis as I thought "texture width" meant just that (I was looking for something like "Extrusion Amount")Again thanks for all the work people like you put into our hobby! Dan Martin Team Flight Ontario

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