Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Biped different behavior in max and unity

Discussion in 'Editor & General Support' started by spun, Jan 31, 2012.

  1. spun

    spun

    Joined:
    Jan 31, 2012
    Posts:
    2
    Hi all,

    I'm working with avatars in Unity and I found a wired behavior. When I open the avatar .max file in 3D studio Max 2011, I can move the bones separately, I mean, the Bip (root bone) rotates the whole avatar, then the Spine ( son of the Bip ) moves only the Upper body of the avatar, then the Spine1 only a bit upper and so on.

    The problem starts when I import the same .max file into Unity. For the Bip and the Spine1 the behavior is the same as is in Max but then, when i rotate the Spine, the whole avatar rotates but keeps fixed the Bip, so the mesh gets deformed in a bad way.

    Please see the attached images to better understand what I mean. Sorry, I'm a programmer, not an artist so maybe the problem is easily fixable. the first image is the avatar in unity without any rotation, the secon one, rotating the Spine and the third one, in Max, rotating the Spine ( this one is the good behavior should happen )

    $unity.jpg

    thanks in advance.
     
  2. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    There are Biped settings called, I think, Triangle Pelvis and Triangle Neck.

    These define how the bones are parented to each other inside of Max and can give unforseen results when exported to the game. Try enabling (or disabling - toggle it to whatever it's not) the pelvis one try re-exporting?
     
  3. spun

    spun

    Joined:
    Jan 31, 2012
    Posts:
    2

    Thanks Farfarer, seems to work fine now. I'm going to try the code now. thanks again :)
     
  4. dogzerx2

    dogzerx2

    Joined:
    Dec 27, 2009
    Posts:
    3,960
    OH MAN...... I wish I had known about this ages ago!! Thanks for the tip!
     
  5. MikeErty

    MikeErty

    Joined:
    Feb 24, 2013
    Posts:
    19
    This helped me too, it fixed the legs but I'ms till having problems with the spine, gah! Thanks though, useful stuff :)
     
  6. sdf

    sdf

    Joined:
    Sep 6, 2012
    Posts:
    13
    upper leg 's parent is hip in unity3d but in 3dsmax biped it is spine not Pelvis
    sorry i'm poor at english :)