#Perspective projection
31 messages · Page 1 of 1 (latest)
s the subspace projection formula a perspective projection? if not how can it be adapted to be one
Also is the formula bad?
I am afraid those are two different concepts in this case
This formula projects a vector onto a subspace as mentioned, which is something entirely different than the "projection matrix" often reffered in graphics programming
How so
Which sort of squishes the area of some defined frustum into a unit cube
Hmmm I don't want to say it's not possible, but I am fairly certain that Noone uses that formula
For perspective projection that is
Actually yeah, I think you could use this as ortographic
You can look at ortographic projection as projecting a 3D space into 2D subspace (the screen)
In which case this formula would work
Ah you were faster 😆
😮 thanks
1 last question iff thats ok
Do i have to code the perspective thing by hand
Or does opengl do it
opengl does not do it unless you use the legacy API
normally you would use a math library like glm to make a perspective projection matrix for you
Altho there is nothing wrong with just rewriting the formula for projection matrix and it will work just fine 😊
But its more fun to implement urself (jk)