• Advertisement


This topic is now archived and is closed to further replies.

XYZ, UVN, Will it ever end

This topic is 5116 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to write a function to convert an object''s Euler angles to UVN coordinates. I''m having a bit of trouble. I read a document here on gamedev that has given me the most help so far, but I''m still a little lost. Here''s the situation thus far. I''m using the following coordinate system for both world and object space. Positive X axis points right, positive Y axis points up, Positive Z axis points into the screen. Adapting the code I found in the doc, I am able to find N (forward, Z axis) with the following. Nx = cos(ang_x) * sin(ang_y) Ny = sin(ang_x) Nz = cos(ang_x) * cos(ang_y) Much to my surprise, this actually works. At the moment I am trying to find similar algorithms for finding U (right, X axis) and V (up, Y axis). Any ideas?

Share this post

Link to post
Share on other sites

  • Advertisement