Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Axis angle rotations and changing rotation values

  1. Nov 28, 2012 #1
    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.
     
  2. jcsd
  3. Nov 28, 2012 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    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?
     
  4. Nov 28, 2012 #3
    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
     
  5. Nov 28, 2012 #4

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    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?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Axis angle rotations and changing rotation values
  1. Rotation with 2 angles (Replies: 2)

Loading...