is anyone ever going to fix this?

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

is anyone ever going to fix this?

Postby bigmac » Mon Apr 04, 2016 11:53 am

Bug #947
User avatar
bigmac
 
Posts: 37
Joined: Tue Oct 22, 2013 11:56 pm
Location: United States

Re: is anyone ever going to fix this?

Postby duststorm » Mon Apr 04, 2016 12:26 pm

If Joel adds a rig section to the user contributed assets, we could upload the OpenSim rig that was latest in MakeHuman nightly there.
It's not completely perfect and has its problems, but it's the best there currently is.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: is anyone ever going to fix this?

Postby joepal » Fri Apr 08, 2016 2:51 pm

If Joel adds a rig section to the user contributed assets,


I've been holding off this until I was able to figure out how the mhskel export blender plugin works so I can write at least basic pointers on how to create assets for that repo. However, since I have so far not been able to import even the simplest armature as a skeleton in MH without getting a crash, I've got stuck at that point.

The rig looks like this (I named the bone "root") :

rig.png


The sum total of the generated mhskel file (after having edited the plane null values) :

Code: Select all
{
    "bones": {
        "Root": {
            "head": "Root____head",
            "parent": null,
            "reference": null,
            "rotation_plane": "Root____plane",
            "tail": "Root____tail"
        }
    },
    "copyright": "(c) Makehuman.org 2015",
    "description": "Armature skeleton",
    "joints": {
        "Root____head": [
            19150,
            19151,
            19152,
            19153,
            19154,
            19155,
            19156,
            19157
        ],
        "Root____tail": null
    },
    "license": "GNU Affero General Public License 3",
    "name": "Armature",
    "planes": {
        "Root____plane": [
            0,
            0,
            0
        ]
    },
    "version": 102,
    "weights_file": "simple_weights.mhw"
}


The latest crash I get is this:

Code: Select all
Traceback (most recent call last):
  File "./core/events3d.py", line 212, in callEvent
    method(event)
  File "plugins/3_libraries_skeleton/skeletonlibrary.py", line 130, in onFileSelected
    gui3d.app.do(SkeletonAction(msg, self, self.selectedRig, filename))
  File "./core/mhmain.py", line 857, in do
    if action.do():
  File "plugins/3_libraries_skeleton/skeletonlibrary.py", line 72, in do
    self.library.chooseSkeleton(self.after)
  File "plugins/3_libraries_skeleton/skeletonlibrary.py", line 207, in chooseSkeleton
    skel = skeleton.load(filename, self.human.meshData)
  File "./shared/skeleton.py", line 1448, in load
    skel.fromFile(filename, mesh)
  File "./shared/skeleton.py", line 135, in fromFile
    self.build()
  File "./shared/skeleton.py", line 525, in build
    bone.build(ref_skel)
  File "./shared/skeleton.py", line 849, in build
    normal = self.get_normal()
  File "./shared/skeleton.py", line 892, in get_normal
    normal = get_normal(self.skeleton, plane_name, self.planes)
  File "./shared/skeleton.py", line 1286, in get_normal
    p1 = skel.getJointPosition(j1, human)[:3] * skel.scale
  File "./shared/skeleton.py", line 429, in getJointPosition
    raise RuntimeError("Cannot get joint position, no reference vertices or joint name specified.")


... which is not the same as when having failed to edit the null values for planes.

But I guess I could open a rig repo anyway, with fields for mhskel, weights and thumbnail.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4625
Joined: Wed Jun 04, 2008 11:20 am

Re: is anyone ever going to fix this?

Postby duststorm » Mon Apr 11, 2016 1:14 pm

Code: Select all
"Root____plane": [
            0,
            0,
            0
        ]

This needs to be edited by hand, there is no GUI for it.

You need to replace the three 0's with three names of joints, defined under the section "joints" of your skeleton. Extra joints can be declared (by specifying a name and a set of verts) to add new reference points.
MH will draw a plane between those three points, and then rotate the roll of the bone so that its local y axis is parallel with the normal of the plane.

There's no immediate plans to build a GUI for this, so has to be done by hand using a text editor.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest