-
Notifications
You must be signed in to change notification settings - Fork 330
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
2D scene does not take point radii into account when calculating bounding box #1547
Comments
Thanks for the detailed report with repro! |
I believe this is related to #1113 This is another (much more serious) case of the bounding box being too small for the content. One of the easiest (though admittedly hacky) ways to force a larger bounding box is to log one explicitly with a rect. For example, if I use:
|
Seems like the points are somehow missed by the bounding box calculations, but I don't see how they could be… weird. |
I don’t think they’re missed. They just don’t have their radius taken into account. These points all lie on a horizontal line and so I suspect the bounding box here ends up having zero height. |
Ah right, that makes sense. Sounds like an easy enough thing to fix then. |
log_points
not working with 2D points
This turns out to get quite complicated quite quickly -- not actually a good first issue. I started working on it here: #1658 Although that kind of solves one edge case there is a long tail of issues such as supporting auto for points, handling lines, appropriately, and the fact that the future staging belt design means accessing this data from the builder may be an anti-pattern we should be moving away from. The better short-term solution here might be to give manual control of changing the bounding box for 2d views as a scene property so we have an escape hatch. |
The map view suffers from the same issue for the same reason. It's probably even more complicated to solve, as the scene unit to ui point relationship varies based on the latitude (in addition to whatever current "camera" setting the view has). |
Describe the bug
Visualizing 2D points does not seem to work (with Python at least), while docs suggest 2D or 3D points should work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should show a scatter plot.
Desktop (please complete the following information):
Additional context
Python 3.8.11, rerun-sdk 0.3.0
The text was updated successfully, but these errors were encountered: