# Flashlight is very bright when standing near a surface

**URL:** <https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220>\
**Category:** Rendering\
**Tags:** unreal-engine, flashlight, lighting-problem, UE4, Blueprint, question\
**Created:** [January 28, 2017, 1:09pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220 "2017-01-28T13:09:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_50ed87a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50ed87a51](https://forums.unrealengine.com/u/anonymous_user_50ed87a51)\
**Post date:** [January 28, 2017, 1:09pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/1 "2017-01-28T13:09:11Z")

</div>

![123961-desktop+01.28.2017+-+14.10.26.01.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/9/819ac827e8e4c81d25da83243804402d028f9b97.png)

Can you help me? (sry for bad english)

---

<div class="post-metadata">

**Author:** ![shotty46290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Post date:** [January 28, 2017, 7:09pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/2 "2017-01-28T19:09:36Z")

</div>

Maybe its because your surface is fairly metallic? Which would make it much brighter. You could also lower the power of the light based on distance to wall.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50ed87a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50ed87a51](https://forums.unrealengine.com/u/anonymous_user_50ed87a51)\
**Post date:** [January 30, 2017, 5:38pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/3 "2017-01-30T17:38:46Z")

</div>

“You could also lower the power of the light based on distance to wall.” What do you mean by that 😃

---

<div class="post-metadata">

**Author:** ![shotty46290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Post date:** [January 30, 2017, 5:50pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/4 "2017-01-30T17:50:13Z")

</div>

do a line trace say 1k meters in front of you, and when you hit something get its location minus yours getting the vector length and you will know how far you are from the wall, and as you get closer lower the power of the light.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50ed87a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50ed87a51](https://forums.unrealengine.com/u/anonymous_user_50ed87a51)\
**Post date:** [January 30, 2017, 6:44pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/5 "2017-01-30T18:44:08Z")

</div>

Could you send me an example 😃 it would be really great

---

<div class="post-metadata">

**Author:** ![shotty46290](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shotty46290](https://forums.unrealengine.com/u/shotty46290)\
**Post date:** [January 31, 2017, 12:06am UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/6 "2017-01-31T00:06:17Z")

</div>

So we get our location and our forward vector, which is one meter in front of us at all times, and multiply that by 1k to get a 1,000 meter range. Then if the line trace hits something we get our location again minus what the line trace hit location and get its length. and from there you can do it a few ways either by branching. if wall is this far darken. Or create some math where your light will work normal without hitting anything and slowly decreases the power as you get closer.

 ![124249-84.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/6/8d6aff846849c6826d5964d4abdfab6d9b7143f0.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50ed87a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50ed87a51](https://forums.unrealengine.com/u/anonymous_user_50ed87a51)\
**Post date:** [January 31, 2017, 7:19pm UTC](https://forums.unrealengine.com/t/flashlight-is-very-bright-when-standing-near-a-surface/383220/7 "2017-01-31T19:19:07Z")

</div>

Better Idea 🙂 Disable Bloom and LensFlare
