Horde3D

Next-Generation Graphics Engine
It is currently 28.04.2024, 16:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 22.06.2009, 15:47 
Offline

Joined: 22.06.2009, 15:42
Posts: 2
Hi,
what is the rotation order for the euler angles in Horde3D?
I couldn't find anything about the rotation convention in the documentation.

Cheers


Top
 Profile  
Reply with quote  
PostPosted: 22.06.2009, 21:26 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Hi, the rotation order is YXZ [*Vec]


Top
 Profile  
Reply with quote  
PostPosted: 26.06.2009, 14:46 
Offline

Joined: 22.06.2009, 15:42
Posts: 2
Ok thanks.
Could anyone provide me with code for a function that converts a quaternion into the Euler angles needed for Horde3D?

Thanks in advance.


Top
 Profile  
Reply with quote  
PostPosted: 26.06.2009, 23:19 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Take a look at Matrix4f::RotMat in utMath.h. It builds a rotation matrix with the help of a quaternion. If you have a matrix, you can use Matrix4f::decompose to get the Euler angles from it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group