Forums > Jitter

Rotatexyz to rotate W X Y Z , jit.ogre use

March 29, 2011 | 4:06 pm

Would it be possible to transform rotatexyz transform into rotate(W, X, Y, Z)transform ?
I’d likde to use coordinates from artoolkit with jit.ogre, which doesn’t accept roatexyz…
thank you.


March 29, 2011 | 4:37 pm

If you could post a patch that would be beneficial. One thing I can suggest is the Quat library from Graham Wakefield (also included with the Cosm objects installer). You can transform [axis2quat] then [quat2euler] to give you xyz, then I think you can go [euler2quat] and [quat2axis]. If I’m not mistaken though, you can also transform jit.ogre using which will accept rotatexyz.

I’ve been hoping Rob will be able to provide a solution to allow the object to integrate more efficiently with jit.artkmulti. Or perhaps someone else will come up with a good workaround.

Hope this helps!

July 22, 2011 | 7:43 am

what i found out two days ago is that the object converts the rotatxyz values into the values for rotate.
so you can put in rotatexyz, then send the ‘getrotate’ message and voila
not sure if this is efficient or whatever, but it works

July 24, 2011 | 4:03 pm

You know, I think you might have just inadvertently solved an issue I’d been having… Will report back if it works.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter