dds loader bug

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
loverlinfish
Posts: 7
Joined: Thu Aug 06, 2009 8:38 am

dds loader bug

Post by loverlinfish »

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.
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Post by Reiko »

this does fix it

cheers
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: dds loader bug

Post by JLouisB »

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 ?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: dds loader bug

Post by CuteAlien »

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
Post Reply