Jump to content
Sign in to follow this  
Guest

Example of rotating tree.

Recommended Posts

Guest

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

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


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

Thank you Arno, I will try that ASM change.Ted

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