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"

How can I make a material that constantly changes colours?

Hi!

I am curious to know how to create a material that goes through different colours? The general set up I currently have is pictured below:

alt text alt text alt text

As you can see from the images, it is currently set to Purple but, I would like to know if there is a what to take the material that I currently have and be able to make it slowly change through the colour spectrum? (No/absolute basic Blueprints if possible please).

Thanks All!

Mitchel.

Product Version: UE 4.21
Tags:
more ▼

asked May 09 '19 at 04:41 PM in Everything Else

avatar image

NotoriousMGT
10 2 5

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

3 answers: sort voted first

You don't need any blueprints to do this, if you send time (by that i mean any value that increases over time) to shaders you can animate pretty much anything in shader by adding time to any value saving CPU performance. UE4 sends time to material and oyu can access it via "Time" node, you don't need to know what value it outputs, you know it rising over time. Then you can use nodes like Sin or Frac node, any node any calculation that outputs any pattern regardless of how big input value will start to repeat that pattern is to repeat it over time. And you can control speed of animation by multiplying or dividing time.

Color change through color spectrum, is called hue shift, if you hue shift a rainbow spectrum it will offset the colors, if you look on spectrum circle it will spin. UE4 provides node just for that called Hue Shift, plug any saturated color (or whatever you want to hue shift, it needs saturation as hue is not visible in either white and black color) as a texture and plug time as a huge shift percentage and you should be covered. Remember to shift only part that you want to shift or else entire material will become rainbowish

more ▼

answered May 09 '19 at 06:33 PM

avatar image

Shadowriver
37.8k 937 172 1123

avatar image NotoriousMGT May 09 '19 at 08:50 PM

I think I kinda get what you're saying, I don't suppose you could provide an example? I'm struggling to put together the pieces that you guys have suggested

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

https://docs.unrealengine.com/en-us/Engine/Rendering/Materials/MaterialInstances

In this article there is the one called Material Instance Dynamic, this allows you to set up lerps that are changed by a scalar parameter that you then change in blueprints the example included there is this alt text

And then here is how I usually set up the materialalt text

alt text

more ▼

answered May 09 '19 at 07:21 PM

avatar image

Momentimes
6 1

avatar image NotoriousMGT May 09 '19 at 08:04 PM

Ahh okay I see, I'm not too great at Blueprint work but, I'll be sure to try that out too :)

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

You can take the time as Hue from HSV and convert it to RGB There is HSV to RGB material node for it

more ▼

answered May 09 '19 at 06:26 PM

avatar image

denton85
11 1 4 5

(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