Sunday, 25 August 2013

Terrain Updates!

Its been a short while since i last posted so i guess i should notify you guys of my progress. Over the last week, i have been focused on the chunk loading and terrain part of the game, i have managed to overhaul the chunk loading and terrain completely for a much better looking world, i doubled the size of the loaded area, however it still looks too small, i need to think about how i am going to do for long ranged terrain, I might possibly use a simple mesh deformed with the height map data to look like you can see far away.

Here is a preview of how the new terrain looks :





As you can see, it looks much more realistic, more " smoother " and much bigger which allows for much more emphasis on the look of the world, before, the hills were rapid and very repetitive which made the game look very plain and boring, I think this feature lets the game feel much better.

Anyway, thanks for reading and as always, keep checking the blog for more updates!

Saturday, 17 August 2013

Improved chunk loading

Hello again,
The last few days i have been working hard on trying to make the chunk loading work and I finally got it to work! I found out that the issue was due to floating point precision, unity was turning values such as "0" into "0.00000381497" which is pretty much 0, however when your searching for a certain value, it gives null errors everywhere, this was easily solved by rounding / flooring the values to integers.

I also worked on adding basic terrain to the world, it generates at a decent speed with a couple of lag spikes in between loading chunks, this is increased when you move the chunks faster and faster, bringing the FPS down to around 5 if you spam the key, however this wont happen in game because the player wont be able to move that fast.

For any of you who want to try the game, please visit this link :

https://dl.dropboxusercontent.com/u/177467929/build_0.0.1/build_0.0.1.html

There are still rendering issues with chunks, you will still see through a few faces of the chunks, just a little bug i need to fix, but the main focus is on the chunk loading and not rendering for now.

The controls are ( W , S , A , D ) for movement. Please note, there may possibly be some Null Errors still, these are due to the grass blocks trying to spread outside the chunk bounds, this wont affect anything right now.

As always, thanks for reading this entry and keep checking the blog for more updates!


Saturday, 10 August 2013

Chunk Loading

Hello again, For the last few days i have been working on the chunk loading / unloading, and after hours of pulling my hair out, i finally started to get somewhere. I have been reworking my mathematical functions, optimizing them and allowing for the game to run a lot faster. If you want to see how far i have gotten with the chunk loading, please click this link :

https://dl.dropboxusercontent.com/u/177467929/WEB_Output.html

( W S A D to move the chunk loading area around )

This version is still glitchy however, sometimes you cannot move the chunks around ( something i am currently working on fixing ) however apart from that, it runs pretty well.

This blog post is quite short because i have lots of work to do, so as usual, keep checking the blog for more progress!