Jump to content
Sign in to follow this  
Guest

Hardening a surface

Recommended Posts

Guest Claviateur

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites

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

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