PistonDevelopers / hematite

A simple Minecraft written in Rust with the Piston game engine
http://hematite.piston.rs/
MIT License
1.87k stars 105 forks source link

Chunk culling for more performance. #73

Open eddyb opened 10 years ago

eddyb commented 10 years ago

While there is a clever algorithm (that Minecraft vanilla has recently started using), it's also possible to handle "trivial rejects" by projecting the corners of each chunk and skipping those that have all corners outside of the screen.

bvssvni commented 10 years ago

Closed by 7ff66e37e4855be2f7ab3c57ac5b707ccf3b2808

eddyb commented 10 years ago

This is the fancy algorithm https://tomcc.github.io/2014/08/31/visibility-1.html.

bvssvni commented 10 years ago

This is done.

bfops commented 10 years ago

I haven't looked too closely, but I wonder if this idea has anything to offer? Does hematite currently skip rendering of chunks that are occluded by, for example, a mountain?

bvssvni commented 10 years ago

@bfops Not as far as I know. I am moving stuff to gfx_voxel, so I opened up an issue https://github.com/PistonDevelopers/gfx_voxel/issues/3

eddyb commented 10 years ago

@bvssvni how is it done? I reopened because it hasn't been implemented yet - so far we just have a hacky frustum culling technique. @bfops I believe the method vanilla uses, and described in the blog post linked above, will handle that, or at least some forms of it.

Mhowser commented 4 years ago

any progress on this?

eddyb commented 4 years ago

I wonder if we should archive the repository, since I haven't had time to work on this for years and I don't think any major development has happened since.

atheriel commented 4 years ago

Might be best to put something in the README, at least. There's a chance someone will come along and want to take up the reins of the project.