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"

4.7 foliage has higher shader complexity now?

Here is a shader complexity screenshot of same grass mesh with good-old masked material - left one is put as InstancedFoliageActor and right one as StaticMesh. Scene lit by Static dirlight.

alt text

Right one (StaticMesh) looks legit - opaque pixels are green with no overdraw, but same mesh as foliage (left) looks as if it was entirely translucent with lots of overdraw. Also, even single sheet of material seems a bit heavier (darker) than on StaticMesh.

What's happening here? In 4.6 both foliage and mesh would show identical shader complexity.


Update: I just looked at profileGPU data and it seems that now foliage is shown in BasePass as Dynamic, even though scene is fully static, with static lightmapping. Weird?

Product Version: Not Selected
more ▼

asked Feb 26 '15 at 04:40 PM in Rendering

avatar image

1 1 2 2

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

2 answers: sort voted first

Hey Virt -

I have been trying to reproduce this complexity but currently have not been able to get the same results. Is it possible for you to share the Mesh, Texture and Material UAssets for your mesh pictures above so I can test it internally?

Let me know -

Eric Ketchum

more ▼

answered Mar 06 '15 at 11:15 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 736

avatar image Leszek Godlewski (Astronauts) Mar 10 '15 at 04:20 PM

Hey Eric,

So I just had a look at this and tracked it down to r.EarlyZPass being equal to 2 and not 3.

Virt has set this to 2 because all the docs about deferred decals advise to do so (Martin Mittring's comment from April 2014, for instance), while in the meantime there was a commit in December 2014 that gave r.EarlyZPass=3 a new meaning, and it seems to me that this is what we actually need to have both D-buffers and foliage early Z working.

Bottom line, we've fixed this simply by setting it to 3, but you may want to update both the documentation and CVarEarlyZPass's description in DeferredShadingRenderer.cpp to reflect this. ;)



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

Just for the sake of this having an answer – r.EarlyZPass needs to be 3, not 2. See my comment.

more ▼

answered Mar 10 '15 at 04:22 PM

avatar image

Leszek Godlewski (Astronauts)
6 1 3 4

avatar image FilipeTessaro Jan 13 '16 at 02:52 AM

Hi where do I find this r.EarlyZPass?, thanks

avatar image Lovecraft_K ♦♦ STAFF Jan 13 '16 at 03:13 PM

Hi FilipeTessaro -

You can now do this in the Project Settings under Rendering >> Optimizations >> Early Z-Pass and you will want to set it to Opaque and masked Meshes

Thank You

Eric Ketchum

(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