# Terrain Brush draws funny

**URL:** <https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625>\
**Category:** Questions\
**Created:** [July 2, 2015, 2:52am UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625 "2015-07-02T02:52:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gargoil](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Gargoil](https://discourse.mapeditor.org/u/Gargoil)\
**Post date:** [July 2, 2015, 2:52am UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/1 "2015-07-02T02:52:34Z")

</div>

Hello,

I followed the tutorial on terrain from [http://doc.mapeditor.org/manual/using-the-terrain-tool/](http://doc.mapeditor.org/manual/using-the-terrain-tool/) and:  
when drawing vertically a terrain, it draws fine  
when drawing diagonally, the already drawn tiles are changed randomly.

![](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/1X/903230a9cd9499f2b379c0b3cf7a331a26030ae0.png)

My Terrain Information looks like this:  
 ![](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/1X/9c4f8265004816adc9b4300f116e5c67a041dbad.png)

Does anyone have the same problem or did I miss something?

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [July 2, 2015, 6:51am UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/2 "2015-07-02T06:51:34Z")

</div>

This happens if your transitions are incomplete. The terrain algorith then tries to find other valid transitions, which usually means a total mess.

In your case you seem to be missing the inner corners (3 corners green, 1 water).

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![Gargoil](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Gargoil](https://discourse.mapeditor.org/u/Gargoil)\
**Post date:** [July 2, 2015, 4:06pm UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/3 "2015-07-02T16:06:59Z")

</div>

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![TilemapKit](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tilemapkit/32/255_2.png) [@TilemapKit](https://discourse.mapeditor.org/u/TilemapKit)\
**Post date:** [July 2, 2015, 7:01pm UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/4 "2015-07-02T19:01:26Z")

</div>

I read “Terrain bunny” 😃

It’s definitely way too hot today …

---

<div class="post-metadata">

**Author:** ![Greg\_Malone](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/greg_malone/32/1872_2.png) [@Greg\_Malone](https://discourse.mapeditor.org/u/Greg_Malone)\
**Post date:** [July 7, 2015, 1:48am UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/5 "2015-07-07T01:48:36Z")

</div>

The terrain tool is such a useful tool… for the few terrains that are available. Sure would be awesome if either a solid clear explanation of how to make your own terrains was available, or if the whole terrain tool creation process could be facilitated in some way.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [July 7, 2015, 3:02pm UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/6 "2015-07-07T15:02:48Z")

</div>

@Greg_Malone You’re definitely right that the tutorial about how to set up the terrain tool is missing a section about how to actually create such a tileset in the first place. It is mainly because [there quite a few such tilesets available already](http://opengameart.org/content/terrain-transitions) and I assumed it was somewhat “common knowledge” or already explained elsewhere. But if it is, then there should be at least a link to it.

As for facilitating the creation of the more complicated multi-terrain setups, there is a Terrain Generator tool lurking on the `wip/terraingenerator` branch, which can generate [images like this](https://github.com/tales/sourceoftales/blob/master/tiles/terrain.png) along with [the .tsx file](https://github.com/tales/sourceoftales/blob/master/tiles/terrain.tsx). This helps a lot when it does what you need. One day it will be documented and merged into `master`.

---

<div class="post-metadata">

**Author:** ![Greg\_Malone](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/greg_malone/32/1872_2.png) [@Greg\_Malone](https://discourse.mapeditor.org/u/Greg_Malone)\
**Post date:** [July 7, 2015, 3:18pm UTC](https://discourse.mapeditor.org/t/terrain-brush-draws-funny/625/7 "2015-07-07T15:18:06Z")

</div>

Bjorn, many thanks for the link to the existing terrains. Somehow I must’ve missed the reference to it. Perhaps a more out-front link and explanation would be useful, unless there already is one that I missed. Perhaps a link inside the Tiled program itself so it cannot be missed.

I will take a look at the terrain generator tool.

Many thanks, and keep up the _great_ work.

Greg
