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

Is it possible to provide a simple render mode? #245

Open
mushroomfire opened this issue Dec 5, 2023 · 2 comments
Open

Is it possible to provide a simple render mode? #245

mushroomfire opened this issue Dec 5, 2023 · 2 comments

Comments

@mushroomfire
Copy link

Polyscope is an exceptional library. I intend to utilize it for visualizing a large number of points (>5,000,000). The default sphere mode is excessively slow on my computer, while the quad mode appears too flat. I would like to inquire if you could provide a mode that only displays the sphere with a minimum number of rendering operations, as it would be extremely beneficial.

@mushroomfire
Copy link
Author

By the way, I use the Polyscope python library.

@nmwsharp
Copy link
Owner

Hi! Glad to hear you like the library.

It would be great to speed up the sphere point rendering operations. There are two main paths to doing this:

(a) Optimize the shader code around the ray-sphere intersection. It can probably be improved, I did not try to optimize it at all when writing it.

(b) Part of the reason sphere points are slow is because they write to the depth buffer, which disables early-z culling. In openGL 3.3 (which polyscope targets) there is no way around this. But more modern openGL does have a way to indicate you are only increasing the depth, and still enable z-culling in that case. We could detect when openGL > 3.3 is available and make use of this feature if so.

I don't have immediate plans to start working on either of those, but would be happy to accept a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants