Skip to content

Model transform view matrix fix#3544

Merged
PaulHax merged 2 commits into
Kitware:masterfrom
PaulHax:modeltransform-viewmatrix-fix
Jul 12, 2026
Merged

Model transform view matrix fix#3544
PaulHax merged 2 commits into
Kitware:masterfrom
PaulHax:modeltransform-viewmatrix-fix

Conversation

@PaulHax

@PaulHax PaulHax commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

When applying the model transform matrix, it was observed that the matrix was being applied in the view space leading to unintended orientation specific artifacts. This change fixes the order of matrix multiplication for the transform and adds testing to ensure that the transform is applied camera-orientation-agnostically in the world space.

Supersedes #3538

Review comments here PaulHax#30

@PaulHax PaulHax changed the title Modeltransform viewmatrix fix Model transform view matrix fix Jul 8, 2026

@finetjul finetjul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

You can check vtkCamera.getViewMatrix() usage, there are a few places where you can already pass an argument to avoid new variable instantation.

@sankhesh sankhesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@sankhesh sankhesh mentioned this pull request Jul 9, 2026
5 tasks
@sankhesh

Copy link
Copy Markdown
Collaborator

@finetjul @PaulHax Can we merge this please?

@PaulHax PaulHax added this pull request to the merge queue Jul 12, 2026
Merged via the queue into Kitware:master with commit b23cabc Jul 12, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 36.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Automated label label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants