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

--[Bugfix] - Compute AO cumulative bbox on creation unconditionally. #2420

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

jturner65
Copy link
Contributor

Motivation and Context

We've been computing AO bboxes during creation only if they were specified to use visuals based on link shapes. This PR changes this to always compute cumulative bboxes for loaded AOs. This was not a problem before due to simulator::reconfigure calling reset() which would recompute the cumulative bbox on the scene root node, which would hit the AOs as well, but any AOs that were loaded after reconfigure would be missed.

How Has This Been Tested

Local C++ and Python tests pass.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@jturner65 jturner65 requested a review from aclegg3 July 1, 2024 17:09
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 1, 2024
jturner65 added a commit that referenced this pull request Jul 1, 2024
This was compensating for a sim bug that PR #2420 addresses.
Copy link
Contributor

@aclegg3 aclegg3 left a comment

Choose a reason for hiding this comment

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

This is because the links are not children of the root node on the SceneGraph. When no visual nodes are present, there isn't any content for the link AABB to include. I'm already WIP on writing the correct way to compute these AABBs for the full shape.

@jturner65
Copy link
Contributor Author

jturner65 commented Jul 2, 2024

This is because the links are not children of the root node on the SceneGraph. When no visual nodes are present, there isn't any content for the link AABB to include. I'm already WIP on writing the correct way to compute these AABBs for the full shape.

The additional code in this PR fixed the problem where newly-added AOs did not have their bboxes computed. (since the hot-loaded objects post-reconfigure were not getting the bbox calc performed)

EDIT: Due to the nature of how the links in AOs are stored in the scene graph, the solution presented in this PR is incomplete, as Alex said.

Copy link
Contributor

@aclegg3 aclegg3 left a comment

Choose a reason for hiding this comment

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

Thanks

@aclegg3
Copy link
Contributor

aclegg3 commented Jul 2, 2024

I'm already WIP on writing the correct way to compute these AABBs for the full shape.

This is an additional change. I'll build on top of this improvement.

@jturner65 jturner65 merged commit f99bf7d into main Jul 2, 2024
8 of 10 checks passed
@jturner65 jturner65 deleted the Bugfix_AlwaysCreateAOBBox branch July 2, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants