# How to draw a mesh's wireframe and its material

**URL:** <https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827>\
**Category:** Rendering\
**Tags:** wireframe, unreal-engine, question\
**Created:** [May 8, 2014, 2:33pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827 "2014-05-08T14:33:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [May 8, 2014, 2:33pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/1 "2014-05-08T14:33:51Z")

</div>

Hi,  
i have two materials for my mesh… a normal one with a texture and normal-map and a second one, where i selected wireframe and set the emissive color to get a nice glowing wireframe…

now i want to use the normal material and let the wireframe glow on the same mesh…

As far as i can tell you would create a material function and blend between them but i cannot find any reference to the wireframe functionality…

Is there any possibility to draw the wireframe and the material at the same time?

 ![5929-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/e/67e334d0a773ca46144ad571aca770b03a5c5edf.png)

here i used a blueprint, dublicated the mesh and applied two different materials…  
it kinda works but it doesn’t seem like the right way to do this…

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [May 8, 2014, 8:07pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/2 "2014-05-08T20:07:47Z")

</div>

Hey Dave4723 -

You are correct that the blend of the two materials would be the way to get this effect. If I am understanding what you are looking for, you will want to add a “Make Material Attributes” before the Output module in the Material Function, then build one of your materials.

Good Luck -  
Eric Ketchum

Also Dave4723, Take a look at this tutorial on our wiki which might help you out **[https://wiki.unrealengine.com/Creating\_Layered\_Materials\_(Tutorial)](https://wiki.unrealengine.com/Creating_Layered_Materials_(Tutorial))**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [May 9, 2014, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/3 "2014-05-09T16:13:38Z")

</div>

yes BUT where can i set the material attributes to wireframe?..  
that’s what i didn’t find 🙂

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [May 9, 2014, 9:35pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/4 "2014-05-09T21:35:30Z")

</div>

Hey Dave4723 -

I am looking into a more streamline way to achieve this effect, but I understand what you are looking for now. One possible solution would be to render out a black and white texture of the mesh in wireframe and then build your emissive material by multiplying your wireframe texture by a 3 constant.

If you need clarification let me know,  
Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [May 10, 2014, 5:23am UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/5 "2014-05-10T05:23:39Z")

</div>

Thanks! that should get it done

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_af430e63](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_af430e63](https://forums.unrealengine.com/u/anonymous_user_af430e63)\
**Post date:** [July 28, 2015, 5:18pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/6 "2015-07-28T17:18:00Z")

</div>

hey dave, did you ever find a way to set the material attributes in a material function to wireframe?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_256cdd0a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_256cdd0a](https://forums.unrealengine.com/u/anonymous_user_256cdd0a)\
**Post date:** [March 25, 2016, 4:12pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/7 "2016-03-25T16:12:25Z")

</div>

also looking for an answer to this !!!

---

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [October 2, 2016, 3:46am UTC](https://forums.unrealengine.com/t/how-to-draw-a-meshs-wireframe-and-its-material/282827/8 "2016-10-02T03:46:12Z")

</div>

I don’t believe this is possible. To make a layered material as many people seem to suggest does not solve the problem. If you toggle the “wireframe” on a standard material, and plug a series of layered materials into that using “material attributes” the wifreframe from the standard material will override the previous layered material work. Anywhere you have white in your alpha (or all of it if you are not using an alpha) will become wireframe. Seems like an odd conundrum .
