## ANN: Quaternion objects for max

May 23, 2007 at 8:30pm

# ANN: Quaternion objects for max

Hi all,

I’ve just uploaded a set of quaternion helper objects for Max. You

http://www.maxobjects.com/?v=libraries&id_library=111

OSX (UB) and Windows.

Enjoy!

Graham

-

Quaternion helper objects. Convert between quaternion, Euler,
cartesian and axis/angle representations.

quat
“Represent, store and transform a quaternion”
“The mul messsage, with a quaternion argument, rotates the stored
quaternion by the argument. bang outputs the stored value. reset sets
it to zero rotation. quat takes an optional int argument – how often
quaternions are normalized. Reduce to improve object efficiency, but
increase to avoid floating point error creeping into the angles.
Default every 30 operations.”

axis2quat
Convert an axis/angle rotation (e.g. the output of jit.gl.handle) to
quaternion

euler2quat
Convert Euler rotations (azimuth/elevation/tilt or heading/attitude/
bank or yaw/pitch/roll) to quaternion

quat2axis
Convert quaternion to axis/angle rotation (e.g. most jit.gl rotate
arguments)

quat2car
Select a unit vector in the quaternion rotation
quat2car returns a unit vector representing a principal axis of the
rotation, which can be useful to accumulate positions of moving
objects for example. Argument ‘x’, ‘y’, ‘z, ‘-x’, ‘-y’ or ‘-z’
specifies which axis is the ‘front’

quat2euler
Convert quaternion to Euler angles (azimuth/elevation/tilt or heading/
attitude/bank or yaw/pitch/roll). NOTE: there is a loss of
information in the conversion from quaternion to Euler angles. This
behaviour is matched by the original Shoemake algorithm.

quatpov
Rotate a cartesian point by a quaternion

#32056
May 23, 2007 at 9:10pm

Very nice …but no permission to download the file ..I’d love to test .
Cheers

#104862
May 24, 2007 at 1:47am

OK, sorry about the dl permissions, seems to be a general problem on
our server these days. You should be able to download them now.

Best,

Graham

On May 23, 2007, at 1:30 PM, Graham Wakefield wrote:

> Hi all,
>
> I’ve just uploaded a set of quaternion helper objects for Max. You
>
> http://www.maxobjects.com/?v=libraries&id_library=111
>
> OSX (UB) and Windows.
>
> Enjoy!
>
> Graham
>
> -
>
>
> Quaternion helper objects. Convert between quaternion, Euler,
> cartesian and axis/angle representations.
>
> quat
> “Represent, store and transform a quaternion”
> “The mul messsage, with a quaternion argument, rotates the stored
> quaternion by the argument. bang outputs the stored value. reset
> sets it to zero rotation. quat takes an optional int argument – how
> often quaternions are normalized. Reduce to improve object
> efficiency, but increase to avoid floating point error creeping
> into the angles. Default every 30 operations.”
>
> axis2quat
> Convert an axis/angle rotation (e.g. the output of jit.gl.handle)
> to quaternion
>
> euler2quat
> Convert Euler rotations (azimuth/elevation/tilt or heading/attitude/
> bank or yaw/pitch/roll) to quaternion
>
> quat2axis
> Convert quaternion to axis/angle rotation (e.g. most jit.gl rotate
> arguments)
>
> quat2car
> Select a unit vector in the quaternion rotation
> quat2car returns a unit vector representing a principal axis of the
> rotation, which can be useful to accumulate positions of moving
> objects for example. Argument ‘x’, ‘y’, ‘z, ‘-x’, ‘-y’ or ‘-z’
> specifies which axis is the ‘front’
>
> quat2euler
> Convert quaternion to Euler angles (azimuth/elevation/tilt or
> heading/attitude/bank or yaw/pitch/roll). NOTE: there is a loss of
> information in the conversion from quaternion to Euler angles. This
> behaviour is matched by the original Shoemake algorithm.
>
> quatpov
> Rotate a cartesian point by a

grrr waaa
http://www.grahamwakefield.net

#104863
May 24, 2007 at 1:47am

OK, sorry about the dl permissions, seems to be a general problem on
our server these days. You should be able to download them now.

Best,

Graham

On May 23, 2007, at 1:30 PM, Graham Wakefield wrote:

> Hi all,
>
> I’ve just uploaded a set of quaternion helper objects for Max. You
>
> http://www.maxobjects.com/?v=libraries&id_library=111
>
> OSX (UB) and Windows.
>
> Enjoy!
>
> Graham
>
> -
>
>
> Quaternion helper objects. Convert between quaternion, Euler,
> cartesian and axis/angle representations.
>
> quat
> “Represent, store and transform a quaternion”
> “The mul messsage, with a quaternion argument, rotates the stored
> quaternion by the argument. bang outputs the stored value. reset
> sets it to zero rotation. quat takes an optional int argument – how
> often quaternions are normalized. Reduce to improve object
> efficiency, but increase to avoid floating point error creeping
> into the angles. Default every 30 operations.”
>
> axis2quat
> Convert an axis/angle rotation (e.g. the output of jit.gl.handle)
> to quaternion
>
> euler2quat
> Convert Euler rotations (azimuth/elevation/tilt or heading/attitude/
> bank or yaw/pitch/roll) to quaternion
>
> quat2axis
> Convert quaternion to axis/angle rotation (e.g. most jit.gl rotate
> arguments)
>
> quat2car
> Select a unit vector in the quaternion rotation
> quat2car returns a unit vector representing a principal axis of the
> rotation, which can be useful to accumulate positions of moving
> objects for example. Argument ‘x’, ‘y’, ‘z, ‘-x’, ‘-y’ or ‘-z’
> specifies which axis is the ‘front’
>
> quat2euler
> Convert quaternion to Euler angles (azimuth/elevation/tilt or
> heading/attitude/bank or yaw/pitch/roll). NOTE: there is a loss of
> information in the conversion from quaternion to Euler angles. This
> behaviour is matched by the original Shoemake algorithm.
>
> quatpov
> Rotate a cartesian point by a
> jitter mailing list
> jitter@cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter

grrr waaa
http://www.grahamwakefield.net

#104864
Jul 16, 2007 at 10:46pm

I’ve just noticed this post – a bit slow I know, but it seems that permissions for the server are still denying access. Is there anywhere else that it can be downloaded from?

Thanks

#104865
Jul 26, 2007 at 7:20pm

Sorry – due to a change of policy at the ISP. Here’s the full address:

http://www.mat.ucsb.edu/~wakefield/soft/quat_release.zip

maxobjects.com should be updated now.

On Jul 16, 2007, at 3:46 PM, pelado wrote:

>
> I’ve just noticed this post – a bit slow I know, but it seems that
> permissions for the server are still denying access. Is there
>
> Thanks
>

grrr waaa
http://www.grahamwakefield.net

#104866
Jul 26, 2007 at 11:10pm

#104867
Jul 31, 2007 at 2:52pm

Hmmm… I’ve done nearly the same thing, except luckily slightly different. I have a set of quaternion objects for adding, multiplying, and converting to jit.gl.handle-type rotation messages, but I hadn’t released them yet because I hadn’t done the help files. So now I have, for the most part. They depend heavily on the Jitter quaternion and vector functions, so they are not technically open-source, but here they are with source code nonetheless:

http://lowfrequency.org/interactivity/wiki/index.php?title=Lfo_quaternion_objects

#104868
Jul 31, 2007 at 2:54pm

Oh no, I misread. We’ve done mostly the same thing, and you’ve even done a bit more. Oh well, it was a good programming exercise!

#104869

You must be logged in to reply to this topic.