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"

Change Color Of Paper Flipbook With Material

So I have a material that will change a specific color on a flipbook to a new color. It works just fine. My problem is that I want to apply this material to a new flipbook I have in my content browser, not create a new flipbook in the material itself.

Here is a SS of what I have: alt text

So instead of creating the flipbook on the far left, how do I get the RGB values I need instead of having a Texture Sample to run through all this stuff. I want to get the RGB values from the flipbook I am going to apply the material to, instead of creating a new flipbook like this.

My end goal here is to change the color of a flipbook instead of creating 10 flipbooks that have 10 sprites each and now if I want a different color I would have to create so many extra images, seems like a waste.

Product Version: UE 4.12
Tags:
flipbookcolor.png (158.4 kB)
more ▼

asked Aug 19 '16 at 07:37 AM in Everything Else

avatar image

joshmmo
23 4 11 12

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

1 answer: sort voted first

Ultimately, the simple answer to this is you just need to convert a node into parameter.

If I have understood you and your requirement correctly, all you need to do, is:

Material Editor:

  1. Right click on your "New Colour" Vector 4 (RGBA) node
    1. Select Convert to parameter.

    2. [Optional: but good practice] In the details panel, name & detail this parameter accordingly.

    3. Right click the now Master Material (in Content Browser).

    4. Select Create instance. (this will create a Static instance)

    5. Double click/Open the new instanced material.

    6. On the left (Details), check the box corresponding to the Vector 4 (RGBA) parameter to enable editing.

    7. Change the value accordingly, & click Apply.

    8. Apply this material to what you need.

      Material Instance Static,

      ue to their nature have extremely reduced footprints than if you were to duplicate the original material.

      Change by Code

      n order to change a parameter by code (and thus, be editable at run-time), you need to create a Material Instance Dynamic, this is easily accomplished within blueprints. You can read up on Static & Dyanmic instances Here!

Hope this helped with your problem~!

more ▼

answered Aug 21 '16 at 12:51 PM

avatar image

LCWilliams
99 3 2 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