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

Edge cases when tilt is set to 0 #1

Open
aheze opened this issue Sep 27, 2022 · 0 comments
Open

Edge cases when tilt is set to 0 #1

aheze opened this issue Sep 27, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@aheze
Copy link
Owner

aheze commented Sep 27, 2022

When the tilt is set to 0, this gets printed in the console:

ignoring singular matrix: ProjectionTransform(m11: 0.0, m12: 1.0, m13: 0.0, m21: 0.0, m22: 1.0, m23: 0.0, m31: 0.0, m32: 0.0, m33: 1.0)
ignoring singular matrix: ProjectionTransform(m11: 0.0, m12: 1.0, m13: 0.0, m21: 0.0, m22: 1.0, m23: 0.0, m31: 0.0, m32: 0.0, m33: 1.0)
ignoring singular matrix: ProjectionTransform(m11: 0.0, m12: 1.0, m13: 0.0, m21: 0.0, m22: 1.0, m23: 0.0, m31: 0.0, m32: 0.0, m33: 1.0)
ignoring singular matrix: ProjectionTransform(m11: 0.0, m12: 1.0, m13: 0.0, m21: 0.0, m22: 1.0, m23: 0.0, m31: 0.0, m32: 0.0, m33: 1.0)
ignoring singular matrix: ProjectionTransform(m11: 0.0, m12: 1.0, m13: 0.0, m21: 0.0, m22: 1.0, m23: 0.0, m31: 0.0, m32: 0.0, m33: 1.0)

Also, the shadow gets significantly darker:

Tilt.Shadow.mov

Could this be due to CGAffineTransform edge cases when the value is 0? Maybe we should have an if check for 0 and adjust as needed.

Current workaround

Set the shadow opacity to 0 when settings the shadow to 0.

@aheze aheze added help wanted Extra attention is needed bug Something isn't working labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant