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. 

4.17 Landscape material glitch?

I know that I've set up my landscape material correctly because its a very simple shader. At first it shows up correctly. it even let me paint on it for a moment and then it just defaulted to the checkerboard material randomly. Is this a bug or am I just doing something wrong?

alt text alt text

Product Version: UE 4.17
Tags:
1.jpg (268.2 kB)
2.jpg (354.7 kB)
more ▼

asked Aug 22 '17 at 06:46 PM in Using UE4

avatar image

nightmareyahoo
36 2 7 11

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

2 answers: sort voted first

UPDATE*** Seems to only happen when there are more than three textures being used in the layers tab beneath the landscape painting section.

more ▼

answered Aug 22 '17 at 07:45 PM

avatar image

nightmareyahoo
36 2 7 11

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

There is a limit to the number of texture samplers you can use in any particular material. It seems that the landscape material is optimised for each landscape component, such that if you paint only one layer, all other layers are culled from the material, or something along those lines. Thus, if you paint a layer onto the landscape, the relevant landscape component (64x64 grid or whatever) can become overloaded with texture samplers and defaults to the checkerboard. Typically this results in some grids of landscape becoming bugged and others rendering fine. The fix is to simplify your materials, only have X layers painted per component and/or to set some texture samplers to 'sampler source: shared' (google that for more info).

Alternatively, it may be that your material contains an error which only becomes apparent when the material optimises/recompiles after you paint it. I found, for example, that materials that worked fine in 4.xx initially worked in 4.16 (or later) but stopped working as soon as they were recompiled. The cause in that case was a stock macro texture which changed sampler type to linear RGB rather than RGB (or something along those lines - look for bugged texture samplers).

I hope that helps... it's very far from obvious what causes these problems. Sometimes the material errors don't even show up, and the material claims to compile ok (despite being bugged).

more ▼

answered Nov 09 '17 at 09:46 PM

avatar image

fatmarrow
31 2 4 7

(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