http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inverse Matrix



============================================================
Achieve email health, harmony, and happiness. Sign up for a
free My Topica account and organize your email subscriptions
so they go with your flow. Sign up today.
http://click.topica.com/caaabDnbUrGczbU68iFa/register
============================================================

On a totally different subject . . . 

If I have an object transformation matrix,

[O] = 
/ xa, ya, za, 0 \
| xb, yb, zb, 0 |
| xc, yc, zc, 0 |
\ xd, yd, zd, 1 /

and I want to create an inverse matrix, [O]^-1, so that I can multiply it
by my camera matrix to give another matrix to use for transforming points
from object space to view space, [O]^-1[C] = [V]. How would I do this? It
works nicely with:

[O]^-1 =
/ xa, xb, xc, 0 \
| ya, yb, yc, 0 |
| za, zb, zc, 0 |
\ dx, dy, dz, 1 /

where (dx, dy, dz) is the object's translation vector. Now I would like to
do this with just the two matrices, not needing to know the object's
position. Anyone remember linear algebra? :]

-[ Neil-Edelman -- dreaded.neil@phreaker.net -- ICQ UIN: 705130
-[ http://neil.freeshell.org/
-[ "Nature makes frequent use of [the infinite] everywhere" -Georg Cantor

------------------------------------------------------------
http://eReleases.com - Low-Cost Press Release Services
** Includes paid wire distribution and pr resources **
<a href="http://www.eReleases.com">AOL Link</a>

==^================================================================
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrGcz.bU68iF
Or send an email To: gameprogrammer-unsubscribe@topica.com
This email was sent to: list@pendleton.com

T O P I C A  -- Learn More. Surf Less.
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01
==^================================================================