Pages

Saturday 22 September 2012

Terrain Generation, Shadows and Lighting


We worked on terrain generation and decided to scrap biome areas, 'biomes' still exist in some form but as a percentages which are converted into parameters to the terrain generator. For example, an area is considered grassland if the temperature and rainfall are both average. Grasslands and deserts tend to be relatively flat, so the those biomes have a high flatness value, which is a parameter that is given to the terrain generator. Later these and more parameters can be given to the plant life generator. This means biomes are not randomly assigned and do not have hard transition lines and even though an area could be grassland, different parts could still have different types of plants depending on the temperature or rainfall.

Next was the lighting. The system is similar to Minecraft but there are a few differences including how its rendered. The lighting system uses 3D textures so that the light values are separate from the geometry and it also allows other entities to use the texture for the entities own lighting.

The lighting still has a few bugs and also needs some optimisation. Some more tweaking will be done and later on torches and dynamic lights.



3 comments:

  1. So, what is the idea behind the game? Looks like you guys are going for the minecraft look.Or is it too early to judge? Will gameplay be similar?

    ReplyDelete
  2. The basic gameplay will be similar to Minecraft. We also going for a similar look but we are going to have sloped and corner blocks soon to smooth out the terrain.

    We are going to expand on the Minecraft gameplay to add some of the things you would find in the Minecraft mods like Towny and BuildCraft as well as supporting a lot more players. I am going to try and write another post on the basic gameplay soon.

    ReplyDelete
  3. You can just check out the about page at the top, it explains everything

    ReplyDelete