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

WEB-1261 #2478

Merged
merged 4 commits into from
Jul 18, 2024
Merged

WEB-1261 #2478

merged 4 commits into from
Jul 18, 2024

Conversation

AlexandruPopovici
Copy link
Contributor

Description & motivation

Fixes https://linear.app/speckle/issue/WEB-1261/nearplanecalculationaccurate-fails-for-meshes-that-have-disjointed
For meshes made out of disjoint sets, just querying the TAS when computing the camera near plane did not yield correct values, issue seen in the video below

bandicam.2024-07-08.13-47-25-740.mp4

The objects in the video, are actually a single mesh made out of disjoint pieces. It's this case in particular that we need to fix near plane computation for.
So we did, by using the fallback empiric near plane value when the camera gets inside the bounds of a batch object when traversing the TAS. Video below shows the same stream with the fix

bandicam.2024-07-08.13-48-15-050.mp4

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

…f a TAS batch object and we can no longer get a min dist from that batch object, we just use the fallback emipiric value. Also added an option to display TAS BVH for debuging purposes
Copy link

linear bot commented Jul 8, 2024

didimitrie
didimitrie previously approved these changes Jul 9, 2024
@didimitrie didimitrie merged commit cd15c59 into main Jul 18, 2024
21 of 23 checks passed
@didimitrie didimitrie deleted the alex/WEB-1261 branch July 18, 2024 09:57
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.

2 participants