Irrlicht Coordinate System - Right Hand

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
telmopereira
Posts: 13
Joined: Thu Apr 01, 2010 2:45 pm

Irrlicht Coordinate System - Right Hand

Post by telmopereira »

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
deadbeef
Posts: 14
Joined: Thu Apr 08, 2010 11:09 am

Post by deadbeef »

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
Post Reply