Quaternion getRotation broken
Reported by Salomon BRYS | December 12th, 2010 @ 06:25 PM
The quaternion getRotation (accessible by
SceneJS.withNode("myRotation").get("rotation")).
it basically returns {x: NaN, y: NaN, z: NaN, angle: NaN} or
rubbish values.
Comments and changes to this ticket
-
Salomon BRYS December 12th, 2010 @ 06:35 PM
Fix pull request : https://github.com/xeolabs/scenejs/pull/29
Turns out that the quaternion was normalized using a vector3 len, and not a vector4.
Quaternion normalization are vector4 normalization (and thus use vector4 normalization).I chacked on several quaternions and the given values are good.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.