I haven’t been able to work this one out. How do I rotate a matrix with XYZ position data with an angle-axis vector (a,x,y,z) as input? Is there an external that does this?

Tanx, D.

]]>http://content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation

]]>there are max 6 native versions of the quaternion objects.

jit.quat

jit.quat2euler

jit.euler2quat

jit.quat2axis

jit.axis2quat

if your matrix of vertices came from an jit.gl object in matrixoutput mode, you can apply a rotation to the object itself and use @matrixoutput 2, to output the transformed vertices.

but otherwise, you should be able to construct a gen patch that takes a quaternion as a parameter, and transforms the vertices appropriately.

]]>> if your matrix of vertices came from an jit.gl object in matrixoutput mode, you can apply a rotation to the object itself and use @matrixoutput 2, to output the transformed vertices.

I know but this is exactly to work around the lack of matrixoutput in jit.gl.mesh…

]]>jit.gen ? ]]>

all forces with you!

on my side, playing with quaternions.. I’ll post my stuff soon

]]>