March 5, 200323 yr 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
March 5, 200323 yr 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 ArnoMember 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
Create an account or sign in to comment