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"

Grass shading bug.

Hello. I having really hard time with landscape grass shading. Basically if light conditions are changing even a bit player can notice rectangle chunks of grass really easily. I think this is caused by grass using just single sample of indirect lighting cache or it might be actual bug. This make grass blending with landscape impossible. Would it be possible landscape grass shading to reuse landscape lightmaps?

Thank you.

Link to to original thread. With more pictures. https://forums.unrealengine.com/showthread.php?73299-BUG-Grass-Tool-Shading-Error

alt text

Product Version: UE 4.10
Tags:
grassshadingbug.jpg (455.0 kB)
more ▼

asked Nov 13 '15 at 08:59 AM in Bug Reports

avatar image

Kalle-H
241 11 24 32

avatar image AndrewHurley Nov 13 '15 at 03:55 PM

Hey Jenny,

Since the lines are well defined in each image, and you are using lightmass with your foliage the issue could be that you are exceeding the maximum texture resolution per landscape component.

Lighting Foliage Instances

alt text

I found this bit of information at the bottom of our Foliage Instanced Meshes documentation which provides some other useful information in regards to the foliage system.

Foliage Instanced Meshes

https://docs.unrealengine.com/latest/INT/Engine/Foliage/index.html

Would you also mind telling me how you are applying your foliage to your landscape? i.e. procedurally generated using the (Foliage Type), Procedurally painted using the landscape material (Landscape Grass Type), or simply hand painted using the Foliage mode?

Let me know if you have further questions.

Thank you,

Andrew Hurley

avatar image Kalle-H Nov 13 '15 at 08:18 PM

It's Landscape Grass Type. For standard foliage there are lots of static light settings but for Landscape grass they are missing so I was in belief that it isn't using baked lightmaps but some other system. I would like to use landscape grass because work flow is so painless but indirect light seems to be bit problem. Could you try to explain or point me to documentation that covers landscape grass and static lighting.

avatar image AndrewHurley Nov 14 '15 at 04:06 PM

When using the Landscape Grass Type, you are procedurally generating these meshes based on their assigned sampled layer. Since these meshes are instanced static meshes procedurally generated, they do not yet support static lighting.

alt text

Your best option, especially when creating large worlds with heavy foliage, is to use fully dynamic lighting in conjunction with Ray Traced Distance field shadows and Cascaded Shadow Maps to increase quality and performance.

We used this technique in our Open World GDC demo. I have provided documentation for Ray Traced Distance Field Soft Shadows, and some information on the Landscape Grass Type.

Using Landscape Grass Type

https://docs.unrealengine.com/latest/INT/Engine/OpenWorldTools/ProceduralFoliage/QuickStart/6/index.html

I have attempted to get your issue to occur on my end, but have not been able to reproduce it thus far. I have set up my test scene to have really dense foliage, but still cannot get the issue to appear.

alt text

Perhaps I am not doing something that same as you, but if you have other questions please let me know.

Thank you,

Andrew Hurley

avatar image Kalle-H Nov 16 '15 at 09:38 AM

Hello. Thank you for answer. Our project have static light enviroment and we really need good and cheap GI solution. Fully dynamic lighting just isn't an option. We also need to support wide range of hardware.(including mobile)

I understand that landspace grass don't use lightmaps because of its procedural/dynamic nature but same is true for all movable objects too. I assume that landscape grass chunk use single sample from volume light cache which causes discontinues on the edges and bad lighting when that chunk is only partially shadowed. Reusing landscape ligthmap for grass maybe could solve this.

I made minimal test project that show the shading problem. https://dl.dropboxusercontent.com/u/10960490/GrassShadingBug.zip

alt text

grassshadingbug.jpg (767.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey Jenny,

We really appreciate you taking the time to create a reproducible project. This makes it much easier for us to quickly observe the issue, and try to get a fix/solution in place. I have gone ahead and entered a bug report for the issue (UE-23369). Once it has been addressed by our developers, they will determine the next course of action. When the issue is fixed it will be added to the upcoming release notes of a full engine release or hotfix release.

Let me know if you have further questions.

Thank you,

Andrew Hurley

more ▼

answered Nov 16 '15 at 04:00 PM

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

We have the same problem in out project, which looks the same, but different i think. We are using simple material with parallax occlusion mapping. Maybe this two problems are somehow related, who knows.

alt text

more ▼

answered Jun 03 '16 at 10:39 AM

avatar image

Yata
554 41 50 69

avatar image Kalle-H Jun 03 '16 at 11:37 AM

Original problem is fixed in 4.12 with "Use Landscape Lightmap" toggle.

(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