Irrlicht by default uses left-handed projection matrix, while I need to switch to the right-handed one.
But if I try to create a RH projection matrix using the following code snippet:
// here goes creation and initialization of the camera
Code: Select all
irr::core::matrix4 projMatrix;
projMatrix.buildProjectionMatrixPerspectiveFovRH(camera->getFOV(), camera->getAspectRatio(), camera->getNearValue(), camera->getFarValue());
camera->setProjectionMatrix(projMatrix);
With buildProjectionMatrixPerspectiveFovLH() the code works fine.
Other people tried to solve similar issues, but with no success:
http://irrlicht.sourceforge.net/forum/v ... hp?t=35809
http://irrlicht.sourceforge.net/forum/v ... hp?t=42330
http://www.gamedev.net/topic/575142-rig ... projection