x

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"

LandscapeGrass and DistanceFieldLightning

Is there a way to affect the grass instanced by the LandscapeGrass node with Distance Field Lightning?

Product Version: UE 4.12
Tags:
more ▼

asked Aug 15 '16 at 02:21 AM in Rendering

avatar image

DavideParadisi
1 2 4

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

1 answer: sort voted first

Hi DavideParadisi,

Landscapes do not currently support Distance Field shadowing. This makes sense for things like the landscape grass type to not support it as well. For things like grass you also want to keep make sure that you're not using distance fields for these types of meshes since there are so many it can easily reach the limit.

Distance Field Ambient Occlusion is still supported for these though since the landscape uses a heightfield to generate the AO.

-Tim

more ▼

answered Aug 15 '16 at 07:18 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

avatar image DavideParadisi Aug 16 '16 at 03:03 PM

Thanks for the reply, do i have to generate the AO manually? Because right now my grass doesn't have any occlusion from the skylight

avatar image Tim Hobson ♦♦ STAFF Aug 16 '16 at 09:01 PM

If you've got Distance Fields enabled and a movable skylight in your level it generates on its own.

You can visualize it by going to the main Viewport > Show > Visualize > Distance Field Ambient Occlusion

I have a simple tutorial on my personal site that shows you some of the settings for the DFAO that you can adjust: http://timhobsonue4.snappages.com/distance-fields-ambient-occlusion

Also keep in mind that Ambient Occlusion really only shows up in more softly lit areas underneath areas and in cracks/crevices. When something is directly lit by the light you'll not notice this effect as prominently.

avatar image DavideParadisi Aug 16 '16 at 09:16 PM

Hi again, i think the editor is set up correctly and i have DFAO on my dynamic meshes but the landscape isn't generating any heightfield. alt text

cattura2.png (104.0 kB)
avatar image Tim Hobson ♦♦ STAFF Aug 16 '16 at 09:35 PM

That's only using the Mesh Distance Field visualization. You won't see Landscapes in there like that since they aren't supported. They generate a heightfield which is not represented in this view.

Comparison of a scene with a landscape with grass and DFAO visualization.

alt text

dfao.png (802.7 kB)
avatar image DavideParadisi Aug 16 '16 at 09:39 PM

Now i see.. thank you, is there a way to lift up the value of the AO for the landscape?

avatar image Tim Hobson ♦♦ STAFF Aug 17 '16 at 01:45 PM

You can use the Contrast setting in the Skylight under the Distance Field Ambient Occlusion section to adjust how much contrast there is.

(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