Jump to content
Sign in to follow this  
Guest

ARC command snippet?

Recommended Posts

Guest

Could someone please explain the use of the ARC command in making curved taxi markings. I don't have SCASM knowledge so a real user-friendly explanation would be much appreciated. I have the newest build of Airport, but I still don't know what that ARC offset in the Lines menu does. A good example for someone to post is the 90 degree curved connection of two taxiways. Explanation of how this is done would be great. How do you specifiy the direction of the curve? How can you (if you can) specify the angle of the curve, etc.If anyone can help out I would be forver indebted.Thanks.

Share this post


Link to post
Share on other sites
Guest JR Morgan

The Arcs are now automated into the "Lines or Lines of Objects" routine of the latest version of Apt26

Share this post


Link to post
Share on other sites
Guest

I know that then newest build has the support, but I don't know how to use it. I know I am being stupid, but please explain how the arcs are made in airport...just a small example please.Thanks

Share this post


Link to post
Share on other sites
Guest

I could demonstrate the scasm code itself, but I never learned how the front end programs work, so I can't help you with Airport.Sounds like you don't want to see the code, so I won't bother...let me know if you'd like to see it.Bob Bernstein

Share this post


Link to post
Share on other sites
Guest JR Morgan

Hi again. Here's a screenshot of the "Create Lines or Lines of Objects" window in Apt:3d3a078d150b250a.jpgThe boxes are checked to draw double solid edge lines with an "Arc Offset" defined of 20 meters.The blue print at the lower right corner of this "Create Lines or Lines of Objects" window explains wht the Arc Offset means.If you want to see the snippet of code for the lines config you've chosen to build, you can click on the button and it will show the SCASM code that's put in your .sca file which draws the lines with arc.An example: draw a horizontal line and press to insert another point into the line. You now have a horizontal line with 3 points (start, middle & finish). Select the first point on the left and use your mouse or the arrow direction keys to swing the left section of 3-pointed line up to the vertical, making it configured as a letter "L" (2 lines, joined at the bottom, each line perpindicular to the other. When compiled, the smooth arc will appear at the intersection of the vertical and horizontal lines, joining them together. (Hope you get the picture)...

Share this post


Link to post
Share on other sites
Guest

I'd like to see the code Bob, if you don't mind. It's not a personal dislike for SCASM coding, it it just that on top of all the learning I've had to do (Airport, GMax, FSregen, etc, etc) I would rather not start a programming language. I hated C++! But I guess I will have to start learning it anyway if I want to have true flexibilty with my scenery design! Thanks alot.

Share this post


Link to post
Share on other sites
Guest

This is the taxiway bgl for my upcoming scenery, Bowerman Field for fs2002.I started to describe the code, but it quickly turned into a scasm tutorial, and Ralf Treibel has done that better than I could. (see www.combatflightsim.de) This code is likely greek to you, but realize that where you see the codes like '0xC7 -2373.33 -403.333', this is an instruction and an x and y coordinate. in this case 0xC7 tells fs to place a point within an invisible line.This idea is to draw lines and arcs by starting at one side and then adding these commands, so its likeinvisible line startinvisible line endarcvisible line startvisible line endarcvisible line startetc.Arc (0x08) connects whatever lines were on either side of it.You'll note that the code seems to be repeated. That's because one half of it is designed to display daytime line, and when its not day the IfVarRange command tells it to display the second half, the night lines. (green lights)The meanings of the hex commands, like '0xC7 -2373.33 -403.333' are spelled out in the scasm documents that come with scasm 2.8I just learned that you can use english as a substitute for the hex, which will make my next project easier, you can substitute the text 'arc' for 0x08. I find the coordinates by placing a screen shot of my taxiways into fssc, and reading off the meters on the counter. Unfortunetly, there is some adjustment needed to get things perfect.Best,Bob Bernstein;Bowerman TaxiLineSet( FSVers 800 )Area( 5 %1 %2 80 )LayerCall( :bob_1 40 )Jump( :exit ):bob_1 RefPoint( rel :bob_2 %4 %1 %2 v1= 0 v2= 3234 )RotatedCall( :bob_3 0 0 %5 ):bob_2Return:bob_3IfVarRange( :skiplabel 028C 0001 0001 )TaxiMarkings( 0xC7 -2110 -346.667 ;L start of inv line 0xC7 -2373.33 -403.333 ;L end of inv line 0x08 0x87 -2515.83 -349.167 ;s of Seg 1 0x87 -2535.5 -255.833 ;end of seg 1 0x00 0x87 -2535.5 -255.833 ;s of seg 2 0x87 -2364.17 19.167 ;s of seg 3 0x87 2176.67 900 ;s of seg 4 0x87 2418.333 728.333 ;s of seg 5 0x87 2441.667 613.333 ;s of seg 6 0X08 0xC7 2365 516.6667 ;s of rh inv line 0xC7 2065.833 457.5 ; end of rh inv line 0x00 0xC7 -1091.67 -150 ;s of lh ex.. 0xC7 -955 -133.333 ;end of inv line...l 0X08 0X87 -863.333 -23.333 ;visible line s 0X87 -914 266.6667 ;end of visible line 0X08 0XC7 -960 291.529 ;l top inv line s 0XC7 -1061.67 276.6667 ;l top inv line end 0X00 0XC7 -601.667 -60 ;rt inv rwy line s 0XC7 -741.667 -90 ;rt inv rwy line e 0X08 0XC7 -863.333 -23.333 ;inv main line s 0XC7 -914 266.6667 ;inv main line e 0X08 0XC7 -880 307.049 ;rt inv line s 0XC7 -751.667 333.3333 ;rt inv line e 0X00 ;r x STARTS HERE 0XC7 650 186.6667 0XC7 770 202 0X08 0X87 855.8333 301.6667 ;rt visible line 0X87 797.5 591.66667 ;rt visible line end 0X08 0XC7 735.8333 620.5207 ;end of arc connect to main line 0XC7 592.5 591.6667 0X00 0XC7 1058.333 260 0XC7 962 241.016 0X08 0XC7 855.8333 301.6667 ;rt inv line 0XC7 797.5 591.66667 ;rt inv line e 0X08 0XC7 852.5 643.154 0XC7 897.5 648.3333 0x00 0x82 -2540.07 -330 -2495 -320;l hold line 0x00 )jump( :gohere ):skiplabelTaxiMarkings( 0xC7 -2090 -346.667 ;L start of inv line 0xC7 -2353.33 -403.333 ;L end of inv line 0x0D 0x8c -2470.83 -349.167 ;s of Seg 1 0x8c -2490.5 -245.833 ;end of seg 1 0x00 0x8c -2490.5 -245.833 ;s of seg 2 0x8c -2325.17 19.167 ;s of seg 3 0x8c 2148.67 890 ;s of seg 4 0x8c 2360 728.333 ;s of seg 5 0x8c 2395 613.333 ;e of seg 5 0X0D 0xC7 2365 516.6667 ;s of rh inv line 0xC7 2065.833 457.5 ; end of rh inv line 0x00 0xC7 -1091.67 -150 ;s of lh ex.. 0xC7 -955 -133.333 ;end of inv line...l 0X0D 0X8c -848.333 -23.333 ;visible line s 0X8c -899 266.6667 ;end of visible line 0X0D 0XC7 -935 290 ;l top inv line s 0XC7 -1061.67 276.6667 ;l top inv line end 0X00 0XC7 -586.667 -60 ;rt inv rwy line s 0XC7 -760.667 -92 ;rt inv rwy line e 0X0D 0XC7 -848.333 -23.333 ;inv main line s 0XC7 -899 266.6667 ;inv main line e 0X0D 0XC7 -870.667 303.3333 ;rt inv line s 0XC7 -751.667 333.3333 ;rt inv line e 0X00 ;r x STARTS HERE 0XC7 650 186.6667 0XC7 770 205 0X0D 0X8c 840.8333 301.6667 0X8c 782.5 591.66667 0X0D 0XC7 720.8333 616.6667 0XC7 592.5 591.6667 0X00 0XC7 1043.333 260 0XC7 926.6667 232.6667 0X0D 0XC7 840.8333 301.6667 0XC7 782.5 591.66667 0X0D 0XC7 812.5 633.3333 0XC7 862.5 648.3333 0x00 0x82 -2552.07 -323.333 -2505.4 -339.167 ;l hold line 0x00):gohereReturn:exitEndA

