1

I dont understand for what i need the inverse of the perspective Matrix in Computer Graphics and how do i calculate it?Maybe someone has an explanation for me.

greedsin
  • 118
  • 1
  • 9
  • 4
    Could you add a bit more to the context? It's not clear what you need. – Vaillancourt Dec 08 '15 at 17:22
  • 1
    just about any matrix math library worth it salt will have an inverse operation. – ratchet freak Dec 08 '15 at 19:20
  • 1
    If you don't need it, why do you want to calculate it? – Nicol Bolas Dec 08 '15 at 19:54
  • @ratchetfreak right. but it's not the only thing there is to it. one needs not to forget the division by w stage, which is a bit tricky to invert, you need to choose an arbitrary w because it gets "lost in projection". and then multiply with the inverse matrix. – v.oddou Dec 09 '15 at 00:49

2 Answers2

4

The inverse projection matrix can be used for mouse/ray picking (letting you click an object in the world)

For more info: How do you determine which object/surface the user's pointing at with lwjgl?

CobaltHex
  • 2,238
  • 12
  • 18
3

An inverse projection matrix is used to invert coordinates from the projected space to either world or local space, i.e. You can use the inverse projection matrix to find out where a pixel is in relation to game objects.

This can be extremly useful for postprocessing effects like deferred rendering.

Calculating it can be a bit tricky and requires knowledge in linear algebra, if you have an API handy I suggest using it. Or google around for a while.

Tim
  • 601
  • 4
  • 10