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

[3D] Fix Y-Z inversion in point3dsymbolwidget #51855

Merged
merged 2 commits into from Feb 20, 2023

Conversation

ptitjano
Copy link
Contributor

A point on the 2D plane (x', y') is transformed to (x, -z) in the 3D world. It looks like point3dsymbolwidget does not handle this change. This MR fixes it.

current behavior

points-avant

new behavior

points-apres

cc @benoitdm-oslandia @wonder-sk

@github-actions github-actions bot added this to the 3.30.0 milestone Feb 14, 2023
@troopa81 troopa81 added 3D Relates to QGIS' 3D engine or rendering Bug Either a bug report, or a bug fix. Let's hope for the latter! backport queued_ltr_backports Queued Backports labels Feb 14, 2023
Copy link
Member

@wonder-sk wonder-sk left a comment

Choose a reason for hiding this comment

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

Good catch!

src/app/3d/qgspoint3dsymbolwidget.cpp Outdated Show resolved Hide resolved
@ptitjano ptitjano force-pushed the translation-y branch 2 times, most recently from 02ebb49 to dc65257 Compare February 19, 2023 19:01
Billboard height and translation along the Y axis are sync. The
translation value can be negative. Therefore, the billboard
height value can also be negative.
@ptitjano ptitjano force-pushed the translation-y branch 2 times, most recently from 560673c to 85ce36d Compare February 20, 2023 10:04
@wonder-sk wonder-sk enabled auto-merge (rebase) February 20, 2023 10:04
auto-merge was automatically disabled February 20, 2023 10:28

Head branch was pushed to by a user without write access

A point on the 2D plane (x', y') is transformed to (x, -z) in the 3D
world. The rotation, scale and translation values of a point need to
be converted in the 3D world.

This change applies the correct transformation to have a correct
binding between the 2D and 3D world.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D Relates to QGIS' 3D engine or rendering backport queued_ltr_backports Queued Backports Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants