Hi,
I am trying out the Spritebatch function in DirectXTK, but I am having problems with transparency in .png images.
My code is based on a stripped down version of this example http://directxtk.cod...cussions/390346
The sprite png image is from Microsoft XNA Shooter example "player.png"
Any ideas how I can get transparency with DirectXTK?
Thanks!
DirectXTK and PNG transparency
Started by Stuntdk, Dec 05 2012 02:20 PM
2 replies to this topic
Sponsor:
#2 Members - Reputation: 290
Posted 06 December 2012 - 10:09 AM
I have found out why I had this problem, turns out that DirectXTK Spritebatch expects an image with pre-multiplied alpha.
The source images I had were not pre-multiplied.
Found a nice little application that could do the image translation easily http://www.qualibyte.com/pixelformer/
The source images I had were not pre-multiplied.
Found a nice little application that could do the image translation easily http://www.qualibyte.com/pixelformer/






