Results 1 to 10 of 10

Thread: How to mix MDD

  1. #1
    Eat your peas. Greenlaw's Avatar
    Join Date
    Jul 2003
    Location
    Los Angeles
    Posts
    7,136

    How to mix MDD

    Hi,

    Can somebody please show me how to mix .mdd files? Specifically, I need to replace frame 0 of a character .mdd with a T-Pose.

    I have made an .mdd file of the character in T-Pose, and I have that file and the animation .mdd file loaded in the Node Editor but I haven't a clue what to do next. Just to be clear, I need to replace only frame 0 with the T-Pose and then have the rest of the animation be the animation.

    Can anybody help me out? Thanks in advance for any assistance.

    Best,

    Greenlaw

  2. #2

  3. #3
    My solution would be:

    -load 2 objects... the t-posed model and the MDD-animation model

    -100% dissolve MDD animation at frame 0, and 0% dissolve at frame 1+

    -0% dissolve t-posed at frame 0, and 100% dissolve at frame 1+
    Professional-level 3d training: Ryan's Lightwave Learning
    Plugin Developer: RR Tools for Lightwave

  4. #4
    Eat your peas. Greenlaw's Avatar
    Join Date
    Jul 2003
    Location
    Los Angeles
    Posts
    7,136
    Thanks for the tip.

    What I need has to be a single object though...it's necessary for some dynamics and hair stuff I'm doing here. I thought I had something working by mixing a T-Pose MDD with Motion MDD in a test, but for some reason this isn't working as expected in an actual shot.

    It sounds like now I might be getting MDDs with the T-Pose baked in, so I might have lucked out.

    G.

  5. #5
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,891
    Final vector = current position + offset (delta)

    So

    final vector 1 = current position + mdd1 delta
    final vector 2 = current position + mdd2 delta

    mixing vector can be done with Tools > Mixer

    final vector = final vector 1 * opacity + final vector 2 * ( 1.0 - opacity )

    but you need just 0 and 1

    so

    delta = mdd1 delta * 1 + mdd2 delta * 0
    delta = mdd1 delta * 0 + mdd2 delta * 1

    will be fine..

  6. #6
    Red Mage Celshader's Avatar
    Join Date
    Feb 2003
    Location
    Burbank, California
    Posts
    1,817
    Quote Originally Posted by Greenlaw View Post
    Hi,

    Can somebody please show me how to mix .mdd files? Specifically, I need to replace frame 0 of a character .mdd with a T-Pose.

    I have made an .mdd file of the character in T-Pose, and I have that file and the animation .mdd file loaded in the Node Editor but I haven't a clue what to do next. Just to be clear, I need to replace only frame 0 with the T-Pose and then have the rest of the animation be the animation.

    Can anybody help me out? Thanks in advance for any assistance.

    Best,

    Greenlaw
    You can thank the brilliant Ken Nign for the following Node Editor hack to mix MDD files.

    1. In the Node Displacement Editor, load the mdd files using the MDD Displacement node.
    2. Add a Gradient node and make keys on this gradient node.
    3. For each of the keys, activate "Show Output" to reveal their color channel inputs on the left side of the Gradient node.
    4. Plug the MDDs into the Color channel inputs on the left side of the Gradient node. The "colors" are now overwritten with MDD data.
    5. Add a Constant Scalar node and plug it into the Input of the Gradient node. Envelope this value to envelope the transition between the MDDs.
    Jen's 3D -- LightWave stuff.
    Jen's 2D -- my comic book.

    Python is my smashing board. LightWave is my S.M.A.K.

  7. #7
    Red Mage Celshader's Avatar
    Join Date
    Feb 2003
    Location
    Burbank, California
    Posts
    1,817

    For a super cheapie hack...

    Quote Originally Posted by Greenlaw View Post
    Just to be clear, I need to replace only frame 0 with the T-Pose and then have the rest of the animation be the animation.
    For a super cheapie hack, plug the MDD into the blue of Vector Scale and envelope the Scale value from 0 to 1 (with Stepped behavior) on frames 0 and 1. Plug the results into the Displacement node.

    That way the MDD is multiplied by 0 at frame 0, and 1 at frame 1-onwards. Anything times 0 equals 0, while anything times 1 equals itself.
    Jen's 3D -- LightWave stuff.
    Jen's 2D -- my comic book.

    Python is my smashing board. LightWave is my S.M.A.K.

  8. #8
    Eat your peas. Greenlaw's Avatar
    Join Date
    Jul 2003
    Location
    Los Angeles
    Posts
    7,136
    Thank you very much guys!

    It sounds like I might not get all the new MDDs with the baked in T-Pose as quickly as I'd like to have them (which is immediately) so this info will help get me started until the data starts coming in.

    Ugh...what a stressful days I've been having lately. Thankfully, the friendly help of the LW community is making it more bearable.

    G.

  9. #9
    Goes bump in the night RebelHill's Avatar
    Join Date
    Nov 2003
    Location
    jersey
    Posts
    5,766
    You can just use a plain ol mixer node and just animate the opacity value.
    LSR Surface and Rendering Tuts.
    RHiggit Rigging and Animation Tools
    RHA Animation Tutorials
    RHR Rigging Tutorials
    RHN Nodal Tutorials
    YT Vids Tuts for all

  10. #10
    Eat your peas. Greenlaw's Avatar
    Join Date
    Jul 2003
    Location
    Los Angeles
    Posts
    7,136
    I had a moment of clarity last night and wound up doing exactly that. Felt kinda dumb that I didn't think of it earlier but happy it worked.

    But still thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •