the loader create a ARGB8888's image.
so
struct ddsColor
{
u8 r, g, b, a; <== is ABGR
} PACK_STRUCT;
maybe is error.
I change to
struct ddsColor
{
u8 b, g, r, a;
} PACK_STRUCT;
the color is ok.
dds loader bug
Re: dds loader bug
This change has fixed my problem of inverses colors with dds files.
My test case files :
https://dl.dropboxusercontent.com/u/244 ... ug_dds.zip
Can you fix this ?
My test case files :
https://dl.dropboxusercontent.com/u/244 ... ug_dds.zip
Can you fix this ?
Re: dds loader bug
Thanks for the info and the test-case. I've passed it on to Thomas who wrote that code to my knowledge in case he has some feedback for this. I had missed this report before for some reason.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm