Re: [info-performer] Can anyone help me with the rotation coordinates transformation between WRML and Iris Performer?

New Message Reply Date view Thread view Subject view Author view

From: Luis Ignacio Miranda (lmiranda++at++sgi.com)
Date: 08/27/2002 05:40:59


Susana,

What you have to do is to separate the rotation around the defined axis into three
rotations around the X, Y, Z axes, by using the given matrix and the vectors that
define the axes and then use a pfDCS.
Be careful to be sure that the axes your format defines are the same as in Performer.

Hope this helps,

Nacho

Susana Lopez wrote:

> I want to make my camera move according a determinated xyz-hpr, but the
> data are in wrl format, so for the rotation I´ve got four values, x,y,z and
> a.
>
> I send you the explanation of these values, I´ve found on a manual:
>
> "The SFRotation field and event specifies one arbitrary rotation. The
> MFRotation field and event specifies zero or more arbitrary rotations. An
> SFRotation is written to the VRML file as four ISO C floating point values
> (see 2.[ISOC]) separated by whitespace. The first three values specify a
> normalized rotation axis vector about which the rotation takes place. The
> fourth value specifies the amount of right-handed rotation about that axis
> in radians. For example, an SFRotation containing a PI radians rotation
> about the Y axis is:
>
> fooRot 0.0 1.0 0.0 3.14159265
> The 3x3 matrix representation of a rotation (x y z a) is
>
> [ tx2+c txy+sz txz-sy
> txy-sz ty2+c tyz+sx
> txz+sy tyz-sx tz2+c ]
>
> where c = cos(a), s = sin(a), and t = 1-c
> The initial value of an SFRotation eventOut is (0 0 1 0). The initial value
> of an MFRotation eventOut is [ ]."
>
> Can anybody help me to obtain my HPR in IRIS Performer?
>
> Thank you in advance.
>
> Susana López Belso
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------

--
NB:  INFORMATION IN THIS MESSAGE IS SGI CONFIDENTIAL.  IT IS INTENDED SOLELY
FOR THE PERSON(S) TO WHOM IT IS ADDRESSED AND MAY NOT BE COPIED, USED,
DISCLOSED OR DISTRIBUTED TO OTHERS WITHOUT SGI CONSENT.  IF YOU ARE NOT
THE INTENDED RECIPIENT PLEASE WILL YOU NOTIFY ME BY EMAIL OR TELEPHONE,
DELETE THE MESSAGE FROM YOUR SYSTEM IMMEDIATELY AND DESTROY ANY PRINTED
COPIES.



New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 27 2002 - 05:41:42 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.