# Soft map borders

**URL:** <https://forum.babylonjs.com/t/soft-map-borders/8915>\
**Category:** Questions\
**Created:** [March 2, 2020, 11:54am UTC](https://forum.babylonjs.com/t/soft-map-borders/8915 "2020-03-02T11:54:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RemyRaes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/remyraes/32/6278_2.png) [@RemyRaes](https://forum.babylonjs.com/u/RemyRaes)\
**Post date:** [March 2, 2020, 11:54am UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/1 "2020-03-02T11:54:11Z")

</div>

Hello there!

I’m trying to create a map for some characters to travel; to do so, I have navigation mesh creation in mind.

The problem is more of an aesthetics issue: the map is made from a height map, which means the mesh stops “brutally”. The camera can only move into the map area, and going to its edges, can see the gap around it.

I thought about creating a second ground mesh from the same height map, but with a bigger width; unfortunately the “mountains distribution” over it is not the same as the map mesh, due to the extended width.

I’m open to all ideas 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [March 2, 2020, 1:05pm UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/2 "2020-03-02T13:05:46Z")

</div>

Is just using an alpha map not compatible in your workflow? Example: [Babylon.js Playground](https://playground.babylonjs.com/#UY32I2)

---

<div class="post-metadata">

**Author:** ![RemyRaes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/remyraes/32/6278_2.png) [@RemyRaes](https://forum.babylonjs.com/u/RemyRaes)\
**Post date:** [March 2, 2020, 4:59pm UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/3 "2020-03-02T16:59:38Z")

</div>

I didn’t know about alpha map !  
I like the effect it gives on borders, but unfortunately my ground is big, so I need to repeat the texture (uScale \> 1), meaning I can’t use alpha on it.

Moreover, the alpha graduation would not apply to meshes being around the edges of the groud.

---

<div class="post-metadata">

**Author:** ![inteja](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/inteja/32/22553_2.png) [@inteja](https://forum.babylonjs.com/u/inteja)\
**Post date:** [March 2, 2020, 8:00pm UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/4 "2020-03-02T20:00:58Z")

</div>

@RemyRaes each texture on a single material can have its own scaling so you can apply an opacityTexture with uScale = 1 and still maintain repeat tiling on your diffuse texture. See [Apply Bumps, Opacity and Tiling - Babylon.js Documentation](https://doc.babylonjs.com/how_to/more_materials#opacity)

---

<div class="post-metadata">

**Author:** ![RemyRaes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/remyraes/32/6278_2.png) [@RemyRaes](https://forum.babylonjs.com/u/RemyRaes)\
**Post date:** [March 2, 2020, 10:26pm UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/5 "2020-03-02T22:26:30Z")

</div>

That should do it, then.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [March 3, 2020, 9:00am UTC](https://forum.babylonjs.com/t/soft-map-borders/8915/6 "2020-03-03T09:00:38Z")

</div>

You can also use a dedicated UV channel.
