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"

Terrain Self-Shadow (POM/Tessellation)


I am trying to get a basic 4 layer terrain shader using either POM or Tessellation functioning as I would expect. I am seeing the tech on both types working, but it looks like it's missing self shadowing or something. As when the POM material is applied to a normal cube, it looks great, but rubbish on the landscape, with crazy swimming at grazing angles. Upping the TempAA for the pom makes everything better, but kills performance.

POM on Landscape alt text

POM Material https://imgur.com/ujnKMpq

POM on Cube alt text

Similarly for the tesselation, it's certainly tessellating, and deforming based on the height map, but it doesn't self shadow so you can barely tell. Also, "crack free displacement" is on, but there are still cracks (but not on the preview cube in the material editor view)

Tess Material https://imgur.com/LmpRw0P

alt text

Is something wrong with landscapes, or do I need to do something differently?


Product Version: UE 4.20
capture1.png (2.5 MB)
capture2.png (2.6 MB)
capture5.jpg (117.1 kB)
more ▼

asked Oct 22 '18 at 06:22 PM in Using UE4

avatar image

3 3 5

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

1 answer: sort voted first

You do not need crack-free displacement, when displacing only vertically. POM drift at such angles is expected.

more ▼

answered Oct 22 '18 at 11:26 PM

avatar image

7.9k 130 31 293

avatar image Sleuthman Oct 23 '18 at 08:01 AM

Hi, thanks for the answer. I am tessellating vertically, but I have cracks, so not sure what to do about that, as you can see in the picture?

The POM drift is pretty extreme, so much so that I wouldn't be comfortable using it on anything that's not totally flat. I am finding that the POM solution is pretty good at 4 min samples, 8 max, with 3-5 tempAA set. Does that sound unreasonable? I can't visualise the shader cost, it doesn't seem to get affected by any changes to these values.


avatar image ullmatta Jan 10 '19 at 01:13 PM

I have noticed a similar issue going from 4.18 to 4.21. Spotlights and directional lights create self shadowing on my tessalated ground, but point lights stopped doing so. :S

avatar image PlusUltraRota Jan 25 '19 at 04:37 PM

Hi, I have noticed this issue too! Have you found a solution? Is it just some bug in 4.21?

avatar image ullmatta Jan 25 '19 at 04:43 PM

Hey! No, not yet. I have posted it as a separate question here though: https://answers.unrealengine.com/questions/864519/self-shadowing-on-tessellated-ground-broken-from-4.html

avatar image PlusUltraRota Jan 28 '19 at 01:11 AM

Hey, I found a solution that worked for me. You have to enable "Distance Field Meshes" in the project settings, and then for the light that you want to have cast a shadow, you have to check "Use Raytraced Distance Field Meshes" and it will cast shadows on tessellated objects. Hope this helps. Cheers.

avatar image ullmatta Jan 28 '19 at 10:21 AM

Hmm, are you on 4.21? The distance fields seem to be missing from landscapes in the 4.21 version, and it's on landscapes that I use tesselation. Otherwise I will give it a test!

(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