Another update, for the last few days i have been working on adding a dynamic system to allow me to get a block anywhere in the loaded range of the world, this is quite a task because it means i need to convert world coordinates to local chunk coordinates, the way i did this was by dividing the values to get the chunk that contained the block, then i would use the modulo operator to get the remainder of the calculation , allowing me to get the local block coordinate. I also worked this morning on fixing a lot of bug fixes and added a simple ore generation system, which generates chunks of ores , this system is far from complete but at the moment, it generates some pretty decent looking veins of ore.
Here is a preview of ores generating in the world :
and this is a preview of the distribution of ores :
The texture i am using for the ores is just a test texture i made, so i can easily see a difference between the stone and the ore block, it is meant to be some sort of coal ore, but for now it will do.
Thanks for reading and keep checking the blog for more updates!


No comments:
Post a Comment