Jump to content
  • Advertisement
Sign in to follow this  
ankhd

Link Constraints not Exporting key frames correct in .X files

This topic is 1935 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 all its been a year or more since the last time I used 3dsmax 9 to export a mesh with a weapon.

The problem Im having is when I use a link constraint connected to a bone I set for the gun to the bipped hand it links fine

in 3ds max and follows the hand well but when I export it to .x file using panda the gun sort of follow the hand but starts to swing away from the hand when the spine rotates.

 

Ive rebuilt the rig at least 10 times tryed every thing even built the mesh(unit) again just in case the animation was not the same as the guns.

same problem.

 

Ive tryed setting key frame for the whole animation. same out of synk play back when the gun  and unit are saved by them selfs.

 

Is there somet thing I need to do with the link to get it to follow all motion of the bip.

 

if I use the same rig for the gun that I do with the unit it is in synk but that uses 22 bone as the gun should only need 2 bones.

 

I use the trajectorie Collapse Transform to generate Keys for the gun animation.

Share this post


Link to post
Share on other sites
Advertisement

What are you using to preview the exported result? IIRC Panda does not have a viewer.

Do you really need to export the gun's animation? If you're using Link constraint, you simply want the gun to follow the hand.

You could export the animated character, and then export the gun centered at the world's origin in a separate file as a static mesh. In your game engine, attach (or Parent) the gun to the hand. This way it's the engine that's doing the "Link Constraint", not 3DS Max.

 

If you DO need the gun animated in the file...

Before you animate the gun at all, make sure you cleaned its transform. A dirty transform would have negative scales etc. 3DS Max compensates for irregular transforms and the engine you're using to load the animation probably isn't liking that.

To clean the transform, select the gun, go to the Utilities tab -> Reset XForm. Make sure the gun's pivot isn't lost somewhere.

Then you can proceed to use the Link Constraint or baking the transform into keys (the latter is the safest route and I'm surprised it's not working).

Edited by Kryzon

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!