Announcement

Collapse
No announcement yet.

Revealing by reducing opacity on PART of material?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Revealing by reducing opacity on PART of material?

    Hi, Unreal developers,

    Here is a boss I want to do: It has a thick armor but after receiving some attack, some "PART" of armor can be set to 0 in opacity to reveal it weak points.

    I did some study first though, like location based opacity.
    But it limits to 1 sphere mask, even I want to add more mask to achieve similar result during run-time.

    I tried to collection parameters to input multiple points, but there doesn't seems to be loop available in material to generate sphere mask one-by-one and sum them up.

    I would like to ask if it's possible to combine multiple sphere masks from undecided amount of points during run-time to achieve this.
    Thank you.

    #2
    Have you tried creating multiple masks(one for each section of armour to reveal) and then blending the relevant masks together and using that for the opacity mask?
    That should give you what you want, Just remember to pack the different masks into the RGB(A) components of the texture.

    HTH
    Never say Never, Because Never comes too soon. - ryan20fun

    Frames Per Second is NOT a proper performance metric, You should use frame time. You can read this or this as to why.
    (Profiling) Tools: RenderDoc (UE4 Plugin), NVIDIA nSight, AMD GPU PerfStudio, CodeXL
    Good articles/Series: A trip through the Graphics Pipeline 2011

    Comment


      #3
      Originally posted by ryan20fun View Post
      Have you tried creating multiple masks(one for each section of armour to reveal) and then blending the relevant masks together and using that for the opacity mask?
      That should give you what you want, Just remember to pack the different masks into the RGB(A) components of the texture.

      HTH
      Hi,
      Thank you for precious reply!

      That sounds like a reasonable idea. I will take this one if no other better options for me.

      But ideally speaking, I have a list of collision points I wish can apply the opacity changes on them.
      Do you have any other idea?

      Comment


        #4
        Originally posted by sbbg View Post
        Do you have any other idea?
        Not at the moment

        I'll have to have another look at the location based opacity, But I think I can get it working with multiple pre defined locations.
        Never say Never, Because Never comes too soon. - ryan20fun

        Frames Per Second is NOT a proper performance metric, You should use frame time. You can read this or this as to why.
        (Profiling) Tools: RenderDoc (UE4 Plugin), NVIDIA nSight, AMD GPU PerfStudio, CodeXL
        Good articles/Series: A trip through the Graphics Pipeline 2011

        Comment

        Working...
        X