Adding bones

If you have problems understanding something or getting started, ask here

Moderator: joepal

Adding bones

Postby BernieRoehl » Fri Sep 02, 2011 12:35 pm

I'm currently exporting from MH to Unity via Collada.

I would like to add some additional bones for facial animation (mouth, eyebrows, cheeks) similar to what is there now for the eyelids.

I've tried modifying game.rig, adding new locations, bones and vertex weights. I'm computing the vertex weights based on the magnitudes of the displacements in the microdetails targets (in some cases, selecting subsets of those targets) and computing locations by selecting the vertices from the targets that have the maximum displacements.

I'm getting mixed results. Some bones and vertex groups are perfect, others are way off.

I've tried debugging it by exporting to MHX using the game rig and bringing it into Blender. The vertex groups are there, but they're not where I would expect. The bones are in strange places too. I've also tried getting the vertex numbers in Blender and using them to specify the locations for the bones, but even then the results are only correct some of the time and way off the rest of the time.

Am I missing something?
BernieRoehl
 
Posts: 5
Joined: Fri Sep 02, 2011 11:58 am

Re: Adding bones

Postby ThomasL » Sun Sep 04, 2011 5:31 am

ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Adding bones

Postby BernieRoehl » Sun Sep 04, 2011 12:22 pm

The documentation is exactly what I was looking for! No idea how I missed seeing it the first time, but thanks for the link.

I had figured out some of it by reading read_rig.py, but I didn't know about the joint diamonds. That probably explains why some of my vertex indices were off.

Thanks again -- much appreciated!
BernieRoehl
 
Posts: 5
Joined: Fri Sep 02, 2011 11:58 am

Re: Adding bones

Postby ThomasL » Sun Sep 04, 2011 2:05 pm

BernieRoehl wrote: No idea how I missed seeing it the first time, but thanks for the link.

You missed it because I just wrote it as a response to your post.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am


Return to Newbies

Who is online

Users browsing this forum: No registered users and 3 guests