DirectX - Is it Using only left angle triangles?,
Members - Reputation: 1694
Posted 23 October 2012 - 01:33 AM
DirectX is "using" left-handed coordinate system. But this in fact doesn't mean much, you can use right-handed system in DirectX with absolutely no problem if you want. The D3DX library even provided you both LH and RH versions of all functions that are dependent on the coordinate system, like D3DXMatrixPerspectiveRH/LH, D3DXMatrixLookAtRH/LH etc.
Switching between LH and RH system requires just proper view and projection matrices (using the above mentioned functions with proper ending ...RH / ...LH), proper winding order of your triangles vertices (+ proper backface culling mode) and maybe proper layout of cube textures? None of these is strictly dictated by DirectX, it depends purely on you - on how do you generate your meshes (in 3ds max or maya or ...) and how do you set the transform matrices.
Btw, of course also your world/scene/map/terrain/whatever coordinates must correspond to the coordinate system you're using, but this has ABSOLUTELY nothing to do with DirectX.
Edited by Tom KQT, 23 October 2012 - 01:42 AM.