Jump to content
Sign in to follow this  
nigelgrant

Runways and Aprons will not show in TopDownView

Recommended Posts

In my recently completed Vancouver Airport scenery, runways and aprons will not show in TopDownView unless the altitude is set to 30 miles or I remove a macro of a radardome. I converted this radardome macro from ASD2.1, and after a few adjustments, the radardome shows okay in the scenery and is representative of what is there in reality. I would like to retain this macro if possible and would therefore like to correct the coding so that TopDownView shows correctly.I have attached a copy of the API file, I would appreciate if somebody knowledgeable could please review this file and see if they can cure the problem?NigelVancouverI have attached the text below since I am not sure whether the file is attached;ASDesign Compatible Macro;Name=Doppler Radar dome, Type=Antenna-Beacon, Bitmap=Radardome.bmp, ;FixedLength=14, FixedWidth=14, ;Latitude, Longitude, Rotation, Density=0, ;Visibility=0, Range=6, Elevation=0, Shadow=0, Crash=1, ;;Copyright 1999 by Tim Dickens-All Rights Reserved converted to API by Nigel Grant;Area( B %1 %2 25 )IfVarRange( :end 346 3 4 )PerspectiveCall( :D0 )Jump( :end ):D0Perspectivemif( %7 )RefPoint( 2 :P3 1 %1 %2 E= %7 v1= %10 V2= 250 )melseRefPoint( 7 :P3 1 %1 %2 v1= %10 V2= 250 )mifendSetScaleX( :P3 0 0 7 )RotatedCall( :B 0 0 %5 )Return:BCall( :radome )Call( :crash )Return:radomePoints( 0-14 54 -14-14 54 1414 54 14-12 0 0-12 60 012 60 0)VectorJump( :above a 0 1 2 ):below:Call( :tower )Call( :platform )Jump( :antenna )Return:aboveCall( :antenna )Call( :platform )Jump( :tower )Return:antennaVectorJump( :forward ai 3 4 5 ):backCall( :southfence )TransformCall( :dome 0 6500 0 0 0 0 0 0 0 )Jump( :northfence )Return:forwardCall( :northfence )TransformCall( :dome 0 6500 0 0 0 0 0 0 0 )Jump( :southfence )Return:northfencePoints( 0-1700 6500 0 ;0-1700 6500 1700 ;11700 6500 1700 ;2-1700 6500 0 ;3-1700 7140 0 ;4-1700 7140 1700 ;51700 7140 1700 ;6-1700 7140 0 ;7-1700 8340 1700 ;8)SurfaceColor( 03 68 )Poly( a 1 5 4 0 )Poly( ai 1 5 4 0 )Poly( a 2 6 5 1 )Poly( ai 2 6 5 1 )Poly( a 3 7 6 2 )Poly( ai 3 7 6 2 )LineColor( 00 f0 )MoveToPt( 0 )DrawToPt( 4 )DrawToPt( 5 )DrawToPt( 1 )MoveToPt( 5 )DrawToPt( 6 )DrawToPt( 2 )MoveToPt( 6 )DrawToPt( 7 )DrawToPt( 3 )MoveToPt( 5 )DrawToPt( 8 )IfVarAnd( :light1 28c 6 )LineColor( 0f f0 )DotPt( 8 ):light1Return:southfencePoints( 0-1700 6500 -1700 ;0-1700 6500 0 ;11700 6500 0 ;21700 6500 -1700 ;3-1700 7140 -1700 ;4-1700 7140 0 ;51700 7140 0 ;61700 7140 -1700 ;71700 8340 -1700 ;8)SurfaceColor( 03 68 )Poly( a 0 4 7 3 )Poly( ai 0 4 7 3 )Poly( a 1 5 4 0 )Poly( ai 1 5 4 0 )Poly( a 3 7 6 2 )Poly( ai 3 7 6 2 )LineColor( 00 f0 )MoveToPt( 0 )DrawToPt( 4 )DrawToPt( 5 )MoveToPt( 4 )DrawToPt( 7 )DrawToPt( 6 )MoveToPt( 7 )DrawToPt( 8 )IfVarAnd( :light2 28C 6 )LineColor( 0f f0 )DotPt( 8 ):light2Return:domePoints( 1-440 3020 -500 ;10 3020 -640 ;20 3140 0 ;3-640 3020 0 ;4-440 3020 500 ;50 3020 640 ;6440 3020 500 ;14640 3020 0 ;8440 3020 -500 ;9-800 2720 -900 ;100 2720 -1140 ;11-1140 2720 0 ;12-800 2720 900 ;130 2720 1140 ;14800 2720 900 ;151140 2720 0 ;16800 2720 -900 ;17-1020 2220 -1160 ;180 2220 -1440 ;19-1440 2220 0 ;20-1020 2220 1160 ;210 2220 1440 ;441020 2220 1160 ;231440 2220 0 ;241020 2220 -1160 ;50-1100 1580 -1240 ;260 1580 -1560 ;27-1560 1580 0 ;28-1100 1580 1240 ;290 1580 1560 ;301100 1580 1240 ;311560 1580 0 ;641100 1580 -1240 ;33-1020 940 -1160 ;340 940 -1440 ;35-1440 940 0 ;36-1020 940 1160 ;370 940 1440 ;381020 940 1160 ;391440 940 0 ;801020 940 -1160 ;41-800 440 -900 ;420 440 -1140 ;43-1140 440 0 ;44-800 440 900 ;900 440 1140 ;46800 440 900 ;941140 440 0 ;48800 440 -900 ;49-440 140 -500 ;500 140 -640 ;51-640 140 0 ;52-440 140 500 ;530 140 640 ;54440 140 500 ;55640 140 0 ;56440 140 -500 ;570 20 0 ;580 1770 0 ;59)LineColor( 00 f0 )MoveToPt( 3 )DrawToPt( 59 )SurfaceColor( 04 F0 )Poly( m -1918 32151 -6028 1541 2 3)Poly( m -6022 32119 -2409 1534 1 3)Poly( m -6022 32119 2409 1535 4 3)Poly( m -1918 32151 6028 1546 5 3)Poly( m 1918 32151 6028 1547 6 3)Poly( m 6022 32119 2409 1538 7 3)Poly( m 6022 32119 -2409 1539 8 3)Poly( m 1918 32151 -6028 1542 9 3)ConcavePolyPoly( m -4941 27892 -16471 1441 10 11 2)Poly( m -16549 27581 -6252 1434 12 10 1)Poly( m -16291 27756 6155 1435 13 12 4)ConcavePolyPoly( m -4998 27769 16661 1446 14 13 5)ConcavePolyPoly( m 4941 27892 16471 1447 15 14 6)Poly( m 16549 27581 6252 1438 16 15 7)Poly( m 16291 27756 -6155 1439 17 16 8)ConcavePolyPoly( m 4998 27769 -16661 1442 11 17 9)Poly( m -7379 17224 -26880 11710 18 19 11)Poly( m -26834 16100 -9716 11312 20 18 10)Poly( m -26527 16666 9605 11413 21 20 12)Poly( m -7508 16410 27350 11514 22 21 13)Poly( m 7379 17224 26880 11715 23 22 14)Poly( m 26834 16100 9716 11316 24 23 15)Poly( m 26527 16666 -9605 11417 25 24 16)Poly( m 7508 16410 -27350 11511 19 25 17)Poly( m -9045 5017 -31092 8618 26 27 19)Poly( m -30257 5673 -11224 8520 28 26 18)Poly( m -30332 5198 11252 8421 29 28 20)Poly( m -9008 5806 30965 8722 30 29 21)Poly( m 9045 5017 31092 8623 31 30 22)Poly( m 30257 5673 11224 8524 32 31 23)Poly( m 30332 5198 -11252 8425 33 32 24)Poly( m 9008 5806 -30965 8719 27 33 25)Poly( m -8573 -4976 -31232 6126 34 35 27)Poly( m -30342 -5689 -10986 5828 36 34 26)Poly( m -30422 -5180 11015 5929 37 36 28)Poly( m -8536 -5830 31094 5930 38 37 29)Poly( m 8573 -4976 31232 6131 39 38 30)Poly( m 30342 -5689 10986 5832 40 39 31)Poly( m 30422 -5180 -11015 5933 41 40 32)Poly( m 8536 -5830 -31094 5927 35 41 33)Poly( m -7986 -17357 -26620 3434 42 43 35)Poly( m -26730 -16038 -10098 3536 44 42 34)Poly( m -26338 -16763 9950 3437 45 44 36)Poly( m -8163 -16327 27212 3638 46 45 37)Poly( m 7986 -17357 26620 3439 47 46 38)Poly( m 26730 -16038 10098 3540 48 47 39)Poly( m 26338 -16763 -9950 3441 49 48 40)Poly( m 8163 -16327 -27212 3635 43 49 41)ConcavePolyPoly( m -5185 -27950 -16296 942 50 51 43)Poly( m -16512 -27521 -6605 1044 52 50 42)Poly( m -16057 -27832 6423 945 53 52 44)ConcavePolyPoly( m -5294 -27728 16637 1046 54 53 45)ConcavePolyPoly( m 5185 -27950 16296 947 55 54 46)Poly( m 16512 -27521 6605 1048 56 55 47)Poly( m 16057 -27832 -6423 949 57 56 48)ConcavePolyPoly( m 5294 -27728 -16637 1043 51 57 49)Poly( m -1918 -32151 -6028 050 58 51)Poly( m -6022 -32119 -2409 052 58 50)Poly( m -6022 -32119 2409 053 58 52)Poly( m -1918 -32151 6028 054 58 53)Poly( m 1918 -32151 6028 055 58 54)Poly( m 6022 -32119 2409 056 58 55)Poly( m 6022 -32119 -2409 057 58 56)Poly( m 1918 -32151 -6028 051 58 57)IfVarAnd( :light 282 819 )LineColor( 0f f0 )DotPt( 59 ):lightReturn:platformPoints( 0-1700 6500 -1700-1700 6500 17001700 6500 17001700 6500 -1700)ShadedColor( 03 f0 )ShadedPoly( a 0 1 2 3 )ShadedPoly( ai 0 1 2 3 )Return:towermif( %8 )ShadowCall( :B2 ):B2mifendPoints( 0-600 0 -600 ;0-600 0 600 ;1600 0 600 ;2600 0 -600 ;3-600 1320 -600 ;4-600 1320 600 ;5600 1320 600 ;6600 1320 -600 ;7-720 0 -720 ;8-720 1320 720 ;9)LineColor( 20 f0 ) ; Element 1MoveToPt( 0 )DrawToPt( 4 )MoveToPt( 1 )DrawToPt( 5 )MoveToPt( 2 )DrawToPt( 6 )MoveToPt( 3 )DrawToPt( 7 )MoveToPt( 0 )DrawToPt( 7 )DrawToPt( 2 )DrawToPt( 5 )DrawToPt( 0 )MoveToPt( 3 )DrawToPt( 4 )MoveToPt( 6 )DrawToPt( 3 )Linecolor( 00 f0 )MovetoPt( 8 )DrawtoPt( 9 )DotPt( 0 )DotPt( 1 )DotPt( 2 )DotPt( 3 )DotPt( 4 )DotPt( 5 )DotPt( 6 )DotPt( 7 )Points( 0-600 1320 -600 ; 0-600 1320 600 ; 1600 1320 600 ; 2600 1320 -600 ; 3-600 2440 -600 ; 4-600 2440 600 ; 5600 2440 600 ; 6600 2440 -600 ; 7-720 1320 720 ;8-720 2440 -720 ;9)LineColor( 20 f0 ) ; Element 1MoveToPt( 0 )DrawToPt( 4 )MoveToPt( 1 )DrawToPt( 5 )MoveToPt( 2 )DrawToPt( 6 )MoveToPt( 3 )DrawToPt( 7 )MoveToPt( 0 )DrawToPt( 7 )DrawToPt( 2 )DrawToPt( 5 )DrawToPt( 0 )MoveToPt( 3 )DrawToPt( 4 )MoveToPt( 6 )DrawToPt( 3 )Linecolor( 00 f0 )MovetoPt( 8 )DrawtoPt( 9 )DotPt( 0 )DotPt( 1 )DotPt( 2 )DotPt( 3 )DotPt( 4 )DotPt( 5 )DotPt( 6 )DotPt( 7 )Points( 0-600 2440 -600 ; 0-600 2440 600 ; 1600 2440 600 ; 2600 2440 -600 ; 3-600 3960 -600 ; 4-600 3960 600 ; 5600 3960 600 ; 6600 3960 -600 ; 7-720 2440 -600 ;8-720 3960 600 ;9)LineColor( 20 f0 ) ; Element 1MoveToPt( 0 )DrawToPt( 4 )MoveToPt( 1 )DrawToPt( 5 )MoveToPt( 2 )DrawToPt( 6 )MoveToPt( 3 )DrawToPt( 7 )MoveToPt( 0 )DrawToPt( 7 )DrawToPt( 2 )DrawToPt( 5 )DrawToPt( 0 )MoveToPt( 3 )DrawToPt( 4 )MoveToPt( 6 )DrawToPt( 3 )Linecolor( 00 f0 )MovetoPt( 8 )DrawtoPt( 9 )DotPt( 0 )DotPt( 1 )DotPt( 2 )DotPt( 3 )DotPt( 4 )DotPt( 5 )DotPt( 6 )DotPt( 7 )Points( 0-600 3960 -600 ; 0-600 3960 600 ; 1600 3960 600 ; 2600 3960 -600 ; 3-600 5280 -600 ; 4-600 5280 600 ; 5600 5280 600 ; 6600 5280 -600 ; 7-720 3960 720 ;8-720 5280 -720 ;9)LineColor( 20 f0 ) ; Element 1MoveToPt( 0 )DrawToPt( 4 )MoveToPt( 1 )DrawToPt( 5 )MoveToPt( 2 )DrawToPt( 6 )MoveToPt( 3 )DrawToPt( 7 )MoveToPt( 0 )DrawToPt( 7 )DrawToPt( 2 )DrawToPt( 5 )DrawToPt( 0 )MoveToPt( 3 )DrawToPt( 4 )MoveToPt( 6 )DrawToPt( 3 )Linecolor( 00 f0 )MovetoPt( 8 )DrawtoPt( 9 )DotPt( 0 )DotPt( 1 )DotPt( 2 )DotPt( 3 )DotPt( 4 )DotPt( 5 )DotPt( 6 )DotPt( 7 )IfVarRange( :D3 028C 0002 0004 )LineColor( 0F F0 )DotLine( -60 0 -60 -60 600 -60 4 ):D3Points( 0-600 5280 -600 ; 0-600 5280 600 ; 1600 5280 600 ; 2600 5280 -600 ; 3-600 6500 -600 ; 4-600 6500 600 ; 5600 6500 600 ; 6600 1100 -600 ; 7-720 5280 720 ;8-720 6500 -720 ;9)LineColor( 20 f0 ) ; Element 1MoveToPt( 0 )DrawToPt( 4 )MoveToPt( 1 )DrawToPt( 5 )MoveToPt( 2 )DrawToPt( 6 )MoveToPt( 3 )DrawToPt( 7 )MoveToPt( 0 )DrawToPt( 7 )DrawToPt( 2 )DrawToPt( 5 )DrawToPt( 0 )MoveToPt( 3 )DrawToPt( 4 )MoveToPt( 6 )DrawToPt( 3 )Linecolor( 00 f0 )MovetoPt( 8 )DrawtoPt( 9 )DotPt( 0 )DotPt( 1 )DotPt( 2 )DotPt( 3 )DotPt( 4 )DotPt( 5 )DotPt( 6 )DotPt( 7 )Return:crashmif( %9 )IfVarRange3( :nocrash1 37E -3 3 382 0 18 386 3 3 )SetVar( 0284 14 ):nocrash1mifendReturn:P3Return:endEndA

Share this post


Link to post
Share on other sites
Guest JR Morgan

Hi... Have you tried viewing your ground objects while in 'Cockpit' view and viewing straight-down out of the bottom of your airplane ( menu? I've found that 'cockpit-view-straight-down' shows all added objects and you have linear control of altitude instead of the huge jumps that occurr when using 'Top-Down' in the View manu.J.R

Share this post


Link to post
Share on other sites
Guest bones

When I ported my ASD created scenery for FS98 into FS2002/4 it caused several lockups. By tedious elimination of BGL's and then individual components I traced the problem to three ASD macro's - none of which seemed to contain any "unusual" code. I rebuilt the objects in GMax rather than mess around with the SCASM code so I never did fully trace the offending bit of script. I suspect it was inside the MIF call - either the crash code or the SetVar values..BTW I notice that any default ASD 2.1 buildings (those available from the Hangar or Building icons) seem to hit frame rates a lot in FS2002/4.boneshttp://fsaviation.net

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