CGTalk > Techniques > Character Rigging
Login register
reply share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-20-2014, 12:22 AM   #1
DarkPolygon
Explorer
portfolio
Prashant Verma
Cardiff, India
 
Join Date: Aug 2011
Posts: 20
how to automatically bend toe as foot reaches ground in maya? (video reference)

Mark Schneider Reel

This will take you to directly to 33 sec in video wherein Mark has created a foot in which the toe bends as the leg reaches the ground. I think he did it in Messiah studios? I'm not sure.
How to do something similar in Maya?
Clearly this kind of expression below doesn't works because maya evaluates expressions all the time rather than doing it only if the condition matches. :/

Code:
if(foot.ty<floor.ty) foot.ty=floor.ty;
 
Old 07-12-2014, 06:44 PM   #2
adeptus
Expert
portfolio
Stefan Ehrenhaus
London, United%2BKingdom
 
Join Date: Jul 2013
Posts: 214
First off, true that expression is useless as it is..
You could make the -if- statement more accurate by adding an else:

Also youll have to make foot something that controls the joints but is not the control itself...

Code:
if(foot.ty<floor.ty){ foot.ty=floor.ty; }else{ foot.ty=control.ty; }

Now think about this.. youll come to the conclusion that this method still is rubbish since it takes in only direct .ty connections rather than evaluating correctly the entire upstream hierarchy for all the involved nodes.
Youll have to do some proper maths here to accomplish what you are looking for. So either compare the world ty (via matrix decomposition or locator shape) of ground closest point and your colliding object. And switch translate inputs through a condition node.
Things will get tricker tho since pushing the foot straight down -y will not account for the length of your toes which will result in strange shifting of your joint. But it will take you a good piece of the way. The rest is down to some research about the proper trigonometric calculatins and correct implementation into maya nodes..

Good luck
 
reply share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:06 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.