How to use the UVAnimator properly, is this possibly a bug?

Software: Away3D 4.x

Avatar
sebbdk, Jr. Member
Posted: 12 January 2013 02:57 AM   Total Posts: 39

I am trying to implement the UVAnimator just to understand how it works properly and to have some reference code on how it works, it’s not entirely working out tho.

In my example i simply want to move/offset the texture around a bit as proof of concept.

My code:
https://gist.github.com/4515787

I get a AGAL compile error tho:
https://gist.github.com/4515796

I am using the latest code from the away3d-core-fp11 repo on git as of this writing.

I have not been able to find any examples or much info apart from Richard’s explanation here:
http://away3d.com/forum/viewthread/2872/ which i based my code on.

So basically, what am i doing wrong here? smile

   

Avatar
sebbdk, Jr. Member
Posted: 12 January 2013 03:07 AM   Total Posts: 39   [ # 1 ]

Just realised i should probably have added this to the support forum ..
If a admin see’s this please move this thread if possible smile

   

Avatar
sebbdk, Jr. Member
Posted: 12 January 2013 11:09 AM   Total Posts: 39   [ # 2 ]

Oh ... looked through the code framework code ..
https://github.com/away3d/away3d-core-fp11/blob/master/src/away3d/animators/UVAnimationSet.as#L18

The getAGALVertex code method is not written yet raspberry

   

Avatar
sebbdk, Jr. Member
Posted: 12 January 2013 04:03 PM   Total Posts: 39   [ # 3 ]

il just rant on here for google.

I Managed to make it work, making some changes to the UV animator classes, adding missing AGAL code etc, did the trick.
I will play around with it some more before i share anything just to make make sure it works as intended.

I am also thinking about extending the UVAnimator class into a UVSpriteAnimator class as well, it seems possible to do without breaking/changing the code flow.

 

   

Avatar
sebbdk, Jr. Member
Posted: 12 January 2013 04:04 PM   Total Posts: 39   [ # 4 ]

removed douple..

   

Dentaku, Newbie
Posted: 19 January 2013 10:49 PM   Total Posts: 8   [ # 5 ]

I have the same problem, could you share your fix somewhere? I’m also interested in your UVSpriteAnimator class smile

   

Avatar
sebbdk, Jr. Member
Posted: 28 January 2013 10:03 AM   Total Posts: 39   [ # 6 ]

Hey have been busy on a few other things,
so i have not had time to finish this properly.

I will throw and update with some code today or tomorrow hopefully.
Thanks for the reminder!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X