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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...