Hi all,
I've got a rather bizarre problem. For my 2D game, I'm using a level designer to create a map, and then I have some C# processing code which takes all of the tiles, does the necessary / appropriate overlays to reduce duplicates and then creates a sprite sheet containing unique entries. I do this by creating a new image, getting a graphics object to it and then drawing the tile images as appropriate. The output of this process is the below (1.png). When I run this through texconv.exe to create the .dds file that I will actually import into my application it's significantly darker and it's not clear why.
1 (post processing).png is the result of having loaded 1.DDS into paint.net and then saving the file down to disc as a png file.
The call that I'm using to do the conversion is:
texconv.exe
-nologo
myDir\1.png
-o myDir
-pmalpha
-f R8G8B8A8_UNORM
This is the same instruction that I'm issuing to process all of my other images. Some of which suffer from this problem, some of which don't.
Note that I used https://www.aconvert.com/image/png-to-dds/ to try to do the conversion and it came back with the DDS at the right level of colouration (see attached - Tempcblwx-185xy.dds)
This is driving me crazy with frustration...
Will someone please put me out of my misery?
Thanks
Steve