Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hardening a surface

Featured Replies

Welcome to the show Brian :) Actually I kindof agree with you about the fact that many useful commands and codes in the scenery assemblers are not implemented in scenery design tools like Architect. It will be nice to have this hardening command as an option we can check in the Polygon properties exacly like the Flattening switch. Until then we must unfortunatly try to make some extra coding work. I am also new to coding but i have no choiceCheersMichel

  • Commercial Member

SCA file, if you could send one that would be nice, then I can also make it Architect compatible.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

  • Commercial Member

Hi Bjorn,I never looked at the MS BGL's, so this code comes just from my brain :), but I assume you mean the pros and cons of splitting the polygon in triangles against not splitting.I have tested it, but it would seems logical that more checks (that's the case with my code) can be a bit slower. On the other hand, computers ussually work with triangles internally (just look at the new GMax code, that also has triangles), so maybe splitting it yourself spares some time. But these are just thoughts, I never tested it :).I mainly did the splitting because I found to much problems with strangely formed polygons (and roads), in making sure that the direction of the points is correct, etc. That the easiest solution was to split them into triangles.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

  • Commercial Member

OK, I just tried to upload a first version of Bumpy to my homepage, but FTP doesn't seem to work here (I am at work in Brussels at the moment), so I am afraid I can only upload it this weekend when I am at home.The good thing of this, is that I can maybe add the support for Architect before the release :).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Hi Arno,Yeah, I'm sure splitting it is the right thing to do ... It has to be splitted somehow, of course, if the area to be hardened isn't already convex. Splitting into triangles seems like a really good idea to me! :)But no, that's not what I meant... I just meant to ask if there's any difference, that you know of, for using SenseBorder rather than AreaSense to do the checking. Just curious... Best,/Bj

  • Commercial Member

Aha, understood the question wrong :).According to the SCASM docs both commands are the equivalent. So it makes no difference which one you use.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

*nods*Makes sense, that's pretty much what I thought too ... Thanks :)/Bj

Thanks Bjorn for the forum address. For now (as from an article on the forum) I am simply creating a large invisible runway to cover the airport. It does the trick but it would be nice to be able to do something a bit more subtle!!

  • Commercial Member

Hi Brian,As you can read in the messages above, I am working on a little tool that will do the more subtile code for you :). I think I will put it on my site this weekend.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

If all you want to do is harden the general area of the airport, you can just use a SurfaceType statement without any fancy AreaSense/SenseBorder constructs. That is one line of code, looking like this (create a code block containing that code, with the "Include Area and Refpoint" box checked):SurfaceType(0 10000 10000 0)It will harden a 10000x10000 ft(/m/custom units/whichever applies) square, and it is much 'cleaner' than placing an invisible runway there. It will harden everything though, including any nearby water... *rolls eyes*As an aside, earlier versions of Architect contained that statement by default, each time you placed a visible runway somewhere (effectly assuring that a huge area surrounding any runway was hardened). After I, and presumably some other users as well, complained bitterly about that 'feature', which required hand-editing away that line from every single .sca file each time it was compiled, it was removed. :)Best,/Bj

  • Commercial Member

I have now uploaded Bumpy to my site.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.