We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [quaternion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
36 views

How to get the proper rotation difference between two vectors using quaternions?

I'm trying to calculate the vector difference between a face normal and an object. This is similar to some other questions, such as this one: Python script get face normal, then set it as another ...
1
vote
0answers
16 views

Does deleting one quaternion rotation channel affect angle of rotation along other axes?

When animating I usually have my bones set up with quaternion rotations. Sometimes when I key a bone for an animation, I want to delete the rotation along a specific axis. What I have done till now is ...
0
votes
0answers
47 views

What is the relationship between quaternion's value w, the (x,y,z) point, and the rotation they represent?

From what I understood, quaternion rotations could essentially be described as a vector coming from an object's location and going to (x,y,z) and W is a value that determines the object's rotation ...
0
votes
0answers
24 views

Bone rotation not following shortest path

I use quaternion rotation mode to animate the bones. However I get weird rotation results, when trying to do a roll animation. The hip bone goes in the middle of the animation in the opposite ...
0
votes
2answers
114 views

Is it possible to save the Euler rotations as Quaternions without loss of data?

Long story short is that, that I made an animation using Euler rotation but during cleaning the graph I realized that the graph and the axis got mixed up, eg. x and y axis both gave more or less the ...
2
votes
1answer
599 views

Set the Rotation (in Quaternion WXZY which is calculated by two vectors) of a bone using API 2.7.9

Details of the problem: I already have two vectors A and B (A is converted to B by a certain rotation), and I can now calculate the quaternion of its rotation. Also insert a bone in the blender so ...
0
votes
2answers
123 views

Bone rotation quaternion issues

I am attempting to make my character do a backflip. I rotate the hips 360º in the X axis with a couple of keyframes, then watch the animation. It doesn't work. Either it doesn't seem to move at all, ...
0
votes
1answer
299 views

How to use quaternions coming from ros?

I have a quaternion coming from a ros tf tree that is representing the orientation of my camera. I am trying to set these values for a blender script to render a scene, but the camera looks into the ...
0
votes
1answer
132 views

obj.rayCast() not working as intended

In the game engine, I've got a function which uses rayCast in asteroids. It doesn't work as intended, as even with x-ray turned on, it often doesn't see through objects without the desired property: <...
0
votes
0answers
73 views

How To Ensure All Objects on Same Axis?

I'm making something in Blender and porting it into Unity as an FBX. The armature is a series of connected bones for each segment/ball. The first segment will move side to side when I rotate on the Y ...
1
vote
0answers
126 views

Object shifts about after changing XYZ Euler to Quaternion (WXYZ)

I have a problem when I change the rotation type of my object (3D View > Properties region (N) > Transform panel > Rotation) from XYZ Euler to Quaternion (WXYZ) to avoid a gimbal lock problem with a ...
1
vote
1answer
240 views

What is relation between edit_bone roll and and pose.bone rotation_quaternion?

I have two slightly different rigs (two armatures from different sources) and trying to transfer rotations between corresponding bones, from one armature to another (retarget current pose at some ...
2
votes
2answers
269 views

Exporting trouble. Bone tail and head positions change quaternion rotation

I managed to program a cute script to export animated models for Play Station Portable. If all the bones are aligned with Y pointing up, It works perfect, But animating the models that way is a bit ...
0
votes
2answers
2k views

Getting local rotation in python

I'm using blender to visualize data from an orientation sensor, and would like to display the current rotation, but about the local axis. I can get the local axis just fine, but what I'm interested in ...
1
vote
1answer
306 views

Recreate to_track_quat with two vectors using python

i've been asked to recreate the to_track_quat function of mathutils to create a quaternion that looks from point a to point b, but so far i've been un successful. I'm using in blender two objects, ...
2
votes
1answer
118 views

mathutils.Matrix's position returns an empty vector instead of the actual position

In 4x4 matrices, the values of the last row are usually the position, however in blender, when scripting returns 0, even though when i display the matrix on the console, the values are shown properly (...
1
vote
1answer
235 views

Exporting bones; transformation of quaternions necessary?

I'm writing a small addon to export armatures and actions to an in-house rendering engine. The rendering engine uses a traditional OpenGL-style coordinate system, with +Y representing UP and -Z ...
3
votes
0answers
175 views

Is there a way to make blender using slerp on quaternions?

I'm now working on a blender importer addon. I have managed to import models and animations extracted from some game into blender successfully. The pose looks perfect most of the time, but at some ...
1
vote
0answers
88 views

Quaternions, txt file parsing, animation/graphing [closed]

Here's the setup: I have text files that have timestamped translation (X, Y, Z) and rotation (X, Y, Z, W) data. I need to turn this data into something useful. A graph or an animation would be ...
2
votes
1answer
542 views

Why does Quaternion.rotation_difference() always return 12.666471 for x-rotation?

I tried to calculate the angle between two vectors. First 3 Quaternion rotations (qx,qy,qz) are defined and multiplied to q. A vector v (1,0,0) is rotated by q. From the vectors q and qrot I want ...
1
vote
3answers
301 views

How can X, Y, Z and W go above one in a quaternion animation on Blender?

I am trying to import a collada file generated by Maya on Blender and that file was exported using what I think is the correct representation of a quaternion (x, y, z and w elements are between 0 and ...
0
votes
2answers
1k views

Converting Quaternions to Euler in the Graph Editor

I have imported a camera animation that came from a collada file. When I open the graph editor I see the rotations as quaternions. How do I convert that to euler. I need to see euler in the Graph ...
8
votes
1answer
5k views

When should I use Quaternion (WXYZ) and how should I handle the W Quaternion Rotation?

As I (seem to) know from some comments the use of Quaternion or Euler depends on what we want to animate and that Quaternion can handle very complex animation and avoid problems which sometimes occur ...