Jump to content

Animations in GMF


Clackdor
 Share

Recommended Posts

Are animations embedded in GMF files? The answer appears to be yes.

 

How would I extract the animations from one GMF to use in another? I bought 1 character from DexSoft and I want to apply the animations to the free peasant model they offer as part of an exercise where I'm playing with attaching armor, weapons, hair, etc. Hoping to create several unique characters out of two, something Dexsoft seems to encourage, reading their FAQ.

 

I suspect that I'll get told that what I want to do is made a lot easier with Ultimate Unwrap3D, which is totally fine. It's on my shopping list.

Link to comment
Share on other sites

OK, next question. I'm trying to add attach models to bones, and the animation tutorial gives this piece of code:

 

TEntity head=FindChild(mesh,"Bip01 Head");

 

However, that code fails to load anything into "head". Tried count children on the body mesh and it came back with 1. Guess its not counting all the bones as children.

 

Please help. FWIW, this is a mesh bought from Dexsoft. It had gmf files in the download so I haven't converted anything.

Link to comment
Share on other sites

But wouldn't CountChildren() count all the limbs regardless of name? Getting 1 as a result is the confusing thing for me.

 

I thought so too, but it turns out CountChildren() returns just the number of immediate children of the bone (not the whole hierarchy) ..

   my models hierarchy is:
	 Bip01 
	    |
	Bip01_Pelvis
	    |
	Bip01_Spine
	    |
Bip01_Spine1 | Bip01_L_Thigh | Bip01_R_Thigh
...
CountChildren( FindChild( model,"Bip01" )); // returns 1
CountChildren( FindChild( model,"Bip01_Spine" )); // returns 3
CountChildren( GetChild( GetChild( FindChild( model,"Bip01" ), 1), 1)); // returns 3 (same as above)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...