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

Enable selection buffer based ray query (ogre2) #510

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Dec 9, 2021

Signed-off-by: Ian Chen ichen@osrfoundation.org

🦟 Bug fix

Summary

#446 made a few fixes to selection buffer for mouse picking and got the tests to pass but it didn't remove the code that disabled this feature. So currently mouse pickin is still based on the triangle intersection based method.

This PR enables ray queries using selection buffer in ogre2 again. I brought this commit back to fix the Utils test.

To test:

run the fortress demo world and mouse orbit control should be smoother.

ign gazebo -v 4 -r "https://fuel.ignitionrobotics.org/1.0/OpenRobotics/worlds/Fortress demo"

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Dec 9, 2021
@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #510 (59ea9a6) into ign-rendering6 (6c463bd) will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering6     #510      +/-   ##
==================================================
- Coverage           55.44%   55.40%   -0.05%     
==================================================
  Files                 195      195              
  Lines               19736    19742       +6     
==================================================
- Hits                10943    10938       -5     
- Misses               8793     8804      +11     
Impacted Files Coverage Δ
ogre2/src/Ogre2RayQuery.cc 61.38% <ø> (-11.25%) ⬇️
ogre2/src/Ogre2Camera.cc 88.60% <0.00%> (+1.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c463bd...59ea9a6. Read the comment docs.

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Nice! Works on both Bionic and Focal.

@chapulina chapulina merged commit 7aaa8cd into ign-rendering6 Dec 10, 2021
@chapulina chapulina deleted the enable_ray_query_sb branch December 10, 2021 01:36
ahcorde pushed a commit that referenced this pull request Dec 14, 2021
* Check for OpenGL backend before calling GL APIs (#509)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Enable selection buffer based ray query and fix test (#510)

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* 🎈 6.1.0 (#511)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Co-authored-by: Louise Poubel <louise@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants