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

matrix_init_look_at: Handle corner cases better #186

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

alexlarsson
Copy link
Contributor

graphene_matrix_init_look_at() currently breaks badly in the case
where the given point is either the same as the eye, or in "up" direction
from the eye.

The exact definition of look_at() kinda breaks down in this situation,
but this is the behaviour three.js uses, and its better than nothing.

graphene_matrix_init_look_at() currently breaks badly in the case
where the given point is either the same as the eye, or in "up" direction
from the eye.

The exact definition of look_at() kinda breaks down in this situation,
but this is the behaviour three.js uses, and its better than nothing.
@alexlarsson
Copy link
Contributor Author

FTR, the green plane in examples/clipping in gthree master is fixed by this commit.

@ebassi
Copy link
Owner

ebassi commented Jun 15, 2020

Nice; I do wonder if we have tests that have been commented out because of this.

@ebassi ebassi merged commit e5f8e9c into ebassi:master Jun 15, 2020
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

Successfully merging this pull request may close these issues.

2 participants