Jump to content
Sign in to follow this  
Guest

Frequency-controlled animations of multiple objects

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites
Guest PaavoP

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...