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"

Min cull distance is ignored - foliage tool

I am placing meshes with the foliage tool (using SM_Bush from the starter content, on the VehicleAdvExampleMap from the templates).

When I set Cull distance: Min=2000 Max=5000, I don't see soft culling between 2000 and 5000. Instead, meshes appear or disappear exactly on the 5000 line. Changing the min cull distance has no effect. I don't have a cull volume and haven't changed the project settings or the project itself much (from the template). I can see that the meshes themselves are culled by using the wireframe view. The mesh has only one LOD.

I've used this feature of the foliage tool before on my own game and it worked, so I am surprised it doesn't work here.

Product Version: UE 4.9
more ▼

asked Oct 18 '15 at 10:18 PM in Using UE4

avatar image

88 10 13 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello dimitrov,

From what you describe you are saying that at 5000 units away from the camera your foliage is culling. No matter what value you add to the Min culling there is no change. After a bit of research I came up with this exert from our documentation.

alt text

What you can do is go inside of the material that is assigned from to the "Bush" asset. Take the alpha from the diffuse map and plug that into the A of a multiply. Create a PerInstanceFadeAmount node by right clicking and typing that in. Connect the Fade node to the B of the multiply. Take the multiply output and plug that into the opacity mask of the material. This should fix the issue.


more ▼

answered Oct 19 '15 at 06:07 PM

avatar image dimitrov Oct 19 '15 at 07:41 PM

Thank you for you answer. I didn't try this before because it addressed the problem of smoother fading (and not honoring min in "disappearing at a random distance between min and max"). I tried this and I see an improvement. I like how the meshes fade in and out. And the Min cull distance has an effect now.

However, meshes still appear and disappear way too sharply. My settings are: Min: 2.000, Max: 10.000 (thousands). However, the line where culling occurs is more or less around 4.000 (+-500). This used to work well before, I've used it a lot. That's why I am startled I cannot get it to work now.

My material is simple: alt text Texture sample (first pin) connected to Base Color and its alpha to a Multiply node. The other pin of Multiply comes from a PerInstanceFadeAmount node. The multiply goes to Opacity Mask.The material has Blend mode: masked. Actually the screenshot you gave confuses me because it does not reflect the instructions precisely, as far as I can see. Cheers!

culling.png (138.1 kB)
avatar image Logan Bailey ♦♦ STAFF Oct 19 '15 at 08:32 PM

Yeah, that image does not reflect the document very well. I believe many of these changes came about through the use of the HLOD system when using foliage. This bases a calculation of clusters that are draw across the foliage instance. It then determines how far away and how big this cluster is on the screen and determines when to cull.

I will continue to experiment on this further to see if I am able to create a more gradual culling.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi, I also have problem with 'Min Cull Distance'. I found solution from this topic: https://forums.unrealengine.com/development-discussion/content-creation/21482-how-do-you-fade-foliage-out-when-culling-in-the-distance?p=270041#post270041

I'm just taking away from 1, what result with the clamp function. alt text

alt text

more ▼

answered Mar 19 '19 at 05:43 PM

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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