#Perspective projection

31 messages · Page 1 of 1 (latest)

shut geode
#

Hey folks,

i am doing khan academy linear algebra course and sal defines the projection formula as:

quiet robinBOT
shut geode
#

s the subspace projection formula a perspective projection? if not how can it be adapted to be one

#

Also is the formula bad?

snow nymph
#

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

shut geode
#

How so

snow nymph
#

Which sort of squishes the area of some defined frustum into a unit cube

shut geode
#

Ok so it is possible to make games with that formula

#

Or will it look bad

#

Thx btw

snow nymph
#

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

shut geode
#

Is it just an orthographic formula

#

Or not even that

#

Lol

snow nymph
#

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

shut geode
#

How do i learn about perspective projection

#

Is it complicated

stiff night
snow nymph
#

Ah you were faster 😆

shut geode
shut geode
#

1 last question iff thats ok

#

Do i have to code the perspective thing by hand

#

Or does opengl do it

stiff night
#

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

snow nymph
#

Altho there is nothing wrong with just rewriting the formula for projection matrix and it will work just fine 😊

shut geode
#

But its more fun to implement urself (jk)