Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Matrix math (difference between two matrices?)

Author
Message
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 3rd May 2012 20:29 Edited at: 3rd May 2012 20:32
If I have two matrices, perhaps representing and object each, how do I retrieve a third matrix which is the difference of the first two.

So if object A moves and rotates I can multiply object A's matrix by my new matrix and get a matrix for object B, object B would then be glued to object A.

I have tried google but I don't really know a good way of asking the question

Let me know if I have not been clear enough and I will try to put it a different way, thanks.


More info:


Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd May 2012 22:53
i quite sure you can't do that with matrices, i tried some time ago and was unsuccessful. the only way to do that is using quaternions

Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 4th May 2012 01:39
Quote: "i quite sure you can't do that with matrices, i tried some time ago and was unsuccessful. the only way to do that is using quaternions"


I hope you're wrong but I too think you are right

I know you can't interpolate with matrices and it's one of the reasons quaternions are used, and after reading your post I realise that what I am wanting is interpolation in a way(I think).

Thanks for your response, could save me a lot of time trying to do the impossible.

I will try to think of another workaround for my problem.

Login to post a reply

Server time is: 2024-11-19 02:27:43
Your offset time is: 2024-11-19 02:27:43