Get position/rotation from projection matrix

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Get position/rotation from projection matrix

Post by Simson »

Hi,
I need to get the position and rotation from a view projection matrix.
Anyone here can help me please ?
In advance thanks :)
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Get position/rotation from projection matrix

Post by CuteAlien »

Can you describe what exactly you are trying to do? Are you trying to get back to a 3D position from a bitmap/depthmap on screen? And what does rotation mean in that regard?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Simson
Competition winner
Posts: 95
Joined: Wed Nov 30, 2005 8:53 am
Location: France : midi pyrénées

Re: Get position/rotation from projection matrix

Post by Simson »

I get a projection matrix from Oculus SDK to send this matrix to the Irrlicht camera Eyes for render texture for Left Eye and Right Eye.
My render work perfect except Irrlicht doesn't calculate the Lod for the terrain and there is a problem with the frustum culling with my Object.
I think this is because the Irrlicht camera Eyes is not update correctly because I don't send position and rotation ?
Maybe Im wrong ?
Thanks for your help :)
Post Reply