dwarf rotation matrix

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
StinkyCat
Posts: 7
Joined: Thu Jun 28, 2012 12:03 pm

dwarf rotation matrix

Post by StinkyCat »

Hi all. I am trying to operate the dwarf's joints with the information i get from the kinect using openNI. The thing is that my joint's rotation data begins in a T pose and the dwarf doesn't. And it's revealing really frustrating to get the dwarf in a (PERFECT) T position, so I can relate to my angles... I couldn't find any info on the web, maybe someone could help me?
thks a lot! :)
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: dwarf rotation matrix

Post by mongoose7 »

Rotate the arms into the 'T'. Now apply the Kinect's rotations. In other words, prepend the rotation into the 'T' to the kinect's rotations.
StinkyCat
Posts: 7
Joined: Thu Jun 28, 2012 12:03 pm

Re: dwarf rotation matrix

Post by StinkyCat »

hello mongoose7. thks for your answer, but the problem is exactly that. I tried to get it to a T pose, but i will lose lots of time with that and in the end it will never be a perfect T pose. Because a small deviation in an angle from the shoulder might not be a problem to it, but when you move the elbow it will be completely off its normal T course, get it?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: dwarf rotation matrix

Post by mongoose7 »

I think you will have that problem with kinect in any case. But a rotation to the T pose and then to the required position combines to a rotation from the dwarf's initial position to the kinect's final position. So problems with the one will be reflected in the other.

If you are committed to the dwarf, you will have to solve it. By why the dwarf? Why not get a free Poser model (which comes already in the T pose) and manipulate that?
StinkyCat
Posts: 7
Joined: Thu Jun 28, 2012 12:03 pm

Re: dwarf rotation matrix

Post by StinkyCat »

You are totally right about it.
A model already in T position would be great, but since I just started working with irrlicht/3d models I'm really really noob:/ I think it has to be a rigged .x (has skeleton and can open in a text editor to get the joint names - correct me if i'm wrong!)
If you could point me in a direction I would be really appreciated.
thks!
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: dwarf rotation matrix

Post by mongoose7 »

I don't do modelling (I write a text file for the skeleton). But you should be able to take a model into Blender and add an armature. There are probably examples of this on the net. I guess you have to paint the vertices, too. Or just start with a stick figure and develop from there.
StinkyCat
Posts: 7
Joined: Thu Jun 28, 2012 12:03 pm

Re: dwarf rotation matrix

Post by StinkyCat »

ok thks, i'll see what i can do :)
Post Reply