Skip to content

matrix_init_look_at: Handle corner cases better#186

Merged
ebassi merged 1 commit into
ebassi:masterfrom
alexlarsson:fix-look-at
Jun 15, 2020
Merged

matrix_init_look_at: Handle corner cases better#186
ebassi merged 1 commit into
ebassi:masterfrom
alexlarsson:fix-look-at

Conversation

@alexlarsson
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@ebassi
Copy link
Copy Markdown
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