Share this post


Link to post
Share on other sites
Guest

hi allThanks for these post'sI had placed a post about Taxilines, (post 668) You have help me no end, with the knowledge about the "Insert" command in Airport.It seems that if I change from Line to Taxiline, I loose the color command "Colorline", can I use this command with 'Taxiline'.I can't see any reference to color in the New28.doc file.Appreciate further supportKind RegardsDave

Share this post


Link to post
Share on other sites
Guest

Slightly related to this thread ...When I use TaxiLines I get a 'ghost' line of lights about 50 ft to below (south). Anyone else had the problem? I first got this with build 149 but it has continued in build 152 despite a 'fix' mentioned in the update files.Peter Leadbeater,Air Pierre, Warrington, UK.

Share this post


Link to post
Share on other sites
Guest JR Morgan

>>>It seems that if I change from Line to Taxiline, I loose the color command "Colorline", can I use this command with 'Taxiline'. I can't see any reference to color in the New28.doc file.<<<*** I don't think so Dave, because in Apt26, the "Line" and "Taxiline" routines use different SCASM routines. The "Line" routine allows selecting a color but the new "Taxiline" routine does not, always using the FS2002 default yellow lines. This can be changed by hacking the Sim's color selection for taxilines, however, I could be wrong but I think that would change all taxi lines in all sceneries in the sim to the changed color. J.R.

Share this post


Link to post
Share on other sites
Guest

Hi all*** I don't think so Dave, because in Apt26, the "Line" and "Taxiline" routines use different SCASM routines. The "Line" routine allows selecting a color but the new "Taxiline" routine does not, always using the FS2002 default yellow lines. This can be changed by hacking the Sim's color selection for taxilines, however, I could be wrong but I think that would change all taxi lines in all sceneries in the sim to the changed color.Thanks for the reply JR, I guess you comfirmed where the taxiway command was getting its color instructions. I think you are right, it would cause a change in general., not just in isolation.I just seek a white centreline, Hmmn !!!!Thanks for the supportRegards Dave

Share this post


Link to post
Share on other sites
Guest

The texture is taxiway_marks.bmp located in fs2002/texture. Its a 128x128 pixel dxt3 file. The main image is just the basic (ugly) color. Easily changed. The alpha channel has the marks.I haven't tried this but I wonder if you put a version of this file in a local texture dir whether it would apply only to that scenery. Perhaps not, but worth a try.Bob Bernstein

Share this post


Link to post
Share on other sites
Guest

Hi BobThanks for the suggestion, I did try this and it would only change if the main texture file was changed. Not checked other default airfields for the effect, guess it will be goblal.However I have not finished testing this idea and I'll feed back.Because other sceanery designers seem to do this, but with what command, certainly not 'Taximarkings'Thanks for your supportKind regards Dave

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