# Foliage Paint Density Problem

**URL:** <https://forums.unrealengine.com/t/foliage-paint-density-problem/380243>\
**Category:** World Creation\
**Tags:** unreal-engine, Foliage, question\
**Created:** [December 26, 2016, 9:27pm UTC](https://forums.unrealengine.com/t/foliage-paint-density-problem/380243 "2016-12-26T21:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MXultra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MXultra](https://forums.unrealengine.com/u/MXultra)\
**Post date:** [December 26, 2016, 9:27pm UTC](https://forums.unrealengine.com/t/foliage-paint-density-problem/380243/1 "2016-12-26T21:27:15Z")

</div>

While trying to figure out this:

> **[4.14 Slow Foliage Placement](https://forums.unrealengine.com/questions/541377/414-slow-foliage-placement.html)**
>
> I’m trying to paint grass onto my landscape and I’m finding the editor freezes for 5-10 seconds whenever I try to paint on a fresh area. I’ve had no problems with other foliage, but the grass is higher density than the rest. paint density: 1 ...

I discovered a problem in how the editor handles foliage painting.

As you paint, foliage instances are distributed throughout the radius of the brush, but as part of the brush moves over un-painted territory, the brush continues to paint throughout the full radius. This means that you are multiplying the max density anywhere the brush overlaps previously painted foliage.

Erase Density doesn’t solve this because it also erases **at** a fixed intensity rather than reducing instances _to_ a fixed density.

I guess what we need is a “Flatten Density” brush.

 ![119945-foliage+density.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/6/c1614f4f6aae20367b84f7e2b88b44e0f8510aa9.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 30, 2016, 8:21pm UTC](https://forums.unrealengine.com/t/foliage-paint-density-problem/380243/2 "2016-12-30T20:21:23Z")

</div>

Answered here:

> **[4.14 Slow Foliage Placement](https://forums.unrealengine.com/questions/541377/414-slow-foliage-placement.html)**
>
> I’m trying to paint grass onto my landscape and I’m finding the editor freezes for 5-10 seconds whenever I try to paint on a fresh area. I’ve had no problems with other foliage, but the grass is higher density than the rest. paint density: 1 ...
