# How do I make a custom mesh a lightsource that lights the environment and creates shadows?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983>\
**Category:** Rendering\
**Tags:** Lights, unreal-engine, FBX, Lighting, custom, question\
**Created:** [April 8, 2014, 2:53pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983 "2014-04-08T14:53:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yama\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yama\_2](https://forums.unrealengine.com/u/Yama_2)\
**Post date:** [April 8, 2014, 2:53pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/1 "2014-04-08T14:53:47Z")

</div>

If been searching all over for this but don’t seem to get a right answer that really works.

I have an architecture project that has an “S”-shaped LED stripe that should emit light as a lightsource, throw shadows and enlight the environment around it.

The mesh I importet as fbx and put a material on it that emits light. However it does not affect the other meshes around it, neither throws any shadows or is visible in reflections.

So how do I achieve this effect?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0bea5bb91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0bea5bb91](https://forums.unrealengine.com/u/anonymous_user_0bea5bb91)\
**Post date:** [April 10, 2014, 1:41am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/2 "2014-04-10T01:41:20Z")

</div>

When you made the material did you put a vector3constant (constant3vecter whatever) node into the emission pin and then set the color values higher than 1. When I did that I had light coming from my mesh onto the environment. Only problem was that it seemed as though the light only appeared on the environment when the mesh was on camera. Hope this helps some.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_39b96e6f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_39b96e6f](https://forums.unrealengine.com/u/anonymous_user_39b96e6f)\
**Post date:** [April 10, 2014, 2:47am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/3 "2014-04-10T02:47:46Z")

</div>

Im not 100% sure of a fix, but i know that when it comes to lights ( point lights, directional lights etc ) you will only cast dynamic shadows and lighting if the light is set to “Moveable” rather than “Static” or “Stationary”. You could try changing this setting on your mesh. Not only the one that is casting the light, but on the assets that will be effected by the light. You could always upload that FBX in a .zip file and i could give it go and try to get it to work, or someone else might.

---

<div class="post-metadata">

**Author:** ![Yama\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yama\_2](https://forums.unrealengine.com/u/Yama_2)\
**Post date:** [April 10, 2014, 7:56am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/4 "2014-04-10T07:56:15Z")

</div>

Hey Guys, thanks for your answers,

unfortunately it still does not work. Here’s a we transfer link to the fbx:

[https://www.wetransfer.com/downloads/9d24058f4887af4881569e7cfe3e644920140410075447/2c5361cf29e7d29590876023e0d19f3b20140410075447/3e4f4b](https://www.wetransfer.com/downloads/9d24058f4887af4881569e7cfe3e644920140410075447/2c5361cf29e7d29590876023e0d19f3b20140410075447/3e4f4b)

The idea is that the LED-Stripe should throw light on the wood panels undernath and also create shadows. So far it only seems to create a glow reflection when the camera looks right at it. Hope you can find a solution, that would be great.

Cheers

Yama

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_39b96e6f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_39b96e6f](https://forums.unrealengine.com/u/anonymous_user_39b96e6f)\
**Post date:** [April 10, 2014, 5:07pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/5 "2014-04-10T17:07:02Z")

</div>

This is what i get when i import that FBX.

 ![3668-example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/6/946affa800e17f174334f76ee195ba5b951f7ecd.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0bea5bb91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0bea5bb91](https://forums.unrealengine.com/u/anonymous_user_0bea5bb91)\
**Post date:** [April 13, 2014, 11:32pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/6 "2014-04-13T23:32:10Z")

</div>

@Leetums I tried setting the meshes to static and dynamic and the light still vanishes when the source is off camera.  
Could this be a bug or it was just never intended to work how we want?

---

<div class="post-metadata">

**Author:** ![Yama\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yama\_2](https://forums.unrealengine.com/u/Yama_2)\
**Post date:** [April 14, 2014, 7:14am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/7 "2014-04-14T07:14:40Z")

</div>

You have to untag “combine mesh” sou you will get multiple meshes. One of them should be called LED-Stripe. Thats the one that should be the light source…

---

<div class="post-metadata">

**Author:** ![Yama\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yama\_2](https://forums.unrealengine.com/u/Yama_2)\
**Post date:** [April 14, 2014, 7:18am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/8 "2014-04-14T07:18:26Z")

</div>

I am afraid that could be the case, would be nice to have an official person responding to that issue…☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0bea5bb91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0bea5bb91](https://forums.unrealengine.com/u/anonymous_user_0bea5bb91)\
**Post date:** [May 21, 2014, 7:00pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/9 "2014-05-21T19:00:52Z")

</div>

I think I figured it out a solution so I may as well share my findings. This pertains only to the lighting aspect though. I think the setting was hidden because dynamic GI is disabled by default. The reason why is beyond me. If you don’t know how to turn it on this may help. [- YouTube](https://www.youtube.com/watch?v=Oni6TG2DXnk) then go to your material that will be emitting light. In the material editor look at the settings on the left under the Material drop down menu. Look for the toggle to “Use Emissive for Dynamic Area Lighting”. When that is checked and the shader is compiled the light should be visible on the environment even when the mesh with the emissive material is off camera. Hope this helps.

---

<div class="post-metadata">

**Author:** ![MohamedNopy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MohamedNopy](https://forums.unrealengine.com/u/MohamedNopy)\
**Post date:** [August 15, 2019, 11:12am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-custom-mesh-a-lightsource-that-lights-the-environment-and-creates-shadows/279983/10 "2019-08-15T11:12:23Z")

</div>

> **[Using the Emissive Material Input](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Materials/HowTo/EmissiveGlow/)**
>
> A How To Guide for using the Emissive Material input inside the Material Editor in Unreal Engine 4.
