erroneous rotation with nondefault starting angle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
canvas K3D |
New
|
Undecided
|
Unassigned |
Bug Description
Dear k3d team,
first I want to thank you for creating and sharing your very professional written project. I tried it today for the first time and sadly (for me ;)) found a little bug right at the start:
If rotated by 90 degree using addphi the next rotation using addtheta or addgamma rotates the object in the same way regardless whether addtheta or addgamma has been used.
An example has been attached. Using the example file and rotating approximatly 90 degree "right hand"(phi - watch for the tooltip) the next rotation "upward" (theta) or "counter clockwise" (gamma) results in the same rotation. Rotating "right hand" by 180 or by 45 degree works fine. Only the phi axis is affected. I'm using a 3d object renderer like yours the first time today and didn't take a closer look into your code and the math connected to it. The browser used is Firefox 10.0.1
With best regards,
laihro
To make a long explanation short: Set
ophi = 90;
and try to rotate theta and gamma. Both will rotate around the same axis.