-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is there no Mat4::frustum_{lh,rh{,_gl}}
?
#441
Comments
I am not understanding what is being asked for here, could you explain exactly what feature you would like to see? |
A more detailed explanation from https://www.opengl.org/archives/resources/faq/technical/transformations.htm
|
Sorry for not expanding the context enough.
Yes. It's what I talked about. I haven't found an analogue of |
Further implementation details https://lmb.informatik.uni-freiburg.de/people/reisert/opengl/doc/glFrustum.html. Also DirectX equivalents https://learn.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-xmmatrixperspectiveoffcenterlh and https://learn.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-xmmatrixperspectiveoffcenterrh. Since I don't do much graphics programing I'm tagging these as help wanted to see if someone else wants to contribute them |
I thought that, not only
Mat4::perspective_{lh,rh{,_gl}}
requires more computation involving the nastymath::tan
, it also doesn't allow us to construct matrices for stereoscopic projection: https://paulbourke.net/stereographics/stereorenderOne could omit
perspective
(if the minimalistic approach were pursued), butfrustum
is an essential and fundamental thing to have for such a math library.The text was updated successfully, but these errors were encountered: