# \[CREATION\]Dynamic Grass - Grass that goes away the more you walk on it

**URL:** <https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [December 8, 2020, 6:46am UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726 "2020-12-08T06:46:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [December 8, 2020, 6:46am UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/1 "2020-12-08T06:46:51Z")

</div>

I made this today:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/0/00014a7574423cb9461008d5de2c14c846d2aefe.jpeg "Unreal Engine 4 Dynamic Grass") ](https://www.youtube.com/watch?v=JgQqtpSxy14)

It is grass that slowly goes away the more you walk on it.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 8, 2020, 6:25pm UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/2 "2020-12-08T18:25:04Z")

</div>

Nice job, but not too realistic lol. Could be useful for something, perhaps an alien terrain.

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [December 8, 2020, 9:00pm UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/3 "2020-12-08T21:00:57Z")

</div>

The grass mesh used is only an example, you can use whatever mesh you want.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 9, 2020, 3:42pm UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/4 "2020-12-09T15:42:38Z")

</div>

It’s cool. I was being a bit facetious, not really criticizing.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 9, 2020, 6:03pm UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/5 "2020-12-09T18:03:49Z")

</div>

If you want some pointers…  
make it so it can grow randomly in height with a per instance random variation.  
if you encode the vector paint of the mesh with the normalize 0-1 range of each vertex you can grow natural looking strands.

Whatever method you are using to displace it, the winner is by far vector fields. Scencaptude 2d of controlled niagara sprite emitter on properly colored backdrop allows for excellent details and an RT that can move the grass rather then shorten it. So you can push strands left or right - mind you that this is dependent on the mesh setup and doesn’t look super good because the pivot point of the grass mesh isn’t at the bottom of each strand - if you work hard you can make a pivot point texture to feed all the pivot points in. I think its overkill. But on bigger grass like what you have it could be better.  
Look into how pivot painting works, possibly one could encode local pivots on Vector paint too, But as usual you already use vector paint to grow the mesh and add wind, so you don’t really have 3 channels… or it limits the masks you can use for vector stuff. No big deal really, use alpha for the height and thats that.

Maybe after the jam I’ll try and cook in the mesh paint to generate pivot info for each of them… I betcha that rotate about axis wouldn’t distort it anymore if I do… lol now I’m glad I read this topic as I have been stuck on how to make it look right for a while ;0

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [December 9, 2020, 11:30pm UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/6 "2020-12-09T23:30:45Z")

</div>

> [@MostHost\_LA](#):
>
> If you want some pointers…  
> make it so it can grow randomly in height with a per instance random variation.  
> if you encode the vector paint of the mesh with the normalize 0-1 range of each vertex you can grow natural looking strands.
> 
> Whatever method you are using to displace it, the winner is by far vector fields. Scencaptude 2d of controlled niagara sprite emitter on properly colored backdrop allows for excellent details and an RT that can move the grass rather then shorten it. So you can push strands left or right - mind you that this is dependent on the mesh setup and doesn’t look super good because the pivot point of the grass mesh isn’t at the bottom of each strand - if you work hard you can make a pivot point texture to feed all the pivot points in. I think its overkill. But on bigger grass like what you have it could be better.  
> Look into how pivot painting works, possibly one could encode local pivots on Vector paint too, But as usual you already use vector paint to grow the mesh and add wind, so you don’t really have 3 channels… or it limits the masks you can use for vector stuff. No big deal really, use alpha for the height and thats that.
> 
> Maybe after the jam I’ll try and cook in the mesh paint to generate pivot info for each of them… I betcha that rotate about axis wouldn’t distort it anymore if I do… lol now I’m glad I read this topic as I have been stuck on how to make it look right for a while ;0

The grass mesh is just an example, you can replace it with w/e mesh you want and it should still work fine.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 10, 2020, 12:25am UTC](https://forums.unrealengine.com/t/creation-dynamic-grass-grass-that-goes-away-the-more-you-walk-on-it/154726/7 "2020-12-10T00:25:38Z")

</div>

> [@MrGoatsy](#):
>
> The grass mesh is just an example, you can replace it with w/e mesh you want and it should still work fine.

the mesh you used has little to do with my pointers… I’m sure it reads like an intelligible consciousness stream, but it makes perfect sense to me- to the point I’ll have to refer to it when I pack the vertex points ;p
