Skip to main content
V
1y ago

Blend Node with Joystick values Error

If the joystick is controlled by a number in SM with a Blend node, the middle number value should center the joystick.

I've plotted a curve showing how the joystick value changes when incrementally increasing the number by 10.

4 replies
V
V
1y ago

Here is the expected change in joystick value. (the white line)

1y ago

Hi I see. The problem is different from the Joystick. The problem is the 1D Blend. Blend 1D mixing is not linear. What happens is that the value of the mixture increases in each position. For this reason, the value 50 out of 100 does not match half of the animation. To solve this, you can add a new layer to reset the blend value in each position or use the Blend additive, which does make a linear blend.

This is an example of how to add the reset layer: https://www.youtube.com/watch?v=IIW1RnBUfCw&t=2119s

And this is a video about the Blend additive: https://twitter.com/i/status/1722706177426096262

V
(edited) 1y ago

Thank you, the zero layer is working. Can I ask the reason for this approach? What's the benefit of such non-linearity in the blend node that justifies the additional - and to be honest non-obvious setup - with an extra layer?

1y ago

Yes, I understand you. This needs to be clarified.
Blend 1D is intended to mix several animations that use the same properties. An example is a character that has three states. In idle, where there is a breathing movement. A Walk and a Run. Using the 1D Blend, we can make the character go from the idle state to the Run state, passing through the Walking state, so that at a certain moment, the breathing animation will be mixed with the walking animation, while the running animation starts to mix. The result is a more natural movement of my mixture. It is a type of mixture used often in video games.