Sign in to follow this  
arno

Turn to wind direction GMax question.

Recommended Posts

Hey,I'm currently working on a small project which involves (among other things) the following windmill pictured below.I have successfully made the rotating animation of the blades. However, I want to turn to top part of the windmill into the wind. To do so, I have divided the windmill into two GMax files. One is the base support structure (non turning part) and one the top structure, which will need to turn into the wind.I the top structure's .asm file I have substitutedSCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0BGL_CALL OBJECT_0_BEGINOBJECT_0_RETURN label wordwithSCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0POINT_VICALL OBJECT_0_BEGIN, 0, 0, 0, 0, 0, 0, 0, 0, global_winds_surface_directionOBJECT_0_RETURN label wordas shown on Arno's site. As this didn't work, I placed two of these top structures on screen, also as written on Arno's site. Unfortunately, this also didn't work. Any clues as to what I may be missing here? Bonus question: is it technically possible to have FS turn the blades when there is wind, and have them not moving with no wind?Thanks!Johan

Share this post


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

Hi Johan,Sorry I didn't had the time to respond on your mail yet.How did you place the objects? Did you place them from GMax direct or using an API and a lib?In the first case these modifications should be enough, as long as you place more then one object (when two of them are visible it should work).If you used API's to place them you need to put the rotatecall in the API, as the changes you made in the ASM file are not carried into the lib or API.Then about your last question, yes it is possible to do this. Basically it would mean that you have to check the value of the wind speed and if it is zero turn the animation off (this technique for this is the same as the frequency controlled animation I wrote a tutorial about, but now you check the wind speed and not the frequency).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Share this post


Link to post
Share on other sites

Arno,Thanks for the reply. Unfortunately, I did place them directly from GMax, including the alterations and two visible at the same time. Didn't work though.GMax is gonna kill me someday. I finally figured out how to get the animations to work, but then I get this... Aaaargghh :-madThank anyway. Any other suggestions as to what might be going wrong?Johan

Share this post


Link to post
Share on other sites

It's in your mailbox. Thanks! :-beerchug(edit: in reply to post number 3)Johan

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