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

Fix y billboard shear when rotating camera #52151

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Fix y billboard shear when rotating camera #52151

merged 1 commit into from
Sep 20, 2021

Conversation

CaptainProton42
Copy link
Contributor

Fixes #52108.

Model rotation and scale are also ignored when transforming the billboard matrix now, removing additional shear when rotating the model itself as well as bringing it more in line with BILLBOARD_ENABLED.

Fixes shear effect with `BILLBOARD_FIXED_Y` when the camera is rotated around the z-axis by rotating the mesh correctly into view space.

Also removes shearing effects that occur when rotating the mesh by excluding the model rotation and scale from the billboard matrix.
@Calinou Calinou added bug topic:3d topic:rendering cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Aug 27, 2021
@Calinou Calinou added this to the 4.0 milestone Aug 27, 2021
@akien-mga akien-mga requested a review from a team September 14, 2021 08:35
@clayjohn clayjohn requested a review from JFonS September 14, 2021 14:42
Copy link
Contributor

@JFonS JFonS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@akien-mga akien-mga merged commit 9d43d49 into godotengine:master Sep 20, 2021
@akien-mga
Copy link
Member

Thanks!

@CaptainProton42 CaptainProton42 deleted the fix-y-billboard-shear branch September 20, 2021 11:41
@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Y-Billboarded QuadMesh rotates unexpectedly when 3D camera is rotated on the Z axis
4 participants