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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Distance fields stop working for a mesh if I increase the DF resolution.

I have been experimenting with Distance Field AO and Raytraced shadows but I'm running into a strange issue where if I increase the DF resolution of a mesh it completely stops drawing distance fields for that mesh. Returning it to the default value of 1 remedies the issue.

My second issue is that I can't seem to combine a directional light using cascaded shadow maps with an ambient light that uses shadow casting DFAO. Are they mutually exclusive? I was under the impression that the Kite demo used both at the same time but I don't seem to be able to set mine up correctly.

Thanks,

ook

Product Version: UE 4.14
Tags:
more ▼

asked Feb 02 '17 at 01:53 PM in Rendering

avatar image

00k_
219 11 20 31

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

2 answers: sort voted first

(SOLVED)

I dug into this more and discovered that somehow I managed to import the meshes with no material slots ie: no "Elements". I have been working with UE professionally since 2.5 and I didn't even know this was possible. At any rate since they were being used as HISMCs and getting assigned a material in Blueprint they would for some reason draw but the engine thought they had no "elements" so they wouldn't cast shadows I assume because there's a flag inside each Element for cast shadow that was probably null. Anyways that appears to be at the root of all my issues. I still need to figure out why the meshes were importing like that but I assume user error. Sorry for the confusion.

more ▼

answered Feb 06 '17 at 09:04 AM

avatar image

00k_
219 11 20 31

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

Hi ook,

For the DF Resolution, make sure that you're adjusting the Distance Field Resolution Scale and NOT the Distance Field Bias. If the DF Bias is adjusted higher the mesh will either not render or render less of the mesh.

If that's not the issue you're seeing, make sure that you've got the Engine Scalability set to EPIC or HIGH for DF Shadowing. Screenshots would likely be helpful as well for the Mesh Distance Field visualization with the various DF Resolutions that work (Show > Visualize > Mesh Distance Fields).

CSM and DFAO are not mutually exclusive. You can use these together because not everyone will want to use DF Shadowing for their directional light, but they may want DFAO from their movable skylight. one quick way to check is by adjusting the Occlusion Tint to an obvious color and you can see the areas that are getting occlusion more easily.

-Tim

more ▼

answered Feb 03 '17 at 04:37 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

avatar image 00k_ Feb 03 '17 at 09:27 PM

This is not the issue I am having. The project is set up correctly for distance fields and all other objects display normally. The distance fields stop displaying for any mesh I change the DF resolution of and I have to re-import the mesh for it to start displaying the distance fields again.

You can see in the images below the fields disappear completely in the debug mode.

Before resolution change: alt text

Before resolution change distance field debug: alt text

After distance field resolution change to 2 and "Apply Changes" alt text

After distance field resolution change to 2 "Apply Changes" Distance field debug alt text

After re-import mesh distance fields reappear at the new resolution. alt text

res1.jpg (44.2 kB)
res1df.jpg (28.5 kB)
res2.jpg (45.1 kB)
res2beforesave.jpg (35.8 kB)
res2_reimport.jpg (52.9 kB)
avatar image 00k_ Feb 06 '17 at 08:34 AM

I'm having this same issue with meshes between my different perforce accounts as well for some reason. I sync on my other machine and for some reason some of my meshes no longer cast distance fields till I re import them on that machine.

avatar image 00k_ Feb 03 '17 at 09:33 PM

Regarding the issue with using cascaded shadow maps, as soon as I disable "raytraced dynamic shadows" on my directional light all directional shadows disappear and any attempts to enable cascaded shadow maps seems to have no effect.

(FIXED)

I looked into this again on my end and it seems to be working now? Not sure what I changed. Original issue still exists above.

(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