pjcozzi's picture

CreatePerspectiveFieldOfView throws in valid cases

Project:The Open Toolkit library
Version:1.0.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

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.


Comments

Comment viewing options

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

#1

Status:open» fixed

Thanks, fixed in r2940.