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!

Untransform vector [SOLVED]

Postby Auradrummer » Wed Feb 14, 2018 1:01 am

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.
Jet Racer - Under development - Using Ubuntu 7.10
User avatar
Auradrummer
 
Posts: 245
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: Untransform vector

Postby devsh » Wed Feb 14, 2018 1:59 am

Inverse transform.

You need an inverse of the matrix, transforming with the inverse matrix will "untransform".
User avatar
devsh
Competition winner
 
Posts: 1826
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK

Re: Untransform vector

Postby Auradrummer » Wed Feb 14, 2018 12:25 pm

Aha! Thank you mate!
Jet Racer - Under development - Using Ubuntu 7.10
User avatar
Auradrummer
 
Posts: 245
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil


Return to Advanced Help

Who is online

Users browsing this forum: No registered users and 1 guest