Jump to content
  • Advertisement
Sign in to follow this  
htz92127

About 3dMax export Skeleton

This topic is 2094 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

I use IGame to export the skeleton, but have some questions. I want to calculate the binding position with the skeleton. The function with

 

IGameSkin->GetInitBoneTM(IGameNode * boneNode, GMatrix &intMat)

 

can get the bone TM when skin was added. But it will return false the the param is root bone. There is another function 

 

GetInitSkinTM(GMatrix & intMat)

 

in IGameSkin. But it always return a Identity matrix. So how can I get the binding position with root bone?

Share this post


Link to post
Share on other sites
Advertisement

I use IGame to export the skeleton, but have some questions. I want to calculate the binding position with the skeleton. The function with

 

IGameSkin->GetInitBoneTM(IGameNode * boneNode, GMatrix &intMat)

 

can get the bone TM when skin was added. But it will return false the the param is root bone. There is another function 

 

GetInitSkinTM(GMatrix & intMat)

 

in IGameSkin. But it always return a Identity matrix. So how can I get the binding position with root bone?

 

If GetInitBoneTM() returns false, then it suggests that the bone is not actually used by the skinned mesh.

 

The GetInitSkinTM() function returns the transform that was applied to the skin geometry at the time that it was bound to the skeleton, and not the transform of any particular bone.

 

If you'd like to see an example of skin/skeleton exporting from Max (but without using the IGame interface), take a look at the source for the OpenGEX exporter:

 

http://opengex.org/

 

The skin and bone bind transforms are exported at the top of the OpenGexExport::ExportSkin() function.

Share this post


Link to post
Share on other sites

Actually, there is no vertex effected by the bone. But it is root bone. is this be defined no use? if so. how can I calculate the root bone's transform?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!