I've created a tool that converts old-style json poses to new-style vap poses together with recentering of the model. It works fine in most cases, but there are some weird behaviours and some poses that don't work completely.
So what I am doing now is setting rootPosition for hip to some default values from T-pose:
rootPos.addProperty("x",0)
rootPos.addProperty("y",1.040002)
rootPos.addProperty("z",-0.007056972)
I also move hipControl localPosition to:
localPosition.addProperty("x", 0.0f)
localPosition.addProperty("y", 1.058647f)
localPosition.addProperty("z", -0.002956565f)
And move all other controls by exactly the same vector I moved hipControl.
My questions:
1. What is "relativeRootPosition" for hip? I set it also to default value from T-pose...
2. When loading such converted model it springs to its final position after about 1-2 seconds, sometimes it looks like it is dropping slightly from above - probably the hip is pulled to some position, but which one of these three?
3. And finally there are very few poses that are converted completely limp - they hang flaccid by the hip! Why could this happen if it works for any other pose?!
So what I am doing now is setting rootPosition for hip to some default values from T-pose:
rootPos.addProperty("x",0)
rootPos.addProperty("y",1.040002)
rootPos.addProperty("z",-0.007056972)
I also move hipControl localPosition to:
localPosition.addProperty("x", 0.0f)
localPosition.addProperty("y", 1.058647f)
localPosition.addProperty("z", -0.002956565f)
And move all other controls by exactly the same vector I moved hipControl.
My questions:
1. What is "relativeRootPosition" for hip? I set it also to default value from T-pose...
2. When loading such converted model it springs to its final position after about 1-2 seconds, sometimes it looks like it is dropping slightly from above - probably the hip is pulled to some position, but which one of these three?
3. And finally there are very few poses that are converted completely limp - they hang flaccid by the hip! Why could this happen if it works for any other pose?!