Hi everybody,
As far as i know, Irrlicht uses a left hand coordinate system. So, the Z axis (depth) is more positive as far as you go out the scene (like walk in front). I would like to know if there is some way to use a right hand coordinate system, so in that way the Z axis is positive toward user (like walking back).
Thanks in advance,
Telmo Pereira
Irrlicht Coordinate System - Right Hand
I think its the Camera problem. You could change the projection matrix to RightHand here:
void CCameraSceneNode::recalculateProjectionMatrix()
{
ViewArea.getTransform ( video::ETS_PROJECTION ).buildProjectionMatrixPerspectiveFovLH(Fovy, Aspect, ZNear, ZFar);
}
and use buildProjectionMatrixPerspectiveFovRH instead.
Im looking my self for a way to swap Y and Z coordinate its messed up in irrlicht :F
void CCameraSceneNode::recalculateProjectionMatrix()
{
ViewArea.getTransform ( video::ETS_PROJECTION ).buildProjectionMatrixPerspectiveFovLH(Fovy, Aspect, ZNear, ZFar);
}
and use buildProjectionMatrixPerspectiveFovRH instead.
Im looking my self for a way to swap Y and Z coordinate its messed up in irrlicht :F