Open
Conversation
Nejdříve se musí provést depth mapping a až teprve můžeme provést perspective division. Je to napsáno i v citaci: http://learnwebgl.brown37.net/08_projections/projections_perspective.html Translate the apex of the frustum to the origin. (Yellow matrix) Scale the depth values (z) into a normalized range (-1,+1) (and setup for division by (-z)). (Purple matrix) Perform the perspective calculation. (Gray matrix) Scale the 2D (x’,y’) values in the viewing window to a 2-by-2 unit square; (-1,-1) to (+1,+1). (Cyan matrix)
Owner
|
No jo, jenže ten samý článek má o kus výše: Je možné, že výsledek vyjde stejně, ať je ta matice na kterémkoli z těch dvou míst. Checknu to za pár dní, až mě nebude pálit deadline, a pokud máš pravdu, a M_{depth} fakt musí být už druhá, tak tohle PR mergnu. Každopádně díky za PRko! :D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nejdříve se musí provést depth mapping a až teprve můžeme provést perspective division. Je to napsáno i v citaci: http://learnwebgl.brown37.net/08_projections/projections_perspective.html