Axis angle rotations and changing rotation values

In summary, the code stores rotation values as x,y,z angles, but it's unclear what those angles have to do with a rotation. The code might be storing the angles as a representation of the rotation, but it's unclear what that representation is.
  • #1
dumb_squared
2
0
I have two 3d applications and when an object(a cube for example) is transferred between them, the rotation values of the cube change(the object stay at the same location. translation and scale values stay the same) and I can't find why that occurs and it's driving me crazy.

app 1 rotation values:

x:-27,077
y:-25,026
z:15,933

Axis-angle representation of the above

-0.7096853 0.4914011 -0.5048483 -42.20802

app 2 rotation values:

x:33.8493041
y:-13.7234678
z:26.2455062

I've read a few wikipedia articles on rotation and specifically axis-rotation stuff but I haven't really figured out what's really happening.

Any help is appreciated.
 
Physics news on Phys.org
  • #2
You're jumping in a bit to deep, getting to specifics way too early. Before we get to the specifics, there are some key important question that needs to be addressed:
  • Are these your applications or are the someone else's? In other words, did you write the code?
  • If you didn't write the code, did you carefully read the documentation (if it exists) and follow it?
  • If you did write the code, did you carefully test it?
  • How does the code represent composite bodies, sub-bodies, and the connections between them?
  • Is this transfer is an atomic action, or is it essentially a detachment immediately followed by an attachment? If it's the latter, is it the attachment or detachment where things go awry?
 
  • #3
D H said:
You're jumping in a bit to deep, getting to specifics way too early. Before we get to the specifics, there are some key important question that needs to be addressed:
  • Are these your applications or are the someone else's? In other words, did you write the code?
  • If you didn't write the code, did you carefully read the documentation (if it exists) and follow it?
  • If you did write the code, did you carefully test it?
  • How does the code represent composite bodies, sub-bodies, and the connections between them?
  • Is this transfer is an atomic action, or is it essentially a detachment immediately followed by an attachment? If it's the latter, is it the attachment or detachment where things go awry?

Sorry about lack of clarity. Both applications are closed sourced and there is no information about how they store the data.

The transfer file format converts x,y,z angles to Axis-angle representation
 
  • #4
Yes, but what do those angles have to do with a rotation? A single axis of rotation can be given by its three direction angles- the angles the axis makes with the three coordinate axes. Also, if this is the case, x, y, and z are not independent. We must have [itex]x^2+ y^2+ z^2= 1[/itex]. Is that what you mean? Where do you give the angle through which you are rotating?
 
  • #5


I would first suggest checking the coordinate systems and units used in both applications to ensure they are consistent. It is possible that one application is using a different coordinate system or unit of measurement, resulting in different rotation values.

Additionally, it is important to understand that rotations can be represented in different ways, such as Euler angles, quaternion, or axis-angle representation. It is possible that the two applications are using different methods to represent rotations, resulting in different values.

I would also recommend checking the order of rotations applied in each application. The order of rotations can affect the final orientation of an object.

If all of these factors have been accounted for and the rotation values still do not match, it is possible that there is a bug or error in one of the applications. In this case, it would be helpful to reach out to the developers of the applications for further assistance.

Overall, understanding the mathematical principles and concepts behind rotations can help in troubleshooting and understanding why rotation values may differ between applications.
 

1. What is an axis angle rotation?

An axis angle rotation is a type of rotation in 3D space that is defined by an axis of rotation and an angle of rotation around that axis. It is commonly used in mathematics and computer graphics to represent and manipulate the orientation of objects.

2. How are rotation values changed using axis angle rotations?

Rotation values can be changed using axis angle rotations by first determining the axis of rotation and the angle of rotation. Then, the rotation values can be updated by applying the rotation around the specified axis by the specified angle.

3. What is the difference between Euler angles and axis angle rotations?

While both Euler angles and axis angle rotations are methods for representing rotations in 3D space, they differ in terms of the parameters used. Euler angles use three angles to represent a rotation, while axis angle rotations use an axis and an angle of rotation. Euler angles are more intuitive for visualizing rotations, but axis angle rotations are more computationally efficient.

4. How do axis angle rotations affect the orientation of an object?

Axis angle rotations change the orientation of an object by rotating it around a specified axis by a specified angle. This can result in changes to the object's position, shape, and orientation in 3D space.

5. Can any rotation be represented using axis angle rotations?

Yes, any rotation in 3D space can be represented using axis angle rotations. This is because any rotation can be broken down into a rotation around a single axis by a specific angle.

Similar threads

  • Linear and Abstract Algebra
Replies
1
Views
720
  • Linear and Abstract Algebra
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
1
Views
952
  • Linear and Abstract Algebra
Replies
8
Views
1K
  • Mechanical Engineering
Replies
3
Views
455
Replies
3
Views
821
  • Advanced Physics Homework Help
Replies
1
Views
653
Replies
3
Views
2K
  • Quantum Physics
Replies
1
Views
226
Replies
2
Views
644
Back
Top