Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Can I mask out areas to not receive foliage?

Is it possible to specify/define areas of a static mesh (or landscape) where you don't want foliage painting to plant instances?

E.g. Imagine a desert terrain that has sparse but specific areas of grass around many oasis. It would be nice to simply brush the painter over the whole terrain knowing instances of grass will ONLY be planted in specific areas of the terrain.

This would be much quicker than having to go to each and every oasis on the terrain to paint the local foliage. If this is not possible with any workaround could it be a future feature, i.e. 'Mask based foliage painting'?

I imagine it could work similar to the 'ground_slope' painting logic. E.g. you could select a greyscale texture/material (i.e. your foliage painting mask) that represents the terrain surface (at least 4096x4096 for minimal pixelation and better colour checking accuracy). When painting, only white areas of the mask would receive foliage instances and black areas would not.

So, Instead of:
IF (ground_slope < 45) add_new_Instance() ELSE do_nothing

it could be:
IF (mask_pixelcolour_at_planting_point > 0.5) add_new_instance() ELSE do_nothing

I have used a somewhat similar feature in another engine in the past.

Product Version: Not Selected
more ▼

asked Jul 08 '14 at 10:46 AM in Using UE4

avatar image

496 73 63 96

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi ash22,

We don't have the ability to use masks to determine where foliage can be painted, but we have noted your interest in this proposed tool and will keep it in mind for a potential feature update.



more ▼

answered Jul 08 '14 at 08:32 PM

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question