Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6822

Android weird alpha on textures

$
0
0

@Olander wrote:

Hi guys!
I've created a game using MonoGame and have come across a weird issue. Somehow when I add .png files to the Content folder and load them and the alpha channel gets distorted, the issue is solved by precompiling the assets to .xnb format. I also noticed that this does only happen to alpha values which are not 0. This does not happen on UWP nor on Windows desktop projects. Below are a few examples.

UWP: This gives the proper result
Content/file.png
Build Action: Content
Copy to output: Copy if newer

Android: ERROR Alpha channel seems to be maxed
Content/file.png
Build Action: AndroidAsset
Copy to output: Copy if newer

Android: Gives proper result. Note the file is already in .xnb format.
Content/file.xnb
Build Action: AndroidAsset
Copy to output: Copy if newer

The .xnb files were built from another content.mgcb, not the one in the project. Also I haven't touched the content.mgcb in the project in anyway. This isn't a huge problem, but one that still annoys me.

Note: The files do have a gradient alpha channel. If the alpha channel is 0, the pixel does not get distorted.

Thanks in advance!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6822

Trending Articles