[PD] GEM local transform

patrice colet colet.patrice at free.fr
Wed Jan 7 11:34:32 CET 2015


That trick exactly answer the question,
many thanks.

Le 07/01/2015 09:50, Cyrille Henry a écrit :
> hello,
>
> i hope i understand the question.
>
> one of my trick is using is the gemlist_info object to collect it's 
> rotation.
>
> see attachment,
>
> cheers
> c
>
>
>
>
> Le 07/01/2015 00:02, patrice colet a écrit :
>>
>> Le 06/01/2015 21:30, IOhannes m zmölnig a écrit :
>>> On 01/06/2015 09:12 PM, patrice colet wrote:
>>>> Hello,
>>>>
>>>>   is there a simple way in Gem to rotate an object locally,
>>>> or in other words is it possible to rotate an object on z axis, and 
>>>> then
>>>> rotate on the new x axis given by z axis rotation?
>>>>
>>>> I believe it would be possible to do that with some matrix magicks but
>>>> it looks complicated to me, maybe there are examples somewhere?
>>> i'm sure i misunderstand the question, as the answer i find is rather
>>> simple (all transformations in Gem are always on the local coordinate
>>> system)
>>
>> It's not easy to explain indeed, let's take a square object for example,
>> when no transformation has been given to the square,
>>   [rotate 45 1 0 0] will rotate the square around the line at the 
>> center of the square height.
>>
>>   By adding [rotate 45 0 0 1], [rotate 45 1 0 0] won't rotate anymore 
>> on square's x axis,
>> but on some axis given by the original object's coordinates,
>> in our example the new square's x rotating axis
>> is the line defined by opposite corners of the square.
>>
>> I'd like to find a way to always rotate the object on it's own axis,
>>   and not the axis defined by the object's original orientation,
>> 'local transform' are not really the good words for that,
>> but didn't found another ones
>>
>>
>>> |
>>> [rotate 12 0 0 1]
>>> |
>>> [rotate 42 1 0 0 ]
>>> |
>>>
>>> or even:
>>> |
>>> [rotateXYZ 0 0 12]
>>> |
>>> [rotateXYZ 42 0 0]
>>> |
>>
>> cumulating rotate object gives same result as using a single rotate 
>> object,
>>
>> thanks for the help
>>
>>> fgmsadr
>>> IOhannes
>>>
>>>
>>>
>>> _______________________________________________
>>> Pd-list at lists.iem.at  mailing list
>>> UNSUBSCRIBE and account-management 
>>> ->http://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> http://lists.puredata.info/listinfo/pd-list
>>




More information about the Pd-list mailing list