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

Move from Painter's algorithm to actually removing hidden voxels #5

Closed
pforhan opened this issue Aug 12, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@pforhan
Copy link
Owner

commented Aug 12, 2015

Tricky but I'm sure it's possible. Could you ask the projection if a voxel is hidden entirely by another one or set of them? How would you know what question to ask?

We could also try reverse painter's, where we draw the highest first and then don't draw anywhere we've drawn.

Maybe we can ask a perspective to do a filter pass for us? If we could eliminate even just direct matches (perspective gives the same coordinates and the same or smaller size) that'd make a big difference.

@pforhan

This comment has been minimized.

Copy link
Owner Author

commented Aug 12, 2015

https://en.wikipedia.org/wiki/Z-buffering could be effective, too. The depth buffer's going to take up a lot of space, but such may be unavoidable.

Depending on how it's structured, there may be some overdraw, but there won't be a problem of underdraw, so if you sort your data right then it mostly works itself out, skipping costly rendering. It'd still be nice to fully remove voxels, though.

@pforhan

This comment has been minimized.

Copy link
Owner Author

commented Apr 28, 2016

Working on this now.

@pforhan pforhan modified the milestone: Swing Alpha 1 Apr 28, 2016

@pforhan pforhan self-assigned this Apr 28, 2016

@pforhan

This comment has been minimized.

Copy link
Owner Author

commented Jun 22, 2017

Going to leave this as a toggle, as painter's is pretty in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.