Sign in to follow this  
AlessandroMastronardi

Converting from local to world space coordinates

Recommended Posts

Hi, I asked this also in the opengl forum, but probably is more somethimg about math.

I have an object rotated in [b]local[/b] space as follows:

pitch=45, yaw=30, roll=15

Given that world axis are [1,0,0] [0,1,0] [0,0,1]

How would I calculate [b]world[/b] angles out of it... what is the math beyond it?

Share this post


Link to post
Share on other sites
You should be able to create an Axis Angle matrix for those angles into individual matrices. Then multiply them by your world transform. Then the X, Y, and Z axis of those matrices should be the rotation in world space. There is most likely a much more elegant solution, but that should do it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this