Announcement

Collapse
No announcement yet.

Glow material for UMG on 3D widgets

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

    Glow material for UMG on 3D widgets

    Hi everyone,

    I'm trying to make a 3D menu kind of thing for a game prototype. The only problem is that when I use a 3D widget (as shown here https://www.youtube.com/watch?v=_LhCKSbGlYY), the content looks a little too dark. I wanted the content to be emissive, even glowing. I tried to do it by using both emissive, unlit and additive materials for the widget content, but that doesn't work. Does anyone know how to add glow to a widget? Is this possible at all?

    Here's a screencap of how my widget is looking in game right now:



    And here is a bad photoshop of what I want to do:




    Thanks guys.

    #2
    Currently all 3d widgets are composited onto an offscreen render target. So they're resolved without any of the engines standard post processing, hence no glow. In the future we're interested in supporting both, but for now, you will probably want to make sure the UI material is unlit, and you'll need to get the glow by baking it into a texture you swap with the images you're using on the widget.

    This isn't a very complex piece of UI though, using UMG for it might be overkill. You could achieve the same thing with a text component and a single quad with a material on it that has the energy bar and does all the masking and glowing. Would be much cheaper to render, and you'll get all the post processing effects you want. Downside though from having it in the world is you'll get all the motion blur, post processing as well. Though that's true of the 3d widget component as well.

    Comment


      #3
      Hi Nick, thanks for answering.
      This is just a small part of the UI, the idea is to have a lot more stuff on screen, and they have to look like a projection in 3d space, like a hologram. I'll consider doing what you said and using a masked material instead of UMG.
      Considering that the UMG is rendered onto an offscreen render target, wouldn't it be possible to use that data as an input on a material and then applying this material to a 3d object?

      Comment


        #4
        Originally posted by brunogruber View Post
        Considering that the UMG is rendered onto an offscreen render target, wouldn't it be possible to use that data as an input on a material and then applying this material to a 3d object?
        Yeah, though I don't think the slate material allow for over saturated colors right now. Also I don't think we resolve to a render target that has a floating point color buffer, so you wont be able to encode more color for glow purposes.

        Comment


          #5
          Originally posted by Nick Darnell View Post
          Currently all 3d widgets are composited onto an offscreen render target. So they're resolved without any of the engines standard post processing, hence no glow. In the future we're interested in supporting both, but for now, you will probably want to make sure the UI material is unlit, and you'll need to get the glow by baking it into a texture you swap with the images you're using on the widget.

          This isn't a very complex piece of UI though, using UMG for it might be overkill. You could achieve the same thing with a text component and a single quad with a material on it that has the energy bar and does all the masking and glowing. Would be much cheaper to render, and you'll get all the post processing effects you want. Downside though from having it in the world is you'll get all the motion blur, post processing as well. Though that's true of the 3d widget component as well.
          Was the ability to achive this ever worked into the engine as of 4.12 or 4.13? I'm actually looking to do the same thing.

          Coming 2016| Interested joining my team, email me: daniiartsstudio@gmail.com
          Official Thread! Unreal Forums Follow us on Facebook Watch development blog on Youtube

          Comment


            #6
            Originally posted by Nick Darnell View Post
            Currently all 3d widgets are composited onto an offscreen render target. So they're resolved without any of the engines standard post processing, hence no glow. In the future we're interested in supporting both, but for now, you will probably want to make sure the UI material is unlit, and you'll need to get the glow by baking it into a texture you swap with the images you're using on the widget.

            This isn't a very complex piece of UI though, using UMG for it might be overkill. You could achieve the same thing with a text component and a single quad with a material on it that has the energy bar and does all the masking and glowing. Would be much cheaper to render, and you'll get all the post processing effects you want. Downside though from having it in the world is you'll get all the motion blur, post processing as well. Though that's true of the 3d widget component as well.
            Hi Nick Darnell ... has anything changed as of 4.20? I love UMG, but without cranking the bloom, I can't get the brightness from the 3D widgets that I'm looking for. Any ideas? Or will it ever be possible to apply a post process effect to ONLY UMG objects?

            Thanks

            Comment


              #7
              Alrigdy!
              1) Find In Engine Content\EngineMaterials\Widget3DPassThrough.mat
              2) Copy to project folder
              3) Enter to material and add multiply and Constraint (emission power) to emission branch.
              4) Voala! you have widget material with glowing effect.
              extra!
              If you are using texture and want add glow color to texture use widget blueprint texture settings.

              Comment

              Working...
              X