Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Turn to wind direction GMax question.

Featured Replies

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

  • Author
  • Commercial Member

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]

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

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

  • Author
  • Commercial Member

Strange, very strange ......Can you maybe send me the source file, so I can have a look?Arno


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

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

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

  • Author
  • Commercial Member

Check your mail :), it worked with me.Arno


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

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.