Jump to content
Sign in to follow this  
Guest

Ground polygons as macros

Recommended Posts

Guest

Hi everyone, I created a polygon using Gmax. I also edited the asm file in order to eliminate the shimmering by using the addcat command. As such everything works well when I recompile the asm and put the bgl file directly into the scenery folder. I also converted the polygon into a macro using Fsregen, but the problem is that as a macro the polygon started shimmering again even though the asm file had been edited. Has anybody ever tried this or do you think that there is a way round it.Tnx and regardsDaniel

Share this post


Link to post
Share on other sites

That's correct. The changes you made to the ASM source don't come in the library, the library only uses the yourfile_0.asm file.Try using a calling macro like this one:[tt]Area( 5 %1 %2 22 )LayerCall( :OBJ 8 )jump( : ):OBJmif( %11 )refpoint( 2 :END %4 %1 %2 E= %11 v1= %10 %13 %14 )melserefpoint( 7 :END %4 %1 %2 v1= %10 %13 %14 )mifendrotatedcall( :ROT 0 0 %5 )return:ROTcallLibobj( 0 11111979 14122000 12042003 2 ):ENDreturnEndA[/tt]The parameter 8 is the layer number.


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

Tnx Arno i'll give it a try.RegardsDaniel

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