Home Unreal Engine

Decal and Vertex Paint?

Can a decal material be used with Vertex paint the same way a regular material can?

I made some graffiti decals, and wanted to add a way to paint parts of them out so that I could get more mileage from one material, but since the decal basically rests "on top" of the geo it doesn't appear to be letting me paint it.

Is it possible to paint decals with vertex paint?

Thanks for any help.

Replies

  • Autocon
    Options
    Offline / Send Message
    Autocon polycounter lvl 15
    You wont be able to paint the textures behind the decal onto the decal to make it fade away but you should be able to blend off the decal from showing to not showing.

    Example. White is 100% showing decal, black is 0% showing decal (ie 100% alphaed out) and then paint away parts you dont want.
  • Imatk
    Options
    Offline / Send Message
    So how do you paint it? I only know how to use the "Mesh Paint" brush, and I can't even paint on a decal on that since there is no Mesh I guess to paint on?
  • Harbinger
    Options
    Offline / Send Message
    Harbinger polycounter lvl 8
    I've never tried doing what you're suggesting but I don't think it will be possible. Decals technically are meshes, they need to be to render, but they're typically generated at run-time. In the editor you only have the decal actor, or basically the projector, but not the mesh.
  • AlexLeighton
    Options
    Offline / Send Message
    What you could try, is making a plane with enough verts to allow for vertex painting, apply your graffiti texture and mask to this and float it as close as possible to the wall without producing z fighting, and set it to not cast shadows. Then you should be able to do what you're wanting to do.
  • Harbinger
    Options
    Offline / Send Message
    Harbinger polycounter lvl 8
    Nice work-around Alex. If you offset your pivot from the mesh a tiny bit it should be relatively easy to place these floating off of walls/floors using the S-click shortcut.
Sign In or Register to comment.