Any very basic examples of animation?

Software: Away3D 4.x

Tricky Widget, Newbie
Posted: 11 June 2012 08:45 PM   Total Posts: 19

I’m new to Away3D and finding that it’s pretty easy to learn so far.  I’m up to wanting to add some simple animation, but the few examples I can find are for far more complex animations than I need.  I just want to rotate the camera on one axis.  Like I said, very basic.  smile

I’ve hacked a crude animation by incrementing the rotation in ENTER_FRAME, but that won’t give me consistent motion on different machines.

Does anyone know a short example using the proper API they could point me to?  Or have a simple bit of code they could paste in?

Thanks!

   

Shegl, Sr. Member
Posted: 11 June 2012 09:02 PM   Total Posts: 134   [ # 1 ]

Maaan use greensock Tweener for that.. So simple..

TweenMax.to(this, (time in seconds for complete) , { x:0z:0y:0rotationY360), easeLinear.easeNone } ); 
   

Tricky Widget, Newbie
Posted: 11 June 2012 11:13 PM   Total Posts: 19   [ # 2 ]

Thank you for the suggestion!  That does look easy to use.

However, I’d prefer to use Away3D’s own capabilities, both because I want to learn how to use them and because I want to avoid adding more libraries unless I really need them.

Can this be done with just Away3D?

   

Shegl, Sr. Member
Posted: 12 June 2012 06:17 AM   Total Posts: 134   [ # 3 ]

We all here use tweener + away3d

   

Tricky Widget, Newbie
Posted: 12 June 2012 10:32 AM   Total Posts: 19   [ # 4 ]

OK, then I’ll check it out.  Thanks again!  smile

   

Tricky Widget, Newbie
Posted: 12 June 2012 11:12 AM   Total Posts: 19   [ # 5 ]

Er, actually, I just realized that the GreenSock tweener is ridiculously expensive for commercial use ($150/year for one library?!?).  Any other suggestions that are either cheap or open source?

Thanks!

   

Shegl, Sr. Member
Posted: 12 June 2012 01:23 PM   Total Posts: 134   [ # 6 ]

I recommend you greensock cause he one of the best tweeners. There are lot of em. Also you can use flash common tweener…

Tell me.. why you didn’t know about it ?

   

Avatar
Fabrice Closier, Administrator
Posted: 12 June 2012 03:38 PM   Total Posts: 1265   [ # 7 ]

As part of Prefab, comes a series of behaviours called “guys”, one of them is the TweenGuy. It doesn’t like many other tweeners have an enterframe, no complex object managements. It is timebased and uses your own trigger to update.
You can test your tweens in realtime on your models, all this right into Prefab…and the app spits out the code for you. It’s all very very early state for the “guys”. But on tween side, it already can do pretty cool shit that might interrest you.

Not saying it’s better, comparable or anything like that.
Just saying: it’s there, it’s free and might be usefull to you wink

   

Tricky Widget, Newbie
Posted: 12 June 2012 04:00 PM   Total Posts: 19   [ # 8 ]
Shegl - 12 June 2012 01:23 PM

Also you can use flash common tweener…

Tell me.. why you didn’t know about it ?

I do know about it, but it’s part of the commercial Adobe software, not the free SDK.  I’m using SDK + FlashDevelop, so I don’t have access to it.

   

Tricky Widget, Newbie
Posted: 12 June 2012 04:03 PM   Total Posts: 19   [ # 9 ]
Fabrice Closier - 12 June 2012 03:38 PM

As part of Prefab, comes a series of behaviours called “guys”, one of them is the TweenGuy.

Thanks for the suggestion!  Google doesn’t seem to know where to find TweenGuy.  Could you provide a link to it?

   

Avatar
Matse, Sr. Member
Posted: 12 June 2012 04:54 PM   Total Posts: 149   [ # 10 ]

That’s because TweenGuy is just a feature, the tool is “Prefab” wink
http://www.closier.nl/prefab/

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X