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.

dds loader bug

Postby loverlinfish » Fri Feb 11, 2011 3:42 pm

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.
loverlinfish
 
Posts: 7
Joined: Thu Aug 06, 2009 8:38 am

Postby Reiko » Mon May 16, 2011 11:42 pm

this does fix it

cheers
Reiko
 
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Re: dds loader bug

Postby JLouisB » Fri Aug 15, 2014 3:36 pm

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 ?
JLouisB
 
Posts: 51
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: dds loader bug

Postby CuteAlien » Sat Aug 16, 2014 9:52 am

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8291
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests