# How to create grass which stay bent for some time?

**URL:** <https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976>\
**Category:** Rendering\
**Tags:** Pivot-Painter, unreal-engine, UE4, question, Blueprint\
**Created:** [June 23, 2018, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976 "2018-06-23T15:48:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca89aedc1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca89aedc1](https://forums.unrealengine.com/u/anonymous_user_ca89aedc1)\
**Post date:** [June 23, 2018, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/1 "2018-06-23T15:48:59Z")

</div>

Hello, I created grass with the Pivot Painter script which bends away from the player. The grass only bends away where the player is but now I want the grass to stay bent for some time, like real grass does when you run through it. I have no idea how i can do this. Can I do this in the material editor or do I have to create a blueprint for this? Sorry for my english and thank you in advance.

Here you can see my grass I created: [[UE4 | Pivot Painter grass - YouTube](https://www.youtube.com/watch?v=br8iKGvfLY8)][1]

Here you can see my material:

 ![245187-materialeditor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/e/45efb2fa86d0b752d93ae7bc65c5b05fb973a676.png)

---

<div class="post-metadata">

**Author:** ![Felix\_Leonhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felix\_Leonhart](https://forums.unrealengine.com/u/Felix_Leonhart)\
**Post date:** [June 23, 2018, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/2 "2018-06-23T16:07:53Z")

</div>

Canvas Render Target 2D is the option you are looking for.

> **[Canvas Render Target 2D](https://docs.unrealengine.com/5.1/en-US/BlueprintAPI/CanvasRenderTarget2D/)**
>
> Canvas Render Target 2D

Though you’ll need to paint three colors instead of one like in this video but it should give you an overview what to do:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/1/fe1806b462f2d93f0a8337b3bdea341c63e0f4b2.jpeg "Unreal Engine 4 - Deforming Snow With Render Target") ](https://www.youtube.com/watch?v=WZfaVOHhiRc)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca89aedc1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca89aedc1](https://forums.unrealengine.com/u/anonymous_user_ca89aedc1)\
**Post date:** [June 24, 2018, 12:47pm UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/3 "2018-06-24T12:47:01Z")

</div>

Ok, thank you I will try it. But is there no possibility to slow down the animation of the grass because with the Canvas Render Target I can deform something but I have no Idea how the grass moves back after sometime? Sorry for these silly questions I am new.

---

<div class="post-metadata">

**Author:** ![Felix\_Leonhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felix\_Leonhart](https://forums.unrealengine.com/u/Felix_Leonhart)\
**Post date:** [June 24, 2018, 2:04pm UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/4 "2018-06-24T14:04:06Z")

</div>

For the grass to restore, the blend mode needs to be modulate (it multiplies the values), position (0.0) and the color something like this: 0.8, 0.8, 0.8. That way every time you call this function it will multiply the color values by 0.8 lowering them. Call that function for example once per second with a delay node and viola! Your grass is restoring =) you can make the color 0.9 to make the process slower.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/6/e3692e68e7b0ff61300cbd65d16b7be1436c1273.png)

---

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [July 8, 2018, 11:53am UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/5 "2018-07-08T11:53:47Z")

</div>

Ideally you want to try and replicate something like this.

How I have it set up is, I have one more Sphere mask that follows the player with a slight delay and keeps the grass bent.
[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/e/f2ebf98773c4a78ebb4044202da1f554eaa4a207.jpeg "New grass") ](https://www.youtube.com/watch?v=7k1wPQlFMkc)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca89aedc1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca89aedc1](https://forums.unrealengine.com/u/anonymous_user_ca89aedc1)\
**Post date:** [July 10, 2018, 11:07am UTC](https://forums.unrealengine.com/t/how-to-create-grass-which-stay-bent-for-some-time/427976/6 "2018-07-10T11:07:34Z")

</div>

Thank you very much! I created new interactive grass without Pivot Painter. I also had the idea with the Sphere mask that follows the player but I have no idea how i can solve this.
