Jit.gl.render question

coda's icon

Hi, in the jit.gl.render help file there's a sub patch called "viewing transforms" if you open the sub patch you can see there are various camera controls.

One of these (pak rotate) doesn't seem to work, I've been trying to find a way of controlling these exact same "rotate" values in jit.gl.render for nearly a week, why wont they work is this a bug? why don't the rotate parameters even work in cycling help file?

Anyone, it's at this stage I'd appreciate even just moral support as I feel like throwing this software in the bin!

cap10subtext's icon

I'm writing by memory, but if you are truly to figure out why rotate doesn't do anything but make it jiggle, it probably because you are use to working with Euler angles (XYZ) rather than axis-angle (W, XYZ where W is the scalar value). If the camera doesn't accept the rotatexyz attribute (see jit.GL.handle) then you can use the quay library by Graham Wakefield or the rotatexyz Jasch object. They are external libraries.

The default in Max is axis-angle to avoid gimble lock.

Hope this helps.

coda's icon

Ahh, I read something similar in an older post of yours, thanks this is a good lead.

The point in my patch that I'm stuck, means I can rotate the jit.gl.camera around any one axis (this works as I expected) but not when using more than one axis at a time, so gl.render accepts the rotate message but only one, I'll give rotatexyz jasch and the quay library a shot.

thanks for the tip!

cap10subtext's icon

Oops, just realize this was a typo, that is supposed to be "quat" object

Andrew Benson's icon

If you'd like to get into more advanced hierarchical transforms and rotations, your best bet will be to spend some time with the jit.anim objects.