Euler angles

110 views
Skip to first unread message

gleb

unread,
Jul 23, 2016, 6:18:20 PM7/23/16
to PTGui Support
Hi!

I am trying to understand the coordinate system used by PTGui, and especially if I can 
express yaw - pitch - roll angles in Euler terms. The goal is to be able to rotate images in PTS file
and visualize them using Three.js (http://threejs.org/) library.

So far, seems the yaw is simply rotation around X axis, but the rest of angles seems not to correspond
Is there an expression or principle how to convert between yaw - pitch - roll angles and 3x3 rotation matrix?
Also, is there a way to go back from 3x3 rotation matrix to yaw - pitch - roll angles?

Thank you,
Gleb

Erik Krause

unread,
Jul 24, 2016, 6:59:18 AM7/24/16
to pt...@googlegroups.com
Am 24.07.2016 um 00:18 schrieb gleb:
> So far, seems the yaw is simply rotation around X axis, but the rest of
> angles seems not to correspond
> to simple Euler angles (http://threejs.org/docs/#Reference/Math/Euler).
> Is there an expression or principle how to convert between yaw - pitch -
> roll angles and 3x3 rotation matrix?
> Also, is there a way to go back from 3x3 rotation matrix to yaw - pitch -
> roll angles?

If I remember correctly Yaw, Roll, Pitch are Tait–Bryan angles, like
used in aircraft navigation. Somewhere very deep in my old computer
there should be an excel sheet, which does the calculation. PM me if you
want it.

--
Erik Krause
http://www.erik-krause.de

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

Erik Krause

unread,
Jul 24, 2016, 7:22:12 AM7/24/16
to pt...@googlegroups.com
Am 24.07.2016 um 12:59 schrieb Erik Krause:
> If I remember correctly Yaw, Roll, Pitch are Tait–Bryan angles

To convert to and from Euler angles see this Stackexchange answer:
http://tinyurl.com/lknjzta
but since Tait-Bryan angles are a special case of Euler angles it might
be sufficient to change the order parameter in your THREE call. However,
this is far beyond my knowledge, sorry. Eventually Joost can say something.

gleb

unread,
Jul 24, 2016, 3:38:17 PM7/24/16
to PTGui Support
Thank you, yesterday got everything working correctly,
was just the different matrix to Euler angles ordering.

do you mind if I create a package on npm https://www.npmjs.com/ with this JavaScript code? 
This would allow many people simple rotation actions matching the PTGui math

Gleb

PTGui Support

unread,
Jul 25, 2016, 8:26:37 AM7/25/16
to pt...@googlegroups.com
Hi Gleb,

Sure, feel free to publish your code.

Kind regards,

New House Internet Services BV
Joost Nieuwenhuijse

-----------------------------------------------
PTGui - Photo Stitching Software

www.ptgui.com
For support see: http://www.ptgui.com/faq/
-----------------------------------------------
> https://www.avast.com/antivirus <https://www.avast.com/antivirus>
>
> --
> Many people are reading this forum via email and get every post
> delivered to their inbox. To limit the amount of data please do not add
> attachments or images to your posts; instead upload your files at a file
> sharing site (for example http://sendspace.com// ) and include a link in
> your message.
> ---
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To post to this group, send email to pt...@googlegroups.com
> <mailto:pt...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/ptgui.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/643a1db0-5ec6-46f0-a671-1317378d71d9%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/643a1db0-5ec6-46f0-a671-1317378d71d9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages