pycraft icon indicating copy to clipboard operation
pycraft copied to clipboard

HUGE terrain gen improvement

Open jdonszelmann opened this issue 8 years ago • 2 comments

hey guys, was trying to mod the game so it would use defaul textures and do better terrain gen (with like caves etc) and then i found this in world.py: self._shown[coords] = self.batch.add( 24, GL_QUADS, self.texture_group[block.identifier], ('v3f/static', vertex_data), ('c3f/static', shade_data), ('t2f/static', texture_data)) this is the drawing of the world. notice that it says "static". the world changes every frame and it should be "stream". after i changed terrain gen was so quick i couldnt see non-generated chunks anymore.... maybe something to add for ya guys :P

jdonszelmann avatar Jul 18 '17 14:07 jdonszelmann

That looks like a pretty huge thing, yeah.

Would you like to do a pull request for that yourself, or would you like me to set it up?

It also looks like something that https://github.com/fogleman/Minecraft would benefit from. It probably wouldn't be a bad idea to submit a pull request to them as well, from a resume building perspective.

traverseda avatar Jul 18 '17 15:07 traverseda

i can do it. also im working on an actual user interface (menu, inventory and more blocktypes. may post that somwhere here too some day.

jdonszelmann avatar Jul 18 '17 15:07 jdonszelmann