Pilatus

BusinessGreen
  • Content count

    25
  • Joined

  • Last visited

Community Reputation

4 Newbie

About Pilatus

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location
    Switzerland

Recent Profile Visitors

1,032 profile views
  1. Thanks, got it, and it works.
  2. Yes, resolved Thanks to you guys. Do you plan on releasing the new .swc? At the moment I just had to add the class in my project sources, it does bypass the .swc old class.
  3. Ok, my app is quite complex so I had to make an effort to extract and minimize to an example. I posted also resulting video animations and yes I am not getting what I really want. I want the object to move past the left edge and get out of the way, rotating around its own the center. This is the code with x inside transformAroundCenter: var o:flash.display.Sprite = new flash.display.Sprite(); o.graphics.beginFill(Color.RED, 1); o.graphics.drawRect(400, 400, 100, 100); o.graphics.endFill(); addChild(o); TweenLite.to(o, 200, {useFrames: true, transformAroundCenter:{x: -400, rotation:360}}); this is the result animation: https://tinyurl.com/ljcgdth ------------------------------------------------------------------------------------------------------------------------ This is the code with x outside transformAroundCenter: var o:flash.display.Sprite = new flash.display.Sprite(); o.graphics.beginFill(Color.RED, 1); o.graphics.drawRect(400, 400, 100, 100); o.graphics.endFill(); Starling.current.nativeStage.addChild(o); TweenLite.to(o, 200, {useFrames: true, x: -400, transformAroundCenter:{rotation:360}}); this is the result animation: https://tinyurl.com/m69orgn
  4. I am running a simple animation which animates an image to negative x coordinates outside the stage towards the left, so that the image disappears. When I enable transformAroundCenter, the image would stop with its center point at x 0, so I see half of it on the left edge. If I disable transformAroundCenter, then the animation completes properly. Is this the wanted behaviour? I would expect the animation to just work and move the object out of the way.
  5. Actually I am already using Starling. I can use GSAP with starling faking the animaton with a dummy sprite and then updating all the animation matrixes into the starling display object, frame by frame. I use GSAP for matrix calculation only, then "steal" the matrix out the dummySprite and give it to Starling, then play it. The problem is still there in Starling as it is in Flash, no difference. For my project I will also try to output to WebGL in the future, still using GSAP, and see how it goes, but for now it seems like I've hit an hard limit with the Flash Player. Indeed, there is nothing I can do to avoid that little flicker every now and then. I could try tiling the image and see, but for now sufficiency is what matters!
  6. Hello, When I animate large images (e.g. 1600x900 px) throughout the screen, I see it stuttering sometimes. Animation must run at 60 fps with big images, otherwise it won't show smooth. I suspect these stutters I see every now and then, say once every 15 seconds, are nothing else than my process being preempted by the OS.. Even a the smallest preemption can cause a the process to lose minimum 10-15 ms, so in that time slice I lose the opportunity to play that frame (at 60 fps it has to play 1 frame every 16.6 ms). So if the amount of time to draw completely that frame is more then 6.6-1.6 ms, it will stutter... isn't it? Probably, with big images, the amount of time to draw stuff is more than 1.6-6.6 ms. My conclusion is that we cannot get rid of these problems, can we? So to recap, the eye needs to see 60 fps played, if we get preempted it won't play 60 fps, but say 57, then it it will be noticeable immediately. Indeed try to set 57 fps on large images, you will see the same stuttering happening more often than not. At the same time we cannot go over 60 fps as far as I know because we are approaching that minimum 10-15 ms quantum assigned to the drawing thread. Catch 22 situation. Do we need RTOS if we want smooth animations all the time? Thing is that customers complain about these stutters every now and then!
  7. I made it work like this: TweenMax.set(dispObj, {x:dispObj.x, y:dispObj.y}); dispObj.alignPivot(); TweenMax.set(dispObj, {x:dispObj.x+dispObj.pivotX, y:dispObj.y+dispObj.pivotY}); TweenMax.to(dispObj, 210, {useFrames:true, rotation: deg2rad(360), scale: 0.5, yoyo:true, repeat:-1, ease: Linear.easeNone}); Haven't really understoon why through, was more a trial error process. Scaling and rotating around center with yoyo.
  8. aaah shame, would be nice to have a workaround.
  9. Sorry, please move to the other forum.
  10. Hello, Is there a way to rotate starling display objects around the center? The plugins do not work with starling so there must be another way to use TweenMax with it. Thanks.
  11. Makes sense, but how would I retrieve the matrix values once I set the progress? Like it's explained here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/Matrix.html a,b,c,d,tx,ty Maybe I need to calculate the values of a,b,c,d out of "X,Y, skewY, skewX, rotationY, rotationX, scaleY, scaleX".
  12. Hi, Is it possible to get all the intermediate transform matrix of a tween given the start, end and time? Without actually executing the animation. Thanks.
  13. Thanks Jack, your answer is already satisfactory, indeed I was more looking for a general direction. I have to put up something to show as soon as I am back from vacation.
  14. Hello, I am looking if it possible to animate matrix values directly like with the TransformMatrixPlugin. Values would then be updated for each frame to webgl rendering using the Flash’s WebGL Runtime API. https://helpx.adobe.com/flash/webgl-runtime-api-help/matrix.html Do you reckon this approach can work? I am looking for a workflow which would allow to reuse Flash IDE assets exported to WebGL, then animate them via GSAP but still render everything to WebGL via Flash’s WebGL Runtime API. The unicorn! GSAP is great for manipulating object properties. Thanks.
  15. Understand perfectly, then I vote for the change , thanks.