x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Why is my canvas tile dark?

Hi, I added a HUD with some CanvastTextElements and CanvasTileElements. The color of the text ist 1.0 0.0 0.0, so a full red, the color of the texture of the tiles too.

But my tiles are darker on the HUD as the text, from where comes this? Blend mode is translucent.

http://www.pic-upload.de/view-24393732/hud.png.html

Product Version: Not Selected
Tags:
more ▼

asked Aug 26 '14 at 07:08 PM in C++ Programming

avatar image

birdfreeyahoo
885 46 45 80

avatar image TimGS Aug 26 '14 at 07:20 PM

Show your Texture settings pls.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Ok, the solution is the following: If you use Canvas->DrawTile, then the Canvas->DrawColor is used as Color for the FCanvasTileItem. This is 127,127,127,255 as default, so everything gets darker. To workaround either set Canvas->DarkColor or use FCanvasTileItem yourself.

more ▼

answered Aug 27 '14 at 03:25 PM

avatar image

birdfreeyahoo
885 46 45 80

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Ok I was able to reproduce your problem. And also found a reason of this. Textures and Text use different color spaces. When I created my test red texture in photoshop filled with color (255,0,0,255) I noticed Photoshop Color Palette window warning logo that this color is out of space. When I hit that warning it gave me the color (210,74,69,255). Guess what happened when I set that color as text color and (255,0,0,255) to texture? Text color and Texture color rendered the same.

So when you make your textures make sure you use sRGB profile and your colors fit to color space, otherwise your texture will render slightly different than what you see in preview.

more ▼

answered Aug 26 '14 at 08:37 PM

avatar image

TimGS
626 20 23 239

avatar image birdfreeyahoo Aug 27 '14 at 05:30 AM

Sorry but that doesn't work. In the Texture Viewer my texture is fully saturated, but not on the screen when drawing it.

avatar image birdfreeyahoo Aug 27 '14 at 02:55 PM

Using the blueprint draw texture it has the correct brightness. Using FCanvasTileItem, too. Using Canvas->DrawTile renders it too dark. Please look over it

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question