# TV Screen Light Projection with Color

**URL:** <https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272>\
**Category:** Rendering\
**Tags:** unreal-engine, Lighting\
**Created:** [March 24, 2015, 4:26am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272 "2015-03-24T04:26:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 24, 2015, 4:26am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/1 "2015-03-24T04:26:12Z")

</div>

I have a texture movie attached to a material that is attached to TV static object. I also have a spot light in front of the TV using Light Function to simulate light coming from the TV effecting its surroundings. It’s working great, except my light stays white. Is it possible to have my movie texture effect the color of the TV light as well?

---

<div class="post-metadata">

**Author:** ![Triplelexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/triplelexx/32/1156732_2.png) [@Triplelexx](https://forums.unrealengine.com/u/Triplelexx)\
**Post date:** [March 24, 2015, 4:55am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/2 "2015-03-24T04:55:01Z")

</div>

If the movie is a short loop the quickest thing will probably be to manually observe the clip and decide what the color should be at that frame, then animate the light to drive it in sync. It’s an easier option than looking to automate it by analysing and averaging the color information I expect.

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 24, 2015, 5:32am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/3 "2015-03-24T05:32:27Z")

</div>

Thanks for the reply. Unfortunately it’s not a short loop and manually animating the color change will be very time consuming. Im also interesting in finding out how this could be done automatically as well.

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 24, 2015, 4:24pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/4 "2015-03-24T16:24:02Z")

</div>

So no one has an idea on how this is done? There is no way to animate a light’s color from a image reference or blueprint?

---

<div class="post-metadata">

**Author:** ![Triplelexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/triplelexx/32/1156732_2.png) [@Triplelexx](https://forums.unrealengine.com/u/Triplelexx)\
**Post date:** [March 24, 2015, 6:01pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/5 "2015-03-24T18:01:51Z")

</div>

I don’t think you can do this with Blueprint at least. I think it would require C++ programming.  
You need to read the pixels of the MediaTexture. I assume you’re using the Media Framework.

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [March 24, 2015, 6:25pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/6 "2015-03-24T18:25:22Z")

</div>

The way I’ve done it in the past:

1. Create 3 lights, and parent them all together.
2. Make one fully red, another fully green, and the third fully blue.
3. Then create 3 light functions, and pull only the red, green and blue channels from your movie texture accordingly.
4. Apply each light function to the corresponding coloured light, and move them into place.

They should add all up correctly to give you your correctly coloured light.

enjoy!

---

<div class="post-metadata">

**Author:** ![Triplelexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/triplelexx/32/1156732_2.png) [@Triplelexx](https://forums.unrealengine.com/u/Triplelexx)\
**Post date:** [March 24, 2015, 6:40pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/7 "2015-03-24T18:40:56Z")

</div>

> [@Crow87;255851](#):
>
> The way I’ve done it in the past:
> 
> 1. Create 3 lights, and parent them all together.
> 2. Make one fully red, another fully green, and the third fully blue.
> 3. Then create 3 light functions, and pull only the red, green and blue channels from your movie texture accordingly.
> 4. Apply each light function to the corresponding coloured light, and move them into place.
> 
> They should add all up correctly to give you your correctly coloured light.
> 
> enjoy!

That sounds like a great approach, I’ll have to try that out.

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 25, 2015, 4:43am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/8 "2015-03-25T04:43:15Z")

</div>

> [@Crow87;255851](#):
>
> The way I’ve done it in the past:
> 
> 1. Create 3 lights, and parent them all together.
> 2. Make one fully red, another fully green, and the third fully blue.
> 3. Then create 3 light functions, and pull only the red, green and blue channels from your movie texture accordingly.
> 4. Apply each light function to the corresponding coloured light, and move them into place.
> 
> They should add all up correctly to give you your correctly coloured light.
> 
> enjoy!

Crow,  
That’s deep! Sounds like a very simple work around. I will give this a try! Thanks for your feedback.

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 25, 2015, 5:22am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/9 "2015-03-25T05:22:42Z")

</div>

Crow,

You’re a genius! This works well. Only issue is if the lights are aligned, the result is white. Offsetting the lights slightly resolves this issue. Thanks again!

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [March 25, 2015, 10:25am UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/10 "2015-03-25T10:25:38Z")

</div>

Hmmm, never had that happen before. Just a sanity check: your lights are set to Movable - not Stationary? But if you’re happy to have a slight offset, thats cool.

---

<div class="post-metadata">

**Author:** ![Triplelexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/triplelexx/32/1156732_2.png) [@Triplelexx](https://forums.unrealengine.com/u/Triplelexx)\
**Post date:** [March 25, 2015, 7:25pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/11 "2015-03-25T19:25:56Z")

</div>

> [@Teriander;256240](#):
>
> Crow,
> 
> You’re a genius! This works well. Only issue is if the lights are aligned, the result is white. Offsetting the lights slightly resolves this issue. Thanks again!

I didn’t have that problem either, all 3 dynamic lights in the same location, 2 parented to first one, just had some issues with rotation of lights from light function, was playing with spot and point. Not sure the best way to go for this effect, technique is promising though. I have to spend more time with light functions and playing with the effect.

Yeah, nice thinking.

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [March 27, 2015, 12:11pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/12 "2015-03-27T12:11:11Z")

</div>

> [@Triplelexx;256818](#):
>
> I didn’t have that problem either, all 3 dynamic lights in the same location, 2 parented to first one, just had some issues with rotation of lights from light function, was playing with spot and point. Not sure the best way to go for this effect, technique is promising though. I have to spend more time with light functions and playing with the effect.
> 
> Yeah, nice thinking.

For TV lighting, I just made a low-res version of my source video, and blurred it out. It helps to decrease the intensity of the green and red lights a bit as well, as I tend to find ‘TV light’ is more blue than anything else.

---

<div class="post-metadata">

**Author:** ![Pedram\_Navin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pedram\_Navin](https://forums.unrealengine.com/u/Pedram_Navin)\
**Post date:** [November 11, 2018, 1:48pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/13 "2018-11-11T13:48:39Z")

</div>

For anyone coming across this thread:  
This plugin will do what you are looking for, and much more efficiently than using multiple lights with light functions [Video Ambient Lighting in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/video-ambient-lighting)

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [March 15, 2019, 3:36pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/14 "2019-03-15T15:36:33Z")

</div>

> [@Pedram\_Navin](#):
>
> For anyone coming across this thread:  
> This plugin will do what you are looking for, and much more efficiently than using multiple lights with light functions [Video Ambient Lighting in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/video-ambient-lighting)

For $64.99?? I think I’ll stick with multiple lights and light functions. Let me know when the price is realistic.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [March 15, 2019, 10:00pm UTC](https://forums.unrealengine.com/t/tv-screen-light-projection-with-color/25272/15 "2019-03-15T22:00:51Z")

</div>

$65 sounds reasonable to me, I could spend all day working on a solution and still not have anything as good.
