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.

Windsock for FS2002 scenery ??

Featured Replies

Hi, I have an question here.. can I design my own windsock to my Fs2002 scenery? so it will animate with the pressent wind direction? Here is a real picture of that windsock I will design. http://www.nordicair.org/fssweden/windsock.jpg/Philip Nordlander

I'm pretty sure you can take any windsock macro and edit it's texture to look like yours. If the macro doesn't use texture, just colors, then you'll have a problem. Search for windsock macro or windsock api in the file library, I'm sure something will come up.

  • Commercial Member

And when you have made your own windsock, you can also animate it. You will need to add some code to the source for that. If you want to know, I can post an example for you.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

I'd like to see that code example, A...B

Thanks, for the answers...I realy want to design my own windstock, Im useing gmax for all my scenery design at moment:))I realy want to see an example so I can try to make my own, if not or I can't made the animations and code can you help me out then?MVHPhilip Nordlander

  • Commercial Member

Here is an example of the SCASM code. For the animation of the wind strenght different parts have been made (rotated to indicate the different wind strengths). Here is a screenshot of the sock in FSDS, so you get the idea.http://home.wanadoo.nl/arno.gerretsen/pics/sock_fsds.jpgFSDS generates this code for the windsock (only first part):[tt]Area( 5 %1 %2 %3 )IfVarRange( :Exit 0346 %12 5 )PerspectiveCall( :PCall )ShadowCall( :PC02 )Jump( :Exit ):PCallPerspective:PC02mif( %11 )RefPoint( 2 :Skip %4 %1 %2 E= %11 v1= %10 V2= 2194 )melseRefPoint( 7 :Skip %4 %1 %2 v1= %10 v2= 2194 )mifendRotatedCall( :B 0 0 %5 )Return:BCall32( :Part0 )Call32( :Part1 )Call32( :Part2 )Call32( :Part3 )Call32( :Part4 )Call32( :Part5 )Call32( :Part6 )Call32( :Part7 )Call32( :Part8 )Call32( :Part9 )Call32( :Part10 )Call32( :Part11 )Call32( :Part12 )Call32( :Part13 )Call32( :Part14 )Call32( :Part15 )Call32( :Part16 )Call32( :Part17 )Call32( :Part18 )Call32( :Part19 ):SkipReturn:ExitJump32( :End )[/tt]And here is the modified code that generates the animation:[tt]Area( 5 %1 %2 %3 )IfVarRange( :Exit 0346 %12 5 )PerspectiveCall( :PCall )ShadowCall( :PC02 )Jump( :Exit ):PCallPerspective:PC02mif( %11 )RefPoint( 2 :Skip %4 %1 %2 E= %11 v1= %10 V2= 2194 )melseRefPoint( 7 :Skip %4 %1 %2 v1= %10 v2= 2194 )mifendTransformCall( :B 0 0 0 0 0 0 0 270 C74 )Return:BCall32( :Part0 )Call32( :Part1 )Call32( :Part2 )Call32( :Part3 )Call32( :Part4 )Call32( :Part14 )Call32( :Part16 )Call32( :Part17 )Call32( :Part18 )Call32( :Part19 )IfVarRange( :A01 C72 0 2 )Call32( :Part5 )Call32( :Part10 )Return:A01IfVarRange( :A02 C72 3 7 )Call32( :Part6 )Call32( :Part13 )Return:A02IfVarRange( :A03 C72 8 12 )Call32( :Part7 )Call32( :Part12 )Return:A03IfVarRange( :A04 C72 13 20 )Call32( :Part8 )Call32( :Part9 )Return:A04Call32( :Part11 )Call32( :Part15 )Return:SkipReturn:ExitJump32( :End )[/tt]I hope you can spot and understand the differences.I have not translated it into BGLC code yet, but that's something for the future. Shouldn't be too hard to do.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 quick answers ;) as always what I can see.!Anyway check your email or mail on the forum, I sent a few questions there:)/Philip Nordlander

Hi Arno looking at the above(in regards to my flag that ripples in the wind is there anyway to get a 3DS mesh into FSDS with the animation?(done in 3DS max) Dan

  • Commercial Member

Hi Dan,It should not be that hard to build the same sort of code in BGLC around your GMax object. Just use the animation for the ripples, rotate the whole into the wind and use some different versions for different wind strengths.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.