Thoughts on terrain

Once again I’m thinking about reworking terrain render. Introduction of terrain textures rendered old terrain render approach useless.

Let’s recap how it works. Till now everything gets assembles from tiles. Each tile having from 2 to 20+ polygons to show different terrain type and transitions between them:

tile03

Everything is made from colored polygons here

Now with textures and procedural transitions between them it is no longer necessary to have extra polygons. Each tile can be just 2 triangles (except for special cases described below).

textures

Textures don’t need extra polygons

And then there’s no need for complicated assembly of terrain out of a set of tiles, where each one has to be picked and transformed to fit into its place. All this can be replaced with a uniform mesh where just textures weights have to be applied.

There’s a problem though (or two). Mountains and gorges. Mountains need extra polygons to look mountainous. They need volume and interesting profile. I also want the game to have gorges like these:

2016-02-22 terraced mountains

A kind of gorges that Knights Province needs

Mountains being a smaller problem – they could be made of a separate mesh, similar to “plain” terrain. A more detailed and volume mesh that rise above “plain” mesh only when there are mountains. The problem here is the transition between 2 meshes – it could look unnatural if mountain comes out of grass for example.

terrain

Unnatural example mock up

What is good with this approach, is that is water rendering fits in nicely into this “meshes-layers” paradigm. So there’s flat terrain mesh, walkable and interactive in game (can be flattened and such). Then there’s water surface mesh (which could become editable in MapEd and could acquire some special properties alike “flow direction”). And finally mountains mesh that could be more detailed and much less regular to allow for wilder mountains shapes. So let’s say that evens out the ugly flat-mountains transition.

Gorges are a different problem. I haven’t found solution for them yet ..

This entry was posted in How things work, Ideas. Bookmark the permalink.

3 Responses to Thoughts on terrain

  1. David says:

    I like how the terrain is implemented in Setters 6. I think it looks good and it’s fairly simple.

  2. Will says:

    Can’t wait for the final reworked game, keep up the good work!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.