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 node picking regression #7732

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Fix node picking regression #7732

merged 2 commits into from
Apr 3, 2024

Conversation

daniel-wer
Copy link
Member

@daniel-wer daniel-wer commented Apr 3, 2024

The regression allowed to select nodes in orthogonal mode that were not visible.
Also, I fixed the far clipping distance for flight/oblique mode which allowed to select nodes that were not visible. In contrast to orthogonal mode, nodes that are clipping-distance-behind the plane cannot be seen in flight/oblique mode which needed to be done similarly during node picking.

URL of deployed dev instance (used for testing):

Steps to test:

  • Set some nodes and move forward/backward until they cannot be seen any longer. You should not be able to select them. When moving so you can just about see them, you should be able to select them. Test in orthogonal and flight mode.

Issues:


(Please delete unneeded items, merge only when none are left open)

…t visible. Fix far clipping distance for flight/oblique mode.
@daniel-wer daniel-wer self-assigned this Apr 3, 2024
// The far value has to be set, since in normal rendering the far clipping is
// achieved by offsetting the plane instead of setting the far property.
camera.far = state.userConfiguration.clippingDistance;
}
camera.updateProjectionMatrix();
return camera;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the fix for the actual regression. The camera was cloned and modified (in this function that was introduced in a recent PR), but then later in the original function, the old camera was used again.

Copy link
Member

Choose a reason for hiding this comment

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

argh, this explains a lot of the weirdness I experienced with the clipping distances 🙈 thanks for fixing this!

@daniel-wer daniel-wer merged commit 162ac5a into master Apr 3, 2024
2 checks passed
@daniel-wer daniel-wer deleted the fix-node-picking-regression branch April 3, 2024 12:32
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.

3 participants