Archived

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

Matrix Inverses

This topic is 6596 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

Yep, if you're not using the homogenous coordinates (the w component of each term), you can just swap the rows with the columns. In fact, you just have to swap you matrix indices, which is even faster considering you don't have to create a new matrix. Also, I don't tink you can use the W term (the translation part), but this is alright for lighting and view transformations.

You have a 4x4 matrix:

float matrix[4][4];

The inverse of say element [2][0] is [0][2], or the inverse of [1][2] is [2][1].

Share this post


Link to post
Share on other sites
Alastair,
intel has a big site, could you narrow it down a little.

CodeDemon,
I remember reading a little on that in Brian Hook's book. You are talking about the transpose, right? or at least a glorified form of the transpose?

Share this post


Link to post
Share on other sites
Pretty much for transforming world coordinates (or object coordinates if you concactenated the transformation) to the camera's coordinates [relative to the camera]. Pretty crucial step in the whole graphics pipeline if you ask me.

I looked at the intel site, and yes I do agree that 360 or so cycles is the way to go, but the author(s) of the code skipped that important intuitive version. No big deal.

I'm also curious about the role of intel 's c/c++ compiler. Is it supplemental to your compiler or does it stand on its own?

Share this post


Link to post
Share on other sites
I've been thinking about purchasing the Intel compiler for a while. Basically, it is standalone, and will integrate / replace the Visual C++ compiler with ease, and even allow switching back and forth.

- Splat

Share this post


Link to post
Share on other sites
Yeah, $420 for the VTune package which includes the C++ compiler plus other shit. When I need optimization and find that the Intel one works much better (using the evaluation version) I'll buy it, but I have little need now.

- Splat

Share this post


Link to post
Share on other sites
I use inverse matrices for fast pre-transformation lighting and poly culling. This way, I can cull and light polys before transforming them to world or camera coordinates.

VTune is cool, I won a copy of it at the XGDC and I must say, knowing what's included with it now, I'd buy it. =)

You get the Intel ICL C++ optimizing compiler plugins for VC++, interactive assembly tutorials, almost all of their docs in *.pdf format, a profiler and bounds checker, and a lot of other things. I'm impressed.

Share this post


Link to post
Share on other sites
I've pieced through some Linear Algebra books and have come up with two differnt ways of computing the inverse of a square matrix. Neither of them seem to be good candidates for real-time graphics. Does anyone have a good bit of matrix inversion code?

Share this post


Link to post
Share on other sites