| Author |
Simultaneous Two Axis Rotation
|
|
| Mansoor 2004-05-24, 12:15 pm |
| Hi,
Im using V-Realm builder to build my 'vr world' which is to be used in
Matlab/Simulink Virtual Reality Toolbox. Using Simulink Model, how can
I give simultaneous rotation in two different axes of my 3Dobject in
the world. e.g. 20 deg in x and 50 deg in y.
Thank You
Mansoor
| |
| Joerg Scheurich aka MUFTI 2004-05-24, 7:17 pm |
| > I give simultaneous rotation in two different axes of my 3Dobject in
> the world. e.g. 20 deg in x and 50 deg in y.
Do you know, if you want rotate about x axis first and then rotate about
y axis secondly or vice versa ?
so long
MUFTI
--
| |
| Mansoor 2004-05-25, 4:14 am |
| > > I give simultaneous rotation in two different axes of my 3Dobject in
>
> Do you know, if you want rotate about x axis first and then rotate about
> y axis secondly or vice versa ?
>
> so long
> MUFTI
> --
Hi,
Yes I know I can do this one by one but I want to rotate my object in
two axes SIMULTANEOUSLY. can two axes be rotated together?
Thank You.
Mansoor
| |
| Cecile Muller 2004-05-25, 12:18 pm |
| > how can I give simultaneous rotation in two different axes
> of my 3Dobject in the world. e.g. 20 deg in x and 50 deg in y.
Either use two Transform{} (one into the other one), either mix both
rotations into the same SFRotation (which is a quaternion). If you're
handcoding, you'll have less headaches by using two transforms, but if
you can use a script to generate automatically, mix both rotations in
the same SFRotation. For example, "0.349 0.9229 -0.1627 0.9357" is a
rotation of 20 deg in x and 50 deg in y.
A little program that converts a rotation defined in X-Y-Z degrees to
an SFRotation (for Windows):
http://www.wildpeaks.com/downloads/...=download&id=55
| |
| Mansoor 2004-05-27, 4:15 am |
| Thank you very much for your response to my question related to
'Simultaneous Two axes Rotation' on Google's group 'comp.lang.vrml'.
The SFRotation quaternian generated from Euler Angles by your exe file
worked well with slight modifications.
Problem is that I need to generate the SFRotation quaternian at run
time during my simulation in Simulink. Now unnless i have access to
the code or some sort of description about this transformation
algorithm, Im unable to implement it in my simulation.
The Euler to Quaternian Transformation block provided by Simulink does
not matches with ur exe results. Can you please guide me in this
matter or provide some reference where I can find some material on
this.
Thank You.
Regards,
Mansoor Fayyaz
| |
| Joerg Scheurich aka MUFTI 2004-05-27, 7:15 pm |
| > The SFRotation quaternian generated from Euler Angles ...
> .... Now unnless i have access to
> the code or some sort of description about this transformation
> algorithm, Im unable to implement it in my simulation.
> Can you please guide me in this
> matter or provide some reference where I can find some material on
> this.
You can find source code for a Euler Angles to quaternian transformation
at
http://www1.acm.org/pubs/tog/Graphi...iv/euler_angle/
(license see http://www1.acm.org/pubs/tog/GraphicsGems/index.html)
but you need to use a parameter, which define the sequence of rotations.
> The Euler to Quaternian Transformation block provided by Simulink does
> not matches with ur exe results.
Other sequence of rotations ?
so long
MUFTI
--
A number of the Windows-based application programming interfaces (APIs) that
are documented as accepting only a module handle are defined incorrectly.
(aus einer M$Windows Dokumentation)
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |