Bug in buildProjectionMatrixOrthoR/LH?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Lambda
Posts: 126
Joined: Wed Feb 27, 2008 3:00 pm
Location: Spain, Huelva
Contact:

Bug in buildProjectionMatrixOrthoR/LH?

Post by Lambda »

Hello guys,

checking out the functions available by irrlicht to create ortho projection matrices i discovered what could be a bug based on the MSDN documentation.

The line M[14] = (T)(zNear/(zFar-zNear)); should actually be M[14] = (T)(-zNear/(zFar-zNear)); based on http://msdn.microsoft.com/en-us/library ... s.85).aspx (The left handed version)

Is the code actually correct or there's a bug (and a mistake on the MSDN) in the engine?
Image
Post Reply