# SOLVED: Brightest color in scene capture 2D component at run time?

**URL:** <https://forums.unrealengine.com/t/solved-brightest-color-in-scene-capture-2d-component-at-run-time/465814>\
**Category:** Asset Creation\
**Tags:** scenecapturecomponen, unreal-engine, question\
**Created:** [May 26, 2020, 4:56am UTC](https://forums.unrealengine.com/t/solved-brightest-color-in-scene-capture-2d-component-at-run-time/465814 "2020-05-26T04:56:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_a\_b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@j\_a\_b](https://forums.unrealengine.com/u/j_a_b)\
**Post date:** [May 26, 2020, 4:56am UTC](https://forums.unrealengine.com/t/solved-brightest-color-in-scene-capture-2d-component-at-run-time/465814/1 "2020-05-26T04:56:00Z")

</div>

Is it possible through blueprints or C++ to get the max/brightest color of a scene capture render texture? I don’t have much experience with materials and couldn’t find a way to get the render texture materials R/G/B/A values from the material unless you can somehow expose that.

I thought of trying to grab the texture from the scene capture component every 0.5 secs if the player was moving and saving it as a packaged texture and then reading the pixels but I only got so far as the texture created but it crashed the editor immediately after or just locked up.

I have two scene capture component 2Ds positioned above and below my player that captures a diamond representing the player’s “visibility” and hides everything else using a cage mesh.

UPDATE: I did find a Blueprint solution that I didn’t even realize was built in…seems to be working okay without much performance hit but will have to test more. If anyone else want to know here is a link to a blueprint graph with some notes.

Going to see how well it runs reading a few different pixels to average them out.

[Blueprint Graph](https://blueprintue.com/blueprint/sss1lp5a/)
