Jump to content

Transfer wire anim to bones


Alain2131

Recommended Posts

Hey guys !

Let's lay out the bases. What's the big idea.
To start with, I've got some skinned mesh (a tree or something) that I want a wire sim to be applied to.
I get the bones' position and parenting information, create a polyline representation of the bones, and then send that to a wire sim.
I then need to gather the result and apply it back to the bones.

The problem is - the information from the wire sim (pos and orient) are world-space. I need them local-space to be written back onto the bones, and I need them "zero-based", so that a local translation is not applied two times, idem for rotation. Don't know how to make that conversion.

Now ! For what I've actually managed to achieve.
For the test, I've got no geometry, only very simple bones (a two-bones chain), and I got them into sops in polyline, and the sim is applied to it.
I now need to write that info to the bones. That's where I hit a wall.

Can someone help me with that ? Either by how to convert the world-space wire sim to the local-space of the bones, or by some trick with nodes (such as sticky/rivets, which is what I'm trying in the hip file). See the aforementioned for some of the tests that I did.

TL;DR : I need to transfer a wire sim (that has its initial positions from bones) to their respective bones. See hip file for current tests state.

Thanks !

wire_to_bones.hip

Edited by Alain2131
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...