Last time we have stopped on basic terrain appearance. How mixing surfaces and transitions between them works. Today’s the second part of the terrain being explained – decals.
Terrain decals have their name because they more or less repeat their real world analog. You can think of them as rubber pieces attached with a glue on to a tiles surface. Key differences between objects and decals are:
– objects are rigid, they are “attached” to terrain at one single point and just change their position if tile height below them is changed;
– decals are elastic, they behave like a rubber and deform with the underlying tile.
This is the same decal from the head of the article, but now it has been severely stretched and bent with the tile it is “stuck” with.
Farmers fields are decals as well:
The custom deformation mechanism was specifically made to preserve relative elements size regardless on overall deformation. In other words – fences height are always the same, no matter how bent the underlying tile is. Green areas popping through is a minor bug that I plan to fix later.
Fields/roads/plans decals come in a packs of 6 or 16 elements and have one interesting property – they are aware of their neighbors. So when there is only one field placed it looks like a top-left one (fenced around all 4 sides), but if there are for example 4 fields in a 2×2 block they will look like top-right decal, rotated to have fences only on the outsides. Roads, fields, house plans, house fences, all use this sort of decals sets. 6 elements are enough for any neighbor configuration if decals can be rotated, 16 when they can’t (i.e. fields always need to be aligned in one direction).
Decals can be even thicker, these are ideas for stone deposits decals, being as thick as a half of a tile:
They behave exactly the same, deforming with tiles heights.
Another variation are decals specially mean to be used on slopes. They deform differently depending on the underlying height change:
For example this is an idea for a corner section of a wall. Walls teeth are always the same height and walls lower part stretches as it is needed to cover the height change.
Summing up, these are various decals available in the NextGame so far:
As always, comments and questions are welcome!
What ideas for more decals do you have? 😉