Announcement

Collapse
No announcement yet.

Blueprint Function Library for Easing / Tweening

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Blueprint Function Library for Easing / Tweening

    This is a crosspost from my UE4 research thread.

    Blueprint Easing Function Library

    I could not resist spending a few hours implementing an easing library. I think I used pretty much every easing resource available on the web for reference. I don't take credit for the math, only the implementation.

    The functions use an input Alpha value, expecting a value between 0.0-1.0. Output is a value that starts/end at 0.0/1.0 with some overdrive as seen in the video. The only exception are the elastic functions which also has a parameter for frequency.



    The function library can be downloaded below for UE4 4.3.0. Instructions can be found inside the ReadMe file.
    http://dennylindberg.com/downloads/u...ionLibrary.zip
    Programmer, Rigger, Animator - Demo Reel 2015 - My RnD / WIP thread - www.dennylindberg.com
    Worked on: Kitten'd - Guardians of Valor (Android, iOS)

    #2
    This is pretty cool! Thanks a lot for sharing.
    FREE VR Drum Kit Project
    FREE Color LUT Collection
    FREE Physics Driven Spacecraft Project
    FREE GTA Style Vehicle Interaction
    Dynamic DoF(Depth of Field)
    Camera Crossfade

    Comment


      #3
      Whoa, very cool!

      Thanks Denny, awesome work on the overdrive curves. I was wondering how I might implement some additional curves for a couple different things, and you just saved me a ton of time.

      Comment


        #4
        wow thank you
        || DigitalTRX | C4DGames ||

        Comment


          #5
          Thank you all for the positive responses! Keeps me inspired to do more fun things with the engine.
          Programmer, Rigger, Animator - Demo Reel 2015 - My RnD / WIP thread - www.dennylindberg.com
          Worked on: Kitten'd - Guardians of Valor (Android, iOS)

          Comment


            #6
            Thank you Denny! This library has been amazingly useful for my projects.

            One small note: In its current implementation, the easeElasticOut function returns >=1, even when the input alpha == 0. This causes the "eased" parameter to jump immediately to its end state, and then fluctuate around before settling in. There isn't any initial, gradual easing towards the end point.

            Here is the Blueprint for my custom easeElasticOut function (based on Josh Marinacci's sample easeOutElastic function). It solves this problem but is missing the Frequency parameter. You can play with the 0.3 value (used in 2 places) to adjust the look/feel. [Sorry for the hassle - this was just a quick prototype.]

            Click image for larger version

Name:	screen2.png
Views:	1
Size:	228.1 KB
ID:	1081325

            Comment


              #7
              Thanks hwray, that's an excellent resource! I might refactor the blueprints one day, to fix the issue above and add the better math.
              Programmer, Rigger, Animator - Demo Reel 2015 - My RnD / WIP thread - www.dennylindberg.com
              Worked on: Kitten'd - Guardians of Valor (Android, iOS)

              Comment


                #8
                Cheers for the library. It's coming in handy.

                Comment

                Working...
                X