Skip to content
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

Lesson 4 what is rz in matrix in "Time to work in full 3D" #90

Open
lukesawicki opened this issue Jan 10, 2022 · 2 comments
Open

Lesson 4 what is rz in matrix in "Time to work in full 3D" #90

lukesawicki opened this issue Jan 10, 2022 · 2 comments

Comments

@lukesawicki
Copy link

I cannot understand in paragraph "Time to work in full 3D" what is rz in matrix. Is it somehow connected with "retro-projection" which i do not understand to. I started from lesson 4 because I started programmin software renderer almost year ago and now I can draw lines and triangles with colour, but this lesson is not exactly helpfull because this too things "rz" in matrix and "retro-projection".

@Buzzefall
Copy link

Buzzefall commented Mar 9, 2022

Hi, lukesawicki! Try this tutorial, it really explains a lot: https://www.ocf.berkeley.edu/~horie/persp.txt. There, 4D-Space or matrices are not mentioned whatsoever so it is simpler to understand, but matrices are just clever way to write down same ideas.

The short answer is that r = 1/D, where D is the distance between the camera position (your eye, for example) and the screen on which we project world objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Buzzefall @lukesawicki and others