animChannel.setSpeed(speed) – Cannt speed up Animation (11 posts)

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 4 months ago:

    animChannel.setSpeed(speed)

    Here its not possible to increase the animation speed.

    Can it be taken as a feature request, to be able, to increase the animation speed?

  • Profile picture of nehon nehon590p said 1 year, 4 months ago:

    mhhh setSpeed(2.0f) for example should double the speed of the animation.
    You mean this is not working?

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 4 months ago:

    it should set ‘given’ speed for all the animations of that channel, right?

    You mean this is not working?

    yeh, it seems that way.

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 4 months ago:

    So, should I file it as an Issue in the issue tracker?

  • Profile picture of nehon nehon590p said 1 year, 4 months ago:

    yes you can, i did not have time to look into it, but if i can’t reproduce it, i might ask you for a test case

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 4 months ago:

    Sent.

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 3 months ago:

    Hey, I found a word around of this animation speed issue.

    Then problem was not with animChannel.setSpeed(speed). It actually increases animation speed as you mentioned earlier. The problem is when you blend in another animation with this.

    channel.setAnim("stand", 0.50f);

    If i use this line speed goes back to default, i think it is 1.

    So, the word around is simple, set the animation speed again after blending another animation.

    This has pros and cons. First, now i have better control of the animation speed. I can set the speed whenever and whatever I want. On, the other side, this is making my code messy.

    It this ok with this method?

  • Profile picture of nehon nehon590p said 1 year, 3 months ago:

    it’s ok yes, but the blending should not reset the speed, so i guess that’s a bug.

    It’s cool you have workaround though ;) , thanks for narrowing this down.

  • Profile picture of nehon nehon590p said 1 year, 3 months ago:

    Alright, in the setAnim method, the speed is explicitly set to 1 at the end.
    I’ll have to discuss that with Kirill, because maybe it’s done on purpose.

    I’ll keep you informed

  • Profile picture of iamcreasy iamcreasy57p said 1 year, 3 months ago:

    yeh, i was thinking about it too. Cause, I used this bug(!) for an advantage. For a particular animation i need to speed down the playback
    speed, and I couldn’t have dont it without this feature.

  • Profile picture of nehon nehon590p said 1 year, 3 months ago:

    So after a discussion with Kirill, this is an intended feature, so in fact your workaround is not a workaround, it’s the way to go :p
    I’ll just state clearly in the javadoc that this methods sets the speed to 1.