[PD] 3D Look at

Roch Jub rochjub at gmail.com
Tue Jun 26 15:54:52 CEST 2012

Hey !

So I send a mail some time ago to the list and got no answer, so I guess it
was not really clear.

I come now with a more simple version of my problem.

I have two cubes,

cube A
translationXYZ 0 0 0
rotationXYZ 0 0 0

and cube B
translationXYZ 12 5 6
rotationXYZ 0 0 0

now I want to calculate with only thoses informations, the rotations in X Y
and Z for cube A to look at cube B. (numbers are irrelevent, I want to make
the algorythme)

I have tryed many things, with trigonometry, learned about Gimbal lock,
read everything I could about euler angles, etc ... result is it's not
working right.

I attached an exemple patch. The math inside are based on the help I got on
a math forum. It quite look like the thing I was trying to do but it
doesn"t work better :)

Anybody ? Any idea?


PS : I try to do that to calculate joint orientations of kinect skeleton.
and even though there might be other solutions(wich I be glad to know
about), now it's a personal affair, I WANT TO DO IT !!! 2 WEEKS I'VE BEEN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120626/0ef2d715/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookat.rar
Type: application/rar
Size: 1931 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120626/0ef2d715/attachment.rar>

More information about the Pd-list mailing list