This is related to my other question but I thought the kinect aspect might put some people off looking at it so here is a non kinect version!
I’ve attached a very simple patch (different to the last patch :) explaining the issue.
It’s to do with calculating angles between positions. I’m using the technique of subtracting two vectors and then using a polar node to work out the angle between the two positions.
This works great apart from at certain points the angle will unexpectedly flip 180 degrees in one axis!
The patch shows this happening and what it is I’m trying to achieve with it.
maybe i have time tommorow to look into it again…but i guess its something similar to my first approach. switching values according to the output…if positive or negative.
well it’s clear why yaw flips 180 degrees… your “trajectory” is crossing through the pole of the spherical coordinate system. Imagine if you stand around, pointing your arm at an airplane. If it passes directly overhead, at one point you have to quickly spin around to be able to follow it.
If you can, rotate the coordinate system in such a way that you never pass through the pole. If that’s impossible, welcome to the madness of quaternions!
edit: or, you could connect the subtracted yaw values to the Rotate’s X, not Y pin! this looks correct, no?
Hmmmm, when I multiplied the Yaw rotation by -1 your fix seemed to work (the bone was rotating the wrong way once I moved it in the other axis)
but it seems to break when I move the parent joint also (the red box. try gently changing the value from zero in the 3rd index of the IObox in the top left corner of the window) You can see the same thing happening where it’s crossing through the pole.
Grrrr. Is this a job for quaternions then? or do I need to just position the pole in the place least likely to cause trouble?..
hi mrboni, xd
about skeleton nodes, first thing they seems pretty fine.
had 2-3 test character rigs with 3dsmax and appeared that opencollada max plugin have a bug, with exporting character rigs, to test try to import astroboy_walk.dae back to 3dsmax so it’s better if someone with blender knowledge can post some character with rig to test.
I’m using now model from character animation workshop called guy.x with humanoid skeleton.
my current rig for you guys to check how we going to survive with that ;]