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: Repulsion instead of attraction #23

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

Generalized Shader IK: Repulsion instead of attraction #23

hai-vr opened this issue Feb 16, 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 16, 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.


The Handholding Shader IK IK looks for the closest light source within range and get attracted to it.

In the Generalized Shader IK, allow light sources to be repulsive instead of attractive. The IK would be assigned a default rest target within range of the arm, which may be in a flexing position. By approaching a source of light, the IK target will try to remain close to the default rest target, while spherically avoiding that source of light within a radius, the distance being possibly a non-linear function of the distance between the default rest position and that light.

@hai-vr hai-vr added the project-generalized-shader-ik Related to the Generalized Shader IK project. label Feb 16, 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