[PD] GEM/math: correctly rotating in space

cyrille henry cyrille.henry at la-kitchen.fr
Sun Oct 16 14:54:42 CEST 2005


hello,

your right, tLink3D does not do this, as i thought.
i should fix it....
tLink2D does, but it's easy.

i've got an other patch that is doing this (with only 1 moving point : 
changing to your nead will be easy i think)


hope it will halp.

Cyrille



Frank Barknecht a écrit :
> Hallo,
> cyrille henry hat gesagt: // cyrille henry wrote:
> 
> 
>>maybee you can have a look at the tLink3D object of the pmpd lib.
>>
>>just send position of your 2 points on the 2 inlets, you'll have the 
>>orientation output in a gem compatible way.
> 
> 
> Using tLink3D surly will make the computatons more effective, however
> calculating the vector between to points and its length (as tLink
> does) is not my real problem, the problem is more, how to correctly
> use this information to draw correct rotations in Gem. 
> 
> In 2D (polar coordinates) this is simple, but I still haven't found a
> way to add the missing rotation to go from polar/cartesian to
> spherical coordinates.
> 
> Ciao
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cart2sph.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20051016/eee7e0e1/attachment.txt>


More information about the Pd-list mailing list