[Ves] Rotating an actor around a global axis

Candemir Doger cd.doger at gmail.com
Mon Nov 25 18:03:39 EST 2013


Hi all,

We are applying transformations on top of the actors for our study (not the
camera). However, there is a problem with the rotation after the
translation since the objects are rotating around its own axis instead of
the global axis. We examined the function in vesTransformPrivate and found
that the actors are transformed by this:

 vesMatrix4x4f eval()
 {
    return m_translation * m_center * m_rotation * m_scaleOrientation
      * m_scale * m_scaleOrientationInv * m_centerInv;
 }

We also trying changing the reference frame to Absolute but we couldn't
made sense of it. Is there any documentation of this?

Should we change the order of this matrix multiplication or is there a
clever way of achieving the desired effect?

What we want is to rotate around the global axis not the local one.

Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20131126/387aba46/attachment-0001.html>


More information about the Ves mailing list