Skip to content

Help jumping from 2D to 3D in Lesson 1 #99

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

Open
rwdavis3rd opened this issue Mar 26, 2022 · 1 comment
Open

Help jumping from 2D to 3D in Lesson 1 #99

rwdavis3rd opened this issue Mar 26, 2022 · 1 comment
Assignees

Comments

@rwdavis3rd
Copy link

In the opening sentence of Lesson 4 we admit that the rendering we've been doing so-far is an orthographic perspective, which is rendered by simply ignoring the Z coordinate of 3D points. This would have been useful knowledge to me, back in Lesson 1, when we leapt from drawing simple 2D lines, between 2D points, to drawing a 3D wire mesh from a set of 3D coordinates, without any bridging commentary. I may be slower than most, but my reaction at that point was:

Wait! isn't he going to do some sort of projection from world coordinates to screen coordinates? 

It was after studying your rendering code that the penny dropped: that your rendering scheme, simply ditches the Z coordinate of each point. (My shallow experience with 3D graphs was just enough that I knew to label this as orthographic rendering at that point.)

My suggestion: at the moment of transition from 2D lines to wire mesh, there be some rhetoric that rendering will ignore Z for now, which will produce decent, if a bit imperfect, rendering for 3D things viewed from far-Z... just a suggestion.

@ssloy ssloy self-assigned this Feb 21, 2025
@ssloy
Copy link
Owner

ssloy commented Feb 21, 2025

will think about it for the revamp coming

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

4 participants
@ssloy @rwdavis3rd and others