View Full Version : Transform world coordinate in local coordinate

09 September 2005, 11:10 AM
Hi there, How is possible to transform a world rotation in a local rotation?
What can i do?
Is there a particular algorythm?

thanks for help.

09 September 2005, 08:28 AM
The tool that we use in both mathematics and in computer graphics for moving between coordinate systems is the matrix.
Fortunately it’s not particularly difficult math – go Google “Introduction Matrices” and you’ll turn up about a half-million hits that will explain the basics. I’m going to assume you’ve done so from here on out.

multiplying that matrix with a set of coordinates in one coordinate space turns them into the equivalent coordinates in another system.

if you're using direct3d, you might find this one useful:

09 September 2005, 10:19 AM
You need to multiply the object's transformation matrix by the inverse of the destination object's transformation matrix. That will compute the first object's transformation in the second object's local sapce, just like you parent object to another in any 3D app.

Here is some basic idea:
(http://%0A (

CGTalk Moderation
09 September 2005, 10:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.