
CreatePerspectiveFieldOfView throws in valid cases
Posted Tuesday, 6 April, 2010 - 16:39 by pjcozzi| Project: | The Open Toolkit library |
| Version: | 1.0.0-rc1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
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
#1
Thanks, fixed in r2940.