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"

Multi Selection Static Switch

I have a material that i'm using on multiple objects and for the sake of efficiency i'm using a 4 channel texture to supply masks for different objects that use this same texture so that i can get decent UVW density without having a huge texture. in order to swap between the channels i have 4 nested static switch parameters. this is ugly and somewhat annoying to use.

is there a multi input (ideally some form of number roller) switch that i can use to select the channel or do is my current method the best?

alt text

Product Version: UE 4.16
material setup.png (277.0 kB)
more ▼

asked Jul 22 '17 at 10:35 AM in Rendering

avatar image

Nuclear Arbitor
308 4 7 10

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

2 answers: sort voted first

There is a component mask switch parameter. It is exactly suited for this purpose.

more ▼

answered Jul 23 '17 at 03:43 PM

avatar image

7.7k 129 29 290

avatar image Nuclear Arbitor Jul 23 '17 at 09:14 PM

i think that's pretty much what i was looking for. unfortunately you can't uncheck all channels to get black like i could on my setup but it's definitely simpler.

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

My solution to this problem was to use if nodes. You can chain together as many as you need to create as many inputs as you need. So for example, in my blueprint all I do is set the float value of my scalar parameter with an integer. The parameter is then compared to a constant to determine which input on the if node to use. alt text

more ▼

answered Dec 27 '18 at 02:17 AM

avatar image

51 2 4 13

(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