I have been looking for this answer for a while now. In Gem, is there a way to get the absolute position of a geo after its been rotated, moved, rotated again, etc...? For example:
[gemhead] | [translateXYZ 0 1 0] | [rotateXYZ 0 0 90] | [translateXYZ 1 0 0] | [circle 0.1] | [absolute position]
Any workaround or the likes? It would need this information to feed it to pmpd. Thanks, Alain
gemlist_info will give you the current transformation matrix.
On 5/9/07, nosehair911@bellsouth.net nosehair911@bellsouth.net wrote:
I have been looking for this answer for a while now. In Gem, is there a way to get the absolute position of a geo after its been rotated, moved, rotated again, etc...? For example:
[gemhead] | [translateXYZ 0 1 0] | [rotateXYZ 0 0 90] | [translateXYZ 1 0 0] | [circle 0.1] | [absolute position]
Any workaround or the likes? It would need this information to feed it to pmpd. Thanks, Alain
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
oh god.... i should have really asked that question much earlier. much effort wasn't necessary at all........ i didn't know, that it could be so easy. but nevermind, at least i hopefully learned something while making the vector_abstractions....
thank you, chris, for that (important) hint.
roman
On Wed, 2007-05-09 at 08:48 -0500, chris clepper wrote:
gemlist_info will give you the current transformation matrix.
On 5/9/07, nosehair911@bellsouth.net nosehair911@bellsouth.net wrote: I have been looking for this answer for a while now. In Gem, is there a way to get the absolute position of a geo after its been rotated, moved, rotated again, etc...? For example:
[gemhead] | [translateXYZ 0 1 0] | [rotateXYZ 0 0 90] | [translateXYZ 1 0 0] | [circle 0.1] | [absolute position] Any workaround or the likes? It would need this information to feed it to pmpd. Thanks, Alain _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
hi alain
because of the same problem, i wrote a small collection of vector processing abstractions. instead of using several [translateXYZ] and [rotateXYZ] objects in one chain, i decided to only use one [translateXYZ] for the position of the geo and one [rotatateXYZ] for its orientation. for calculating the the positions and orientations, i used the abstractions, i mentioned above. it seems awkard to have to compute all that stuff yourself, since there are object, that should make life easier, but i din't find any better way to overcome that problem yet.
you can find the abstractions here: http://www.romanhaefeli.net/software/pd/vector_abs.tar.gz
On Wed, 2007-05-09 at 09:25 -0400, nosehair911@bellsouth.net wrote:
I have been looking for this answer for a while now. In Gem, is there a way to get the absolute position of a geo after its been rotated, moved, rotated again, etc...? For example:
[gemhead] | [translateXYZ 0 1 0] | [rotateXYZ 0 0 90] | [translateXYZ 1 0 0] | [circle 0.1] | [absolute position]
i think, it would also be cool to not only know the position, but also its orientation. further would it be usefull to have some angel-to-vector conversion, so that an orientation given in angles would be outputted as the three vectors rotated by these angles.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de