# Why are textures drawn directly to canvas so dark?

**URL:** <https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679>\
**Category:** UDK Content Creation and Design\
**Tags:** unreal-engine\
**Created:** [March 15, 2017, 7:20am UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679 "2017-03-15T07:20:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [March 15, 2017, 7:20am UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679/1 "2017-03-15T07:20:49Z")

</div>

![WhySoDark.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/42f2acd9f83a5aeeb3c4c1950b5bb781f49e6d34.jpeg)

The window on the left is drawn in the GFxMovie. The popups on the right are GFxMovies drawing onto a RendureTexture, which I then draw on the Canvas during the HUD’s PostProcess. The background of the popups are supposed to be the same color as the window background. I’ve tried messing with the RendureTexture’s AdjustBrightnes and SRGB, but it doesn’t seem to make a difference. Any idea why it’s so much darker?

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [March 15, 2017, 10:26am UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679/2 "2017-03-15T10:26:18Z")

</div>

OK, fixed it. I had to set my canvas’ draw color to (255,255,255). I guess every texture you draw gets multiplied by your draw color?

---

<div class="post-metadata">

**Author:** ![O\_and\_N](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/o_and_n/32/731038_2.png) [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Post date:** [March 15, 2017, 11:37am UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679/3 "2017-03-15T11:37:00Z")

</div>

Where in script do you change the canvas draw color.I have a similar issue when using in my case a bink video with the hourences ui scenes wich are just more updated ui scenes.

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [March 15, 2017, 1:29pm UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679/4 "2017-03-15T13:29:57Z")

</div>

First off, anything you do has to be during the “main draw loop.” Per [UDK | CanvasTechnicalGuide](https://docs.unrealengine.com/udk/Three/CanvasTechnicalGuide.html), “The HUD classes do keep a reference to the current Canvas, but it is only accessible during the main draw loop and within any functions executed during that loop. Otherwise, there is no guarantee the Canvas will exist or be usable.” I’m not entirely sure where the loop starts and ends, but I’m working in the HUD’s PostRender() event, and that’s working for me.

So anywhere in HUD.PostRender, put in a line for

```auto

Canvas.SetDrawColor(255,255,255);

```

before you draw any textures to the canvas.

I hope that helps.

---

<div class="post-metadata">

**Author:** ![O\_and\_N](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/o_and_n/32/731038_2.png) [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Post date:** [March 15, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/why-are-textures-drawn-directly-to-canvas-so-dark/87679/5 "2017-03-15T20:23:35Z")

</div>

Thank you,will go and try it out 😉
