pjcozzi's picture

CreatePerspectiveFieldOfView throws in valid cases

Project:The Open Toolkit library
Category:bug report

CreatePerspectiveFieldOfView, both in Matrix4 and Matrix4d, probably should not throw when zNear is greater than zFar. Sometimes, a user will want this. For example, to minimize the impact of depth buffer precision lost for distance objects, it is common to swap the traditional near/far values, change the depth test from less to greater than, and use a 32-bit floating point depth buffer. For more information see http://outerra.blogspot.com/2009/12/floating-point-depth-buffer.html.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Status:open» fixed

Thanks, fixed in r2940.

the Fiddler's picture


Version:1.0.0-rc1» 1.1-2014-01-02
Status:fixed» closed

Closing issues fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues