Sign in to follow this  
Guest

Example of rotating tree.

Recommended Posts

I have request : can someone produce example of "rotating tree" single poligon in gMax. As I understand from the previous posts, it requires small modification od *.asm file. Despite all my efforts, I cannot make it to work. Hence my request for help. Thank you.ted

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

You can make a small change to the ASM file or to the API macro if you want to place it with a macro.For the macro I would use something like this:Area( 5 %1 %2 22 )PerspectiveCall( :L1 )ShadowCall( :L2 )Jump( : ):L1Perspective:L2mif( %11 )RefPoint( 2 :E1 0.6 %1 %2 E= %11 v1= %10 %13 %14 )melseRefPoint( 7 :E1 0.6 %1 %2 v1= %10 %13 %14 )mifendRotateToAircraft( :R1 0 0 0 0 0 1 0 0 0 )Return:R1CallLibObj( 0 00000001 11111979 14122000 06012003 ):E1ReturnEndAFor the ASM file you need to make the following changes. Replace these lines:OBJECT_0_SCALE label BGLCODESCALE_AGL OBJECT_0_RETURN, 10000, 167, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0BGL_CALL OBJECT_0_BEGINOBJECT_0_RETURN label wordWith:OBJECT_0_SCALE label BGLCODESCALE_AGL OBJECT_0_RETURN, 10000, 167, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0SPRITE_VICALL OBJECT_0_BEGIN, 0, 0, 0, 0, 0, 0, 0, 1, 0OBJECT_0_RETURN label word

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