• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Matrix API?

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

8 replies to this topic

### #1kirkd  Members

Posted 24 August 2001 - 09:49 AM

Does anyone know of a good (read "free and reliable") API for matrix calculations. I''m looking for something that can do inversions along with all the other good matrix operations. Thanks!! -Kirk

### #2a2k  Members

Posted 24 August 2001 - 10:43 AM

i still think this is an excellent set of basic 3d graphics structures:

http://www.gamedev.net/reference/articles/article988.asp

a2k

### #3kirkd  Members

Posted 25 August 2001 - 04:48 AM

Thanks for the link! I notice, however, they don''t supply any code for inversion. ugh. I guess I''ll have to do that one myself.

-Kirk

### #4grhodes_at_work  Members

Posted 27 August 2001 - 06:30 AM

I''ve used a math library called Newmat, which is decent and source code is available, including inversions. Here is the link:

http://webnz.com/robert/cpp_lib.htm

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

### #5kirkd  Members

Posted 27 August 2001 - 08:10 AM

Graham,

Thanks! I''m sure I can''t write an efficient matrix inversion routine better than what is available out there. This should help a lot.

-Kirk

### #6Beer Hunter  Members

Posted 27 August 2001 - 07:45 PM

I could give you the maths for inverting a matrix... but I doubt you need it now.

### #7kirkd  Members

Posted 28 August 2001 - 03:01 AM

Sure, I''d welcome any input you have. The math isn''t the problem, however, it''s making it fast and efficient. Matrix inversion is rather costly, isn''t it?

-Kirk

### #8grhodes_at_work  Members

Posted 28 August 2001 - 06:06 AM

One question to ask yourself is: do I *really* need to invert the matrix? Yes, inversion is expensive and there actually are often ways to do things without needing the inverse. The method implemented in the Newmat library I think is one of the most efficient methods for *arbitrary* matrices. If you need to invert a 4x4 or 3x3 transformation matrix, then the fastest method will be a closed form solution, available I think in an appendix of the OpenGL red book as well as many other sources.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

### #9rkinasz  Members

Posted 28 August 2001 - 04:16 PM

the matrix has you...

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.