PDA

View Full Version : Question about morph limits (newbie)


kukac
09-21-2006, 03:23 PM
Hi 2 all,
problem is in setup limits on morphs in basic UI.When I define morph targets on my UI how may i put limits for morph targets?For example in spot B i have jaw a little open and moved in left and in spot A Mouth open, and then in C i get some really big open in lef jaw what I really dont want!
http://i12.photobucket.com/albums/a214/borisha/sabiranje.jpg
I put pic because my english is not so good to explain the problem!:) sorry about that!:) In stop staring that is call clamp!Im am working in max and book is based on maya!
Help!!!
Thanks
kukac

eek
09-21-2006, 04:40 PM
Morphs are essentially vertex deltas, in space that move linearly using standard formulas like

p0+(p0-p1)*t or (1-t)*p0+ t*p1

p0 and p1 being your vectors and t a value being [0,1] this being 1st order. Quadratic being 2nd and cubic/bezer 3rd order. This is important to know because, its all about interpolation of arbitary values.

When you hit a position of c, you additively adding b and c together. A and B being a delta from the origin so for example.

a = 0 - 50
b = 0 - 60

when you hit c, a maybe at 30 and b at 20 so you have combined deltas. There are ways to fix this, but it involves vector transforms, to essentially back transform vector position to get the desired result know as "combination morphs' You build a morph (delta), that when laid ontop of two other combined morphs fixes the result.

Now this is a little tricky as you can either model it by hand, or devise a script that handles the math. What your doing is adding up both the poses, devising the pose you want and generating the "combination' morph. This combination can look completely mashed, but in combination with the other two fixes the morphs.

You need to write some expressions that take into account the min/max values of the combination like:

If (min(a,b)>max(a,b) then min(a,b)+cf else 0 ) something like that.

Btw it gets very complicated, when you start having more and more blends, for 2 morphs you need say 1. for 3 you need 6.. for say 6 you need a possible 35 combinations..


clamp exists in max its called 'limit' and its a controller.

CGTalk Moderation
09-21-2006, 04:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.