Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Getting Rotation X,Y,Z from Matrix

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
Naggar
Posts: 178
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Getting Rotation X,Y,Z from Matrix

Post by Naggar » 23 May 2017, 08:39

Hi guys

I've been struggling a lot with this issue. Like Vector Transform gets XYZ position from a matrix node, I would like to get the same with Rotation (Get rotation X,Y,Z from Matrix) .. What is the most efficient way to do this (if possible without C# node)?

Thanks and best regards
Naggar

u-double-u
Posts: 172
Joined: 03 Dec 2014, 15:46

Re: Getting Rotation X,Y,Z from Matrix

Post by u-double-u » 25 Jun 2018, 10:29

Hi, was there a solution/tipp or trick to this? I was just going to ask the same thing.
cheers

User avatar
Naggar
Posts: 178
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Re: Getting Rotation X,Y,Z from Matrix

Post by Naggar » 25 Jun 2018, 18:33

So I've given up on this request after I spoke with my programmer colleague.

Not 100% sure if this is the case, but what he explained to me was that the 3D Engine of Ventuz is using Quaternions units (Which use x,y,z,w) and what we want is euler rotations (which use x,y,z) .... and the issue is the conversion between the two. So I'm not sure if it would be possible, but I still hope we get a response about it soon.

In the end my colleague made a C# script for an alternative solution.

u-double-u
Posts: 172
Joined: 03 Dec 2014, 15:46

Re: Getting Rotation X,Y,Z from Matrix

Post by u-double-u » 26 Jun 2018, 09:32

hm, there must be a way. I wish, the vector-transform would somehow spit out an angle...
My math is too bad to do it myself.
Anybody?

Post Reply