Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Bunnz

Exporting skeleton from Maya

This topic is 5582 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I have created an exporter plugin for maya which exports the mesh in the binding pos and the skeleton for all frames. The mesh exporter works, but i wasn't able to export the correct matrices for the joints. Has anyone experience with exporting joints from maya? Thanks for your help! Currently do it that way:
    
   // get joints

    // iterate over all skin clusters in DG

    MSpace::Space space = MSpace::kWorld;
    MItDependencyNodes itNodes(MFn::kSkinClusterFilter);
    for( /**/; !itNodes.isDone(); itNodes.next()) {
      MFnSkinCluster fnSkin(itNodes.item());

      // get all influence objects for skin cluster

      MDagPathArray infObjArray;
      fnSkin.influenceObjects(infObjArray, &stat);
      for (unsigned int iInfluence=0; iInfluence<infObjArray.length(); iInfluence++) {
        // get bones

        float m[4][4];
        infObjArray[iInfluence].inclusiveMatrix().get(m);
          exporters->addJoint(infObjArray[iInfluence].partialPathName().asChar(), Matrix4(&m[0][0]));
      }
    
Have fun Bunnz [edited by - Bunnz on May 4, 2003 6:25:24 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!