Announcement

Collapse
No announcement yet.

Edge Glow Applying to Entire Surface

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

    Edge Glow Applying to Entire Surface

    Hello, I am attempting to create a material I can use to create an edge glow around some imported static mesh models. I have set up the material and it works on basic geometry but when I attempt to apply it to our static meshes the entire surface of the model glows instead of just the edges. Images of the issue and material set up below. I have a feeling it might have to do with how I have set up the edge emissive texture.

    Does anyone have some ideas on how to correct this?

    Click image for larger version

Name:	edge_glow3.PNG
Views:	60
Size:	291.5 KB
ID:	1634713

    I want the effect from the cube on our static mesh but as you can see, its just glowing the entire model and not just the edges. Material blueprint is below.


    Click image for larger version

Name:	edge_glow1.PNG
Views:	53
Size:	140.5 KB
ID:	1634716

    Click image for larger version

Name:	edge_glow2.PNG
Views:	55
Size:	121.6 KB
ID:	1634715
    Attached Files

    #2
    Your material nodes are setup so the edge of the texture coordinates (or UVs) glow, not for the edges of the model to glow. The fresnel can give you an outer edge glow effect, but won't give you those inner edges.

    You could use your setup and custom UVs for each model for the effect you want, but that would take a lot of work per model.

    If you want the look to exactly match your box example, you might be best off baking curvature maps and using that as a mask to apply the glow. I don't think there's an easy way to do that completely within UE4, but wouldn't be surprised if someone managed to do it already.
    Last edited by ZacD; 06-24-2019, 06:29 AM.

    Comment


      #3
      I found a curvature material node you could use as the mask for an edge glow effect https://polycount.com/discussion/202...ural-texturing

      Comment


        #4
        maybe this video would help?

        Comment

        Working...
        X