MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a 3 x 4 projection matrix $P$ given that calculates a homogeneous 2-Vector ${\bf i}=(u,v,w)^T$ on some screen (e.g.) from a homogeneous 3-Vector ${\bf x}=(x,y,z,w)^T$ in world space by $P \cdot {\bf x} = {\bf i}$.

How can I calculate the position of the camera in world space from that?

share|cite|improve this question
Dear Jakob, no offense intended, but this forum is for research-level math questions, and I fear that yours isn't quite. You might have more luck at the related site: – André Henriques Jun 21 '11 at 14:12
thanks for your hint - i really was not aware that there are two maths sites in the stackoverflow universe. i'll give it a try. – Jakob Jun 21 '11 at 16:23
up vote 3 down vote accepted

Sorry for answering my own question, but just now a colleague told me the solution and I want to share it - maybe it is of some use for anybody else some day.

  1. Separate $P$ into a 3x3 matrix $P'$ (including the first three columns) and a vector $\bf F'$ (the last column).
  2. Invert $P'$
  3. The projection reference point (i.e., the 'camera') is then ${\bf F}=P'^{-1} \cdot {\bf F'} $.
share|cite|improve this answer
You should probably mark it as solved then.:) – lindhe Mar 28 at 16:34

Check out

Computer Graphics: Principles and Practice in C (2nd Edition) by James D. Foley, Andries van Dam, Steven K. Feiner and John F. Hughes (Hardcover - Aug 14, 1995)

And all will be revealed.

share|cite|improve this answer
thank you for your suggestion. i will have a deeper look into it, but at first sight the book does not really seem to answer my question. – Jakob Jun 21 '11 at 16:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.