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"

[SM5] error X4510 maximum samplers reached (16), only 14 active in material

Hi there,

Stats say that I am using more than 16 texture samplers, but, having counted them by hand I can only find 14 samplers. Are there any other parameters that consume sampler slots? are there hidden ones that I've missed?

When I remove a sampler in one of the layers it compiles just fine, meaning that I've got 17 samplers in there, which in turn means that there's 3 that I cannot find.

When I remove the "incandescent cloth" material layer, it says I have 14 samplers active, while, at that point it should be 11.

The samplers in sequence are the following:

Master Material:

  • Albedo (RGB)

  • Layer Mask 1 (RGBA)

  • Layer Mask 2 (RGBA)

  • Detail Mask (RGBA)

  • Normalmap (RGB)

Steel, 1 sampler (RGBA)
Chrome, 1 sampler (RGBA)
Rubber, 1 sampler (RGBA)
Painted Metal, 2 samplers (RGBA, Nrm)
Metal 1 sampler (RGBA)
Incandescent Cloth, 3 samplers, (RGBA, RGB, Nrm)

With that said, I must be blind, or something strange is going on.

Below you can see the spagetti of everything, all samplers are highlighted with a red border.

(The warning above the sampler error can be disregarded as it goes away when the error is resolved)

Thank you in advance.

alt text

alt text

alt text

alt text

alt text

alt text

alt text

alt text

Product Version: UE 4.9
Tags:
more ▼

asked Oct 12 '15 at 05:36 PM in Rendering

avatar image

Kettun
1 1 2 4

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

2 answers: sort voted first

Yep various code features like lightmaps use samplers. Note that you can use the shared samplers to get past the 16 limit (up to 128 unique textures).

more ▼

answered Oct 12 '15 at 11:44 PM

avatar image

DanielW STAFF
1.9k 31 11 72

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

Answering my own question. 3 Samples are used for lighting information that are otherwise hidden.

more ▼

answered Oct 12 '15 at 10:02 PM

avatar image

Kettun
1 1 2 4

(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