Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalized Shader IK: Add angular constraints #21

Open
hai-vr opened this issue Feb 15, 2020 · 0 comments
Open

Generalized Shader IK: Add angular constraints #21

hai-vr opened this issue Feb 15, 2020 · 0 comments
Labels
project-generalized-shader-ik Related to the Generalized Shader IK project.

Comments

@hai-vr
Copy link
Owner

hai-vr commented Feb 15, 2020

Generalized Shader IK is a draft project to create a modified version of the Handholding Shader IK which would have more customization options and would be less specific to dancing. It does not aim to be a superset of the Handholding Shader IK.

The shader code for the Generalized Shader IK is to be kept separate from the Handholding Shader IK: If the Generalized Shader IK were to be implemented within Handholding Shader IK, it would introduce a whole lot of complexity to a piece of very specialized code that is small enough to be simple to understand.


For some applications, we would limit the angles at which an IK can move around.

From a quick analysis, this may introduce a few challenges, taking the Mathematical guide as a reference. For instance, if we constrain the angle of forearmFlexAngle, then the distance to the target will be constrained. In effect, this changes the values that already have been used when applying the law of cosines to determine the angle of forearmFlexAngle, and may require us to recalculate the triangle using the law of cosines with the distance as an unknown and the forearmFlexAngle as known.

Further down the line, if the pitch is constrained, then the entirearmFlexAngle angle calculated as a result of applying the law of cosines may have to be modified again.

Therefore with my current knowledge I am unsure about the required strategy to stabilize the calculations with constrained angles.

This is to say that this feature seems non-trivial to me. There are also unknowns about the desired behavior when the target is located at ridiculous angles near an unstable threshold, i.e. exactly behind the IK.

As I have no knowledge of how real IK systems work, I might need to learn how a real IK system work, or empirically figure out a strategy to solve this.

@hai-vr hai-vr added the project-generalized-shader-ik Related to the Generalized Shader IK project. label Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project-generalized-shader-ik Related to the Generalized Shader IK project.
Projects
None yet
Development

No branches or pull requests

1 participant