-
Notifications
You must be signed in to change notification settings - Fork 17
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
circles getting smaller when zooming in #35
Comments
Hey, @LucaMarconato ! There were some bugs in point sizing in older versions of napari. I think the point scaling was fixed somewhat recently (napari/napari#5312, napari/napari#5050). You may need to update napari and vispy to correct the behaviour. |
Thanks for the answer. I have now installed |
Ellipses work! The downside is that the creation of the layer is like 5-10x slower. The good thins is that at some point we may want to support ellipses and rectangles (they originate from a |
Reopening because in #37 we went back to using points instead of ellipses for performance reasons, so this bug is still present (i.e. the radius of circles is unreliable and it depends on the zoom level). We can choose one of the following approaches to fix this, the underlined one is the currently chosen:
|
We are still using napari 0.4.17. I believe this should be fixed with 0.4.18, but let me get back to that. |
Sizes shouldn't change with zoom as far as I know... the issue we had in napari was with camera rotation. Do they actually get smaller, or do they simply stop growing once you zoom beyond a certain level? And are you on mac? If so, this sounds like it could be this old issue: vispy/vispy#2078 If it's that, there's no solution since it's a hardware limitation. |
Hi, thanks for the answer. Yes, I am on a Mac and correct, they don't get smaller but they stop growing. A workaround could be to use ellipses instead of points when a Mac is detected, but the performance is much worse. Any other advice? |
As I mentioned in that vispy issue, the best workaround would be to make our own implementation of billboards using geometry shaders (best, but currently an issue because apple does everything it can to make things harder with opengl) and/or meshes (less performant and requires more set up on the cpu side and so has slower startup, but would work fine everywhere). I don't really have the bandwith to work on this now, so afaik the current solutions are:
|
@kevinyamauchi I have just noticed (I think it was not happening before and today this started) that if I zoom in the circles I have get smaller. Before giving more details on napari version etc, does it happen to you to know that this is maybe a know bug or option can be quickly fixed?
Thanks
The text was updated successfully, but these errors were encountered: