Jit.gl.render question

Sep 23, 2011 at 1:02am

Jit.gl.render question

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!

#58996
Sep 25, 2011 at 5:11pm

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.

#211945
Sep 25, 2011 at 6:07pm

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!

#211946
Apr 25, 2012 at 4:13am

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

#211947
Apr 25, 2012 at 5:16pm

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.

#211948

You must be logged in to reply to this topic.