# Decals on animated mesh

**URL:** <https://forum.babylonjs.com/t/decals-on-animated-mesh/1804>\
**Category:** Questions\
**Created:** [March 10, 2019, 5:19am UTC](https://forum.babylonjs.com/t/decals-on-animated-mesh/1804 "2019-03-10T05:19:06Z")\
**Posts on this page:** 3\
**Page:** 2

<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 12, 2019, 4:15pm UTC](https://forum.babylonjs.com/t/decals-on-animated-mesh/1804/21 "2019-03-12T16:15:28Z")

</div>

I’m not sure about your realtime blood leaks in videogame, it is often (if not all the time) just pure fake.

Example from [Battlefield 5](https://youtu.be/sBTLSLBV32Y?t=30):

[https://i.imgur.com/Lvk2wpa.gif(image larger than 4096KB)](https://i.imgur.com/Lvk2wpa.gif)

It looks like they’re even don’t care about blood on bodies 😅 But we can imagine, as they’ve probably done for the gun, some textures using the same UV as the albedo but combined with them, containing some already painted blood decals. Users will certainly doesn’t spot the fake effect.

Quick & dirty example:

 ![](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/64a3bebcf1a8bd53713845121f2f629d2ba82d02.png)

---

<div class="post-metadata">

**Author:** ![ozRocker](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ozrocker/32/186_2.png) [@ozRocker](https://forum.babylonjs.com/u/ozRocker)\
**Post date:** [March 12, 2019, 10:34pm UTC](https://forum.babylonjs.com/t/decals-on-animated-mesh/1804/22 "2019-03-12T22:34:56Z")

</div>

ok, I think I get what you’re all trying to say.  
I can create another UV map in Blender which has nothing to do with the original UV map. This new one can be just one square island, so then I can easily place an image or text onto that UV map.

The tricky areas for this:

- I would have to determine position in the texture from clicked point on the 3D mesh.
- I will have some bad warping from wrapping a square around a mesh that’s an irregular shape
- I will have problems dealing with images/text on the edge of the UV island

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 12, 2019, 11:10pm UTC](https://forum.babylonjs.com/t/decals-on-animated-mesh/1804/23 "2019-03-12T23:10:43Z")

</div>

first point is easy as you get the UV of the picked point when doing picking  
other points are valid but maybe can be fixed by avoiding drawing on the edge of your texture?

[Previous page](https://forum.babylonjs.com/t/decals-on-animated-mesh/1804.md?page=1)
