Untransform vector [SOLVED]

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Untransform vector [SOLVED]

Post by Auradrummer »

Hello Masters,

I have a vector and transformed it by a CMatrix4 and, of course, worked fine.
Now, I have to get back the original value, "untransforming" it by the same matrix. I googled around but not found an answer. I think that the term "untransform" is not the right one, but is the only I have ;D.

Any tips?

Thanks!
Last edited by Auradrummer on Wed Feb 14, 2018 12:25 pm, edited 1 time in total.
Professional Software Developer and Amateur Game Designer ;-)
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: Untransform vector

Post by devsh »

Inverse transform.

You need an inverse of the matrix, transforming with the inverse matrix will "untransform".
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: Untransform vector

Post by Auradrummer »

Aha! Thank you mate!
Professional Software Developer and Amateur Game Designer ;-)
Post Reply