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.

LayerCall \ Ground polygons

Featured Replies

HiIm working on a hospital scenery and have made a ground polygon in FSDSV2 and from there made a .api, i want it to be able to see the shadow of the aircraft on the polygon. I was wondering if anybody can help me use the scasm command Layercall(I have no idea about manual editing the code)Here is the code:-------------------------;VODDATA Latitude Longitude Range Scale Rotation Not_used Not_used Not_used Not_used Visibility Altitude Scenery_complexity(0-5) Not_used Not_used;MACRODESC FSDS object 37x37 using scale 1.000000;Generated with FS Design Studio version 2;Copyright 2002; %1 = Latitude; %2 = Longitude; %3 = Range; %4 = Scale; %5 = Rotation; %6 = Not used; %7 = Not used; %8 = Not used; %9 = Not used; %10 = Visibility range; %11 = Altitude; %12 = Scenery complexitymif( 0 ); displays airport symbolArea( 5 %1 %2 1 )RotatedCall( :symbol 0 0 %5 )Jump( :endsymbl ):symbolRefPoint( 7 : 1 %1 %2 )Points( 1-18 0 -18-18 0 1818 0 1818 0 -180 0 0 )Poly( a 1 5 2 )Poly( a 2 5 3 )Poly( a 3 5 4 )Poly( a 4 5 1 )Return:endsymblEndAmifendSet( BUF 1024 )Set( areamx 1024 )Set( LINBUF 2048 )Area( 5 %1 %2 %3 )IfVarRange( :ExitComplex 0346 %12 5 )Jump( :ComplexOK ):ExitComplexJump32( :Exit ):ComplexOKPerspectiveCall( :PCall )ShadowCall( :PC02 )Jump32( :Exit ):PCallPerspective:PC02mif( %11 )RefPoint( 2 :Skip %4 %1 %2 E= %11 v1= %10 V2= 37 )melseRefPoint( 7 :Skip %4 %1 %2 v1= %10 v2= 37 )mifendJump( :Continue ):SkipReturn:ContinueRotatedCall( :B 0 0 %5 )Return:BBGLVersion( 0800 )TextureList( 0 6 FF 255 255 255 0 20.000000 "Bakke.bmp" )MaterialList( 0 0.752941 0.752941 0.752941 1.000000 0.250980 0.250980 0.250980 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 )VertexList( 0 -22.300869 0.000000 -5.073490 0.000000 1.000000 0.000000 0.191406 0.103516 -6.187185 0.000000 -21.187181 0.000000 1.000000 0.000000 0.802734 0.103516 15.000000 0.000000 -0.000001 0.000000 1.000000 0.000000 0.802734 0.900391 -1.113687 0.000000 16.113697 0.000000 1.000000 0.000000 0.191406 0.900391 ); Draw Main ModelCall32( :_tmp_0_Polygon_0 )EndVersionReturn; Part: Polygon:_tmp_0_Polygon_0Transform_Mat( 4.375000 0.000000 -25.549999 0.707107 0.000000 0.707107 0.000000 1.000000 0.000000 -0.707107 0.000000 0.707107 )ZBias( 1 )SetMaterial( 0 0 )DrawTriList( 0 0 1 2 0 2 3 )ZBias( 0 )TransformEndReturn:ExitEndA---------------------------Thanks,Tor Inge

  • Commercial Member

Try this:

;VODDATA Latitude Longitude Range Scale Rotation Not_used Not_used Not_used Not_used Visibility Altitude Scenery_complexity(0-5) Not_used Not_used ;MACRODESC FSDS object 37x37 using scale 1.000000 ;Generated with FS Design Studio version 2 ;Copyright 2002 ; %1  = Latitude ; %2  = Longitude ; %3  = Range ; %4  = Scale ; %5  = Rotation ; %6  = Not used ; %7  = Not used ; %8  = Not used ; %9  = Not used ; %10 = Visibility range ; %11 = Altitude ; %12 = Scenery complexity mif( 0 ) ; displays airport symbol Area( 5 %1 %2 1 ) RotatedCall( :symbol 0 0 %5 ) Jump( :endsymbl ) :symbol RefPoint( 7 : 1 %1 %2 ) Points( 1 -18   0   -18 -18   0	18 18   0	18 18   0   -18 0   0	0 ) Poly( a 1 5 2 ) Poly( a 2 5 3 ) Poly( a 3 5 4 ) Poly( a 4 5 1 ) Return :endsymbl EndA mifend Set( BUF 1024 ) Set( areamx 1024 ) Set( LINBUF 2048 ) Area( 5 %1 %2 %3 ) IfVarRange( :ExitComplex 0346 %12 5 ) Jump( :ComplexOK ) :ExitComplex Jump32( :Exit ) :ComplexOK LayerCall( :PCall 8 ) Jump32( :Exit ) :PCall mif( %11 ) RefPoint( 2 :Skip %4 %1 %2 E= %11 v1= %10 V2= 37 ) melse RefPoint( 7 :Skip %4 %1 %2 v1= %10 v2= 37 ) mifend Jump( :Continue ) :Skip Return :Continue RotatedCall( :B 0 0 %5 ) Return :B BGLVersion( 0800 ) TextureList( 0 	6 FF 255 255 255 0 20.000000 "Bakke.bmp" 	) MaterialList( 0 	0.752941 0.752941 0.752941 1.000000   0.250980 0.250980 0.250980 1.000000   0.000000 0.000000 0.000000 1.000000   0.000000 0.000000 0.000000 1.000000 0.000000 	) VertexList( 0 	-22.300869 0.000000 -5.073490  0.000000 1.000000 0.000000  0.191406 0.103516 >	-6.187185 0.000000 -21.187181  0.000000 1.000000 0.000000  0.802734 0.103516 	15.000000 0.000000 -0.000001  0.000000 1.000000 0.000000  0.802734 0.900391 	-1.113687 0.000000 16.113697  0.000000 1.000000 0.000000  0.191406 0.900391    ) ; Draw Main Model Call32( :_tmp_0_Polygon_0 ) EndVersion Return ; Part: Polygon :_tmp_0_Polygon_0 Transform_Mat( 	4.375000 0.000000 -25.549999 	0.707107 0.000000 0.707107 	0.000000 1.000000 0.000000 	-0.707107 0.000000 0.707107 	) ZBias( 1 ) SetMaterial( 0 0 ) DrawTriList( 0 	0 1 2 	0 2 3 	) ZBias( 0 ) TransformEnd Return :Exit EndA

Arno


Member Netherlands 2000 Scenery Team[link:home.wanadoo.nl/arno.gerretsen]Arno's FlightSim World for scenery design hints, tips and other tricks...

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

Thanks Arno, it worked great.Tor Inge

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.