[Ves] Rotating an actor around a global axis

Aashish Chaudhary aashish.chaudhary at kitware.com
Tue Nov 26 10:04:42 EST 2013


Did you try setting the center (setCenter)?

Absolute reference frame is used for the scene graph where you don't want
to use your ancestors reference frame.

- Aashish



On Mon, Nov 25, 2013 at 6:03 PM, Candemir Doger <cd.doger at gmail.com> wrote:

> 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.
>
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>


-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20131126/82a8f24d/attachment-0001.html>


More information about the Ves mailing list