Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / MOCAP / Questions re: using Constraints for missing mocap data
  RSS 2.0 ATOM  

Questions re: using Constraints for missing mocap data
Rate this thread
 
57495
 
Permlink of this thread  
avatar
  • Greenlaw
  • Posted: 29 June 2011 07:06 AM
  • Location: Los Angeles
  • Total Posts: 14
  • Joined: 16 July 2009 07:14 PM

I’m a fairly new MB user and in the past few weeks I’ve been getting into using the various Motion Builder Constraints for a short film project. I have a few questions about a particular Constraints setup and I am hoping that somebody here can help me.

I’m creating an animation of a cat playing a harmonica and there is mocap data for the entire body except the head and neck. I have an aim constraint to help me animate the head manually, and I’m using a parent constraint on the harmonica to attach the instrument to the character’s left paw. There is a ‘Lips Target’ null parented to the front of the harmonica and a ‘Lips’ null parented to the head control effector and positioned at the lips region of the face. The ‘Lips’ null’s position and rotation exactly matches the position and rotation of the ‘Lips Target’ null on the harmonica at frame 100. I also have an IK Constraint setup with the Neck as the First Joint and the Lips null as the End Joint, and the Lips Target null on the harmonica is the Effector.

What I want to do is have the IK Constraint take over the head motion at frame 100 so that the character’s ‘lips’ and head follows the ‘lips target’ null on the harmonica as the character’s paws move the harmonica. One more thing, I want the head to only track the ‘Lips Target’ null in a forward motion because the harmonica needs to slide across the lips from side to side.

So I was wondering, how can I limit the IK Constraint to rotate neck and head joints only on X rotation to get this forward only movement? Or am I using the wrong type of Constraint for this?

One more question: I’m using a Relations Constraint to animate the character’s tail, and it looks fantastic. I would like to add ground collision though and I’m not sure how to do that. Just to see what happens, I tried adding an IK Constraint to this setup which has the option to add the ground. This sort of works but not exactly, and I know what I did is just a hack. Does anybody have tips and information on how to set up ground detection for joints using the Relations Constraint?

Thanks in advance for any helpful information. (And please feel free to assume I know almost nothing, which is almost true.) :)



Greenlaw
Artist/Partner - Little Green Dog | Senior Digital Artist - Rhythm & Hues Studios
Brudders - Episode 54 ‘Star Snores’ | Hello Frankenstein

Replies: 1
/userdata/avatar/3m6bp8ghq.png

Actually, the IK Constraint setup I have on the Neck-head-Lips to Harmonica isn’t really working that well. The Neck joint to be rotating with the IK but the head is not...in other words, the Lips null is not reaching for the Lips Target null on the harmonica. My Aim constraint for the head is completely disabled so I know that’s not influencing the IK Constraint.

Puzzled.

G.

Author: Greenlaw

Replied: 29 June 2011 07:52 AM  
avatar
  • Greenlaw
  • Posted: 29 June 2011 08:00 AM

Okay, maybe I have the Reach T/R for the Head effector the Control Rig keyed incorrectly. Will post again once I’m sure.

G.



Greenlaw
Artist/Partner - Little Green Dog | Senior Digital Artist - Rhythm & Hues Studios
Brudders - Episode 54 ‘Star Snores’ | Hello Frankenstein

Replies: 0
avatar
  • Greenlaw
  • Posted: 29 June 2011 08:31 AM

Hmm. Might have to drop using IK Constraint for the head, at least the way I have it implemented, because the head actually seems to ‘follow’ the harmonica better without the constraint.

But without a setup like this, the head and neck motions will need manually keyframed tweaks throughout to keep the lips ‘locked’ on the harmonica. (Remember, the original mocap does not have head or neck motions, so it’s really not following the harmonica at all.) I really want to avoid doing this if possible so I’m still looking for suggestions if anybody has one. Thanks!

G.



Greenlaw
Artist/Partner - Little Green Dog | Senior Digital Artist - Rhythm & Hues Studios
Brudders - Episode 54 ‘Star Snores’ | Hello Frankenstein

Replies: 6
/userdata/avatar/3m6bp8ghq.png

One more clue: I still have the IK Constraint applied and I found that if I move the head effector, the Lips will snap to the Lips Target. As soon as I step to the next frame, this head/lips will move off again. But if I drag the head effector again, the lips snap back to the harmonica.

So, I’m getting a little closer. I just need to get the rig to do this behavior automatically but I’m at a loss about what to do next. Help!

G.

Author: Greenlaw

Replied: 29 June 2011 08:43 AM  
/userdata/avatar/3m6bp8ghq.png

deleted

Author: Greenlaw

Replied: 29 June 2011 01:26 PM  
/userdata/avatar/3m6bp8ghq.png

deleted

Author: Greenlaw

Replied: 29 June 2011 09:44 PM  
/userdata/avatar/3m6bp8ghq.png

Okay, I did some simple tests and now I’m wondering if I should be applying my constraints to the base joints instead of the control effectors.

Even though I feel like I’m talking to myself here, I’ll continue posting my progress. Maybe this info will be helpful to another new Motion Builder user.

Be back again after a few more tests. Any clarification or tips from more experienced users is still welcome, and thanks in advance for any assistance.

G.

Author: Greenlaw

Replied: 30 June 2011 08:40 AM  
/userdata/avatar/3m6bp8ghq.png

Okay, a step closer now. I tried doing a similar set up in my primary 3D program and found that if I set the base of the IK chain to the chest instead of the neck, the lips were able to reach the harmonica and stay ‘stuck’. I haven’t tried this in MB yet but I imagine this will solve the problem.

If this works, the only thing I need to know is how to exclude two of the rotational axes from the IK chain. Basically, I want the head to move up and down with the harmonica but not slide side-to-side across the harmonica. Is it possible to exclude rotational axes from the IK Chain Constraint? Or should I be looking at something more advanced (i.e., the Relations Constraint)?

Also, since yesterday I keep getting ‘Internal Error’ errors when trying to reply to this thread with a new comment. In other words, I’m only able to reply to previous Comments (like this one,) but not make new Comments. Anybody else having this problem?

Author: Greenlaw

Replied: 01 July 2011 11:51 PM  
/userdata/avatar/3m6bp8ghq.png

I finally gave up trying to get the ‘Lips to Harmonica’ constraint to work in Motion Builder and wound up adding this final constraint in my destination package, which took less that five minutes to set up there. I really like the constraint options in MB and hoped to use them all the way through, but at this stage I just have to move on.

Anyway, you can see the result of the ‘Lips to Harmonica’ IK/FK blend in the YouTube link below.

http://bit.ly/SgtMocap

G.

Author: Greenlaw

Replied: 07 July 2011 04:28 AM