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"

Make a material that do a transition between two textures

Hi!

I am doing a cable material (to make notice the player if is on or off) and I have a problem.

I need to do a material that changes to blue texture to yellow texture. Thats easy and I can do it. The problem is: I want to maje that blend (blue to yellow) in the cable direction (like a progress bar, that fills from left to right. I want the same to my material. The bar is blue and it fills from left to right with yellow)

Anyone knows how can Do that? I haven't see any tutorial for that, only for material blend (all the material)

Thanks or the help!

Product Version: UE 4.9
Tags:
more ▼

asked Feb 09 '16 at 05:16 PM in Blueprint Scripting

avatar image

elseine
10 1 1 3

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

2 answers: sort voted first

Inside your material:

You can use a simple linear gradient and a scalar parameter, so you can compare them with "IF" and plug the results on your "lerp" alpha.

Inside your blueprints you can create a dynamic material so you change the scalar parameter with a timeline when you want and it will result on a "linear wipe" effect, wich i think is what you want.

more ▼

answered Feb 09 '16 at 10:15 PM

avatar image

iorek01
61 1 3 7

avatar image elseine Feb 10 '16 at 05:47 PM

Thanks! I have done all this and I achieve my goal.

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

Vertex painting, Kinda complicated but after the video you get the core. I think you can work with that. https://www.youtube.com/watch?v=AS_y7Dui_1Y

more ▼

answered Feb 09 '16 at 05:32 PM

avatar image

te4zer
46 2 10

(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