-
Notifications
You must be signed in to change notification settings - Fork 51
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
Per-point colors in point clouds #494
Conversation
Codecov Report
@@ Coverage Diff @@
## main #494 +/- ##
==========================================
+ Coverage 52.22% 54.16% +1.93%
==========================================
Files 203 203
Lines 20215 20227 +12
==========================================
+ Hits 10557 10955 +398
+ Misses 9658 9272 -386
Continue to review full report at Codecov.
|
works for me. I made some changes in the iche033/6/marker_point_color branch for Metal. I don't have a working mac setup to test it though. Using the |
Thanks! Merged in. |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
* fix selection buffer crash due to resize and incorrect selections Signed-off-by: Ian Chen <ichen@osrfoundation.org> * test updating full selection buffer texture Signed-off-by: Ian Chen <ichen@osrfoundation.org> * reenable visual at test Signed-off-by: Ian Chen <ichen@osrfoundation.org> * fix codecheck Signed-off-by: Ian Chen <ichen@osrfoundation.org> * testing rgb no depth, full buffer Signed-off-by: Ian Chen <ichen@osrfoundation.org> * use 1x1 buffer, still no depth data Signed-off-by: Ian Chen <ichen@osrfoundation.org> * prnt scaling factor Signed-off-by: Ian Chen <ichen@osrfoundation.org> * disable device ratio Signed-off-by: Ian Chen <ichen@osrfoundation.org> * reenable depth and utils test Signed-off-by: Ian Chen <ichen@osrfoundation.org> * disable utils test, add visual at test after resize Signed-off-by: Ian Chen <ichen@osrfoundation.org> * test texelfetch Signed-off-by: Ian Chen <ichen@osrfoundation.org> * back to full buffer Signed-off-by: Ian Chen <ichen@osrfoundation.org> * print ogre log Signed-off-by: Ian Chen <ichen@osrfoundation.org> * codecheck Signed-off-by: Ian Chen <ichen@osrfoundation.org> * fixing selection buffer mat script Signed-off-by: Ian Chen <ichen@osrfoundation.org> * try 1x1 buffer again Signed-off-by: Ian Chen <ichen@osrfoundation.org> * revert some test changes Signed-off-by: Ian Chen <ichen@osrfoundation.org> * uncomment tests Signed-off-by: Ian Chen <ichen@osrfoundation.org> * update scaling factor Signed-off-by: Ian Chen <ichen@osrfoundation.org> * fix removing selection mat Signed-off-by: Ian Chen <ichen@osrfoundation.org> * update screenScalingFactor Signed-off-by: Ian Chen <ichen@osrfoundation.org> * minor tweak Signed-off-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Louise Poubel <louise@openrobotics.org>
6e52de8
to
d88e99e
Compare
FYI, I rebased this PR to Garden ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me.
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
🎉 New feature
Summary
We have been populating the
colors
vector inOgre2DynamicRenderable
, but not using the colors for anything.For most dynamic renderables, we fill the vertex buffer with position and normal. But points don't have normals, so we've been leaving half the buffer empty. The implementation on this PR takes advantage of those empty slots to place per-point colors (only RGB, no A).
Thanks @WilliamLewww for helping me out with this!
Test it
The marker example on gazebosim/gz-gui#318 uses this:
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