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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Compiling Shader crashing

Hi Guys,

I have some textures. When I try to open texture compiling shaders and end of the compiling I am getting error such as MaterialEditorStats:Error: Error [SM4] shader uses 23 samplers exceeding the limit of 16

I am Using MacBook Pro version 10.10.5 and graphic card is AMD Radeon R9 M370X 2048 MB.

Can someone help me about this issue?

Thanks in advance

Product Version: UE 4.8
Tags:
more ▼

asked Sep 04 '15 at 09:13 AM in Bug Reports

avatar image

GrcnHml
13 1 5 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello GrcnHml,

From what you describe you are using open GL and not DirectX11. DirectX11 allows for Shader Model 5 which will allow for shared texture samples. Right now you are exceeding the texture samples that are available in your material.

I am linking you to our documentation on this : Materials with Many Textures

Materials can use up to 128 unique textures by making use of new 'shared' texture samplers. These are set on a TextureSample node by setting the SamplerSource property. Previously, you could only use up to 13 textures.

alt text

This is a really important improvement for layered materials like terrain, high quality character materials, and more advanced forward shading materials.

Unfortunately Mac's do not support DirectX11 only OpenGL. Even updating and running a parallel would not solve this.

DirectX 11 and consoles support 128 textures at once, but the OpenGL rendering path (on Windows or Mac) is still limited to 13 textures per material. Shaders will fail to compile for GL if they exceed this limit.

Logan

more ▼

answered Sep 04 '15 at 03:28 PM

avatar image Salamanderrake Dec 20 '15 at 01:10 AM

Statement Recanted Due to not having a full understanding of the underlining issue.

(comments are locked)
10|2000 characters needed characters left
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