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.

Frequency-controlled animations of multiple objects

Featured Replies

  • Commercial Member

Hello again,After some noodling around, I've finally gotten my pocket hangar door animation working the way I'd like, or at least close to it. My next goal is to get the animation to be frequency-controlled for opening the doors ala Arno's great frequency-controlled animation tutorial. My problem is that I'm animating 10 objects at once instead of 1 (as in the tutorial) and I'm having a hard time figuring out the syntax for how to do them all. I've gotten one working just fine thanks to Arno, but my knowledge of ASM coding is minimal and I'm having a tough time figuring out how it all works together. I've attached a zip of a simple two-object animation in asm format in case anyone can help shed light on how I need to do this. In the example I've attached, one of the cubes slides on frequency set and the other just animates continuously. I guess my question is, how can I group the animations so they all trigger on changing the frequency? I suppose I could go in and make a new user-defined variable for each of the ten doors, and essentially re-create what Arno did 10 times, but it gets hairy keeping track of the labels and making sure they're unique along with creating 10 separate usrvars. Surely there must be a better way?thanks,http://forums.avsim.com/user_files/24304.zip

Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

  • Commercial Member

Hi Bill,You need to do the following.The piece of code that triggers the animation and sets the user variable must only be written once in your source.But for every animation you need to make the additional animation tables and also you need to write the source that checks the user variable (and determines which table to call) for every animation.Hope this helps and don't hesitate to ask again or mail me if you want some extra help :).

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

  • Commercial Member

Thanks so much, Arno! I've got my anims working fine now and couldn't be happier! As always, you've been a huge help.thanks,

Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

Hi guys,So where can a guy pick up the info on making the animations and what 3d design tool do you use? Thanks in advances.Take care.John Williams

  • Commercial Member

Hi John,The frequency-controlled animations that I'm working on are based on Arno's tutorial, which can be found on his site (see his signature above). The hangar itself is made in Gmax, and the animations are done by editing the raw asm file once the model has been output. Hope that's enough to get you started, anyway.thanks,

Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

Thanks Bill, I guess I had passed it up a few times, duh. I was wondering if the same thing could be done in FSDSv2.23?John Williams

Yes, it can be done with FSDS2 generated SCASM source. FSDS2 generates code that looks just as the gmax's source. BUT! I have no idea what changes you must do in the source.Perhaps anyone could help?Here's the SCASM source of an animated box: http://www.estscen.net/misc/anim.txt

  • Commercial Member

I had a quick look at the source, some parts look like the GMax code indeed. I think that the principles described in my tutorial should still work, but you need to translate them to SCASM.The SCASM equivalent of IFIN1 is IfVarRange. The only part I don't really understand is are all those Dxw commands. Maybe they do the same as the interpolate commands in the BGLC code and then you don't need to touch them, but I don't know for sure (I don't use FSDS2 myself).

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

Thanks Arno & Paavo, I will try this and see what the results are. I will be back with my results. I had a feeling it would work just by looking at the code. We shall see.Take care.John Williams

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.