pycraft
pycraft copied to clipboard
HUGE terrain gen improvement
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
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.
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.