Easing functions questions [SOLVED]

  • #1, z red363Monday, 11. July 2022, 03:26 hodinky 2 years ago
    Hi!

    Can you please tell me if it is possible to disable the "easing function" if I want to enlarge a part of the scene, rotate an object, etc.?

    Where I just wrote "none":
    shaderViewport(50, 945-19, 265-11, 0, 7000, none)

    Thanks

    Fanoušek fóra

    101 Posts


  • #2, z esmeraldaMonday, 11. July 2022, 12:11 hodinky 2 years ago
    just leave it empty or use the linear easing (easeLinearIn)
    there is even easeNoneIn, that should wait for the time set as delay and then jump to the designated scale.
    (and of course these easing exist as ...Out and ...InOut like any other easing)

    Zabiják klíčů

    525 Posts

  • #3, z red363Monday, 11. July 2022, 17:49 hodinky 2 years ago
    just leave it empty or use the linear easing (easeLinearIn)
    there is even easeNoneIn, that should wait for the time set as delay and then jump to the designated scale.
    (and of course these easing exist as ...Out and ...InOut like any other easing)
    Thanks for the answer.
    Maybe I don't fully understand something...

    If I leave it empty, nothing happens.
    If I use "easeNoneIn" the increase is instantaneous, without a smooth fade.
    If I use "easeLinearIn" - the increase occurs along a curve, but I just don't need it.

    I need to have the usual smooth increase over a given period of time to the desired size without deflecting the camera trajectory in the process.

    Fanoušek fóra

    101 Posts

  • #4, z afrlmeMonday, 11. July 2022, 20:22 hodinky 2 years ago
    easeLinearInOut is the default one, which should be a straight line from point A to point B without any curving. If you want the start to have the same curve as the end then you need to include InOut at the end of the easing type.

    Also what you are saying is not making a lot of sense to me, so I'm probably misunderstanding what it is you are trying to do.

    Imperátor

    7285 Posts

  • #5, z red363Monday, 11. July 2022, 21:19 hodinky 2 years ago
    Thanks everyone, I think I figured out what the problem was. Found the answer here:

    https://www.visionaire-studio.net/forum/thread/shaderviewpor...

    Fanoušek fóra

    101 Posts