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

sorting indices back to front and discarding indices to points outside the view. #6

Open
luisgargitter opened this issue Mar 9, 2023 · 2 comments

Comments

@luisgargitter
Copy link
Owner

No description provided.

@luisgargitter luisgargitter converted this from a draft issue Mar 9, 2023
@Boris-Dimov
Copy link
Collaborator

This is going to be cumbersome, VERY cumbersome, and borderline impossible if we have to consider anything else besides a single convex shape in view. I looked at how Z-Buffers are done, it's very computationally intensive and is going to be slow when done on the CPU.

@luisgargitter
Copy link
Owner Author

restructuring all 2d rendered points into a quad-tree might be the way to go if we are going for sorting the vertices of all objects at once. Another approach would be to sort the verts of each object locally and all then reorder the entire objects. This should not be a problem as we do not expect overlapping objects.

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

No branches or pull requests

2 participants